summaryrefslogtreecommitdiffstats
path: root/private/oleutest/cachetst/genforc.hxx
blob: ee8afb4911a3def8d285980591620802674386da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
//+-------------------------------------------------------------------------
//
//  Microsoft Windows
//  Copyright (C) Microsoft Corporation, 1992 - 1993.
//
//  File:       genforc.hxx
//
//  Contents:   C exposure for the generice enumerator object
//
//  Classes:    CEnumeratorTestForC
//
//  Functions:
//
//  History:    dd-mmm-yy Author    Comment
//              23-May-94 kennethm  author
//
//--------------------------------------------------------------------------

#ifndef _GENFORC_HXX
#define _GENFORC_HXX

#include <windows.h>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>

#include <ole2.h>
#include "genenum.h"

//+-------------------------------------------------------------------------
//
//  Class:      CEnumeratorTestForC
//
//  Purpose:    enumerator test class
//
//  Interface:
//
//  History:    dd-mmm-yy Author    Comment
//              23-May-94 kennethm  author
//
//  Notes:
//
//--------------------------------------------------------------------------

class CEnumeratorTestForC : public CEnumeratorTest
{
public:
    // static create function

    static HRESULT Create(
               CEnumeratorTestForC **ppEnumTest,
               void *penum,
               size_t ElementSize,
               LONG ElementCount,
               BOOL (*verify)(void*),
               BOOL (*verifyall)(void*,LONG),
               void (*cleanup)(void*));

private:
    CEnumeratorTestForC();

    BOOL (*m_fnVerify)(void*);
    BOOL (*m_fnVerifyAll)(void*,LONG);
    void (*m_fnCleanup)(void*);

    virtual BOOL Verify(void *);
    virtual BOOL VerifyAll(void*, LONG);
    virtual void Cleanup(void *);
};

#endif // !_GENFORC_HXX