Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
1.9 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1993.
  5. //
  6. // File: sift.hxx
  7. //
  8. // Contents: Definition of server side sift object
  9. //
  10. // Classes: ISift - sifting interface
  11. //
  12. // Functions: DbgDllSetSiftObject - sets the global sift pointer
  13. //
  14. // History: 6-01-94 t-chripi Created
  15. //
  16. //----------------------------------------------------------------------------
  17. #ifndef __SIFT_HXX__
  18. #define __SIFT_HXX__
  19. // Sift Resource types:
  20. #define SR_PRIVATE_MEMORY 1
  21. #define SR_PUBLIC_MEMORY 2
  22. #define SR_DISK_WRITE 16
  23. #define SR_RPC 256
  24. //+-------------------------------------------------------------
  25. //
  26. // Interface: ISift (sft)
  27. //
  28. // Purpose: Interface that defines general sift methods.
  29. //
  30. // Interface: Init - Initializes the object for each test run.
  31. // SiftOn - Enables the counting mechanism.
  32. // SiftOff - Disables the counting mechanism.
  33. // GetCount - Gets current allocation count.
  34. //
  35. // History: 24-May-94 t-chripi Created.
  36. // 6-14-94 t-chripi Generalized, moved to cinc
  37. //
  38. //--------------------------------------------------------------
  39. class ISift : public IUnknown
  40. {
  41. public:
  42. virtual VOID Init(BOOL fPlay, LONG lFailCount) = 0;
  43. virtual VOID SiftOn(DWORD dwResource) = 0;
  44. virtual LONG SiftOff(DWORD dwResource) = 0;
  45. virtual LONG GetCount(DWORD dwResource) = 0;
  46. virtual BOOL SimFail(DWORD dwResource) = 0;
  47. };
  48. //+---------------------------------------------------------------------------
  49. //
  50. // Function: DbgDllSetSiftObject
  51. //
  52. // Synopsis: Sets up a sift object for use
  53. //
  54. // History: 6-14-94 t-chripi Created
  55. //
  56. //----------------------------------------------------------------------------
  57. STDAPI DbgDllSetSiftObject(ISift *psftSiftImpl);
  58. #endif // __SIFT_HXX__
  59.