summaryrefslogtreecommitdiffstats
path: root/public/sdk/inc/sift.hxx
blob: c933dea2ebc6d9a6e82b366843c6dfbc730f847e (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
//+---------------------------------------------------------------------------
//
//  Microsoft Windows
//  Copyright (C) Microsoft Corporation, 1992 - 1993.
//
//  File:       sift.hxx
//
//  Contents:   Definition of server side sift object
//
//  Classes:    ISift - sifting interface
//
//  Functions:  DbgDllSetSiftObject - sets the global sift pointer
//
//  History:    6-01-94   t-chripi   Created
//
//----------------------------------------------------------------------------

#ifndef __SIFT_HXX__

#define __SIFT_HXX__

//  Sift Resource types:

#define SR_PRIVATE_MEMORY   1
#define SR_PUBLIC_MEMORY    2
#define SR_DISK_WRITE       16
#define SR_RPC              256

//+-------------------------------------------------------------
//
//  Interface:  ISift (sft)
//
//  Purpose:    Interface that defines general sift methods.
//
//  Interface:  Init -      Initializes the object for each test run.
//              SiftOn -    Enables the counting mechanism.
//              SiftOff -   Disables the counting mechanism.
//              GetCount -  Gets current allocation count.
//
//  History:    24-May-94   t-chripi    Created.
//              6-14-94     t-chripi    Generalized, moved to cinc
//
//--------------------------------------------------------------

class ISift : public IUnknown
{
public:
    virtual VOID    Init(BOOL fPlay, LONG lFailCount) = 0;
    virtual VOID    SiftOn(DWORD dwResource) = 0;
    virtual LONG    SiftOff(DWORD dwResource) = 0;
    virtual LONG    GetCount(DWORD dwResource) = 0;
    virtual BOOL    SimFail(DWORD dwResource) = 0;

};

//+---------------------------------------------------------------------------
//
//  Function:   DbgDllSetSiftObject
//
//  Synopsis:   Sets up a sift object for use
//
//  History:    6-14-94   t-chripi   Created
//
//----------------------------------------------------------------------------

STDAPI DbgDllSetSiftObject(ISift *psftSiftImpl);


#endif  //  __SIFT_HXX__