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.

74 lines
1.7 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1993.
  5. //
  6. // File: genforc.hxx
  7. //
  8. // Contents: C exposure for the generice enumerator object
  9. //
  10. // Classes: CEnumeratorTestForC
  11. //
  12. // Functions:
  13. //
  14. // History: dd-mmm-yy Author Comment
  15. // 23-May-94 kennethm author
  16. //
  17. //--------------------------------------------------------------------------
  18. #ifndef _GENFORC_HXX
  19. #define _GENFORC_HXX
  20. #include <windows.h>
  21. #include <assert.h>
  22. #include <stdio.h>
  23. #include <stdlib.h>
  24. #include <string.h>
  25. #include <ctype.h>
  26. #include <ole2.h>
  27. #include "genenum.h"
  28. //+-------------------------------------------------------------------------
  29. //
  30. // Class: CEnumeratorTestForC
  31. //
  32. // Purpose: enumerator test class
  33. //
  34. // Interface:
  35. //
  36. // History: dd-mmm-yy Author Comment
  37. // 23-May-94 kennethm author
  38. //
  39. // Notes:
  40. //
  41. //--------------------------------------------------------------------------
  42. class CEnumeratorTestForC : public CEnumeratorTest
  43. {
  44. public:
  45. // static create function
  46. static HRESULT Create(
  47. CEnumeratorTestForC **ppEnumTest,
  48. void *penum,
  49. size_t ElementSize,
  50. LONG ElementCount,
  51. BOOL (*verify)(void*),
  52. BOOL (*verifyall)(void*,LONG),
  53. void (*cleanup)(void*));
  54. private:
  55. CEnumeratorTestForC();
  56. BOOL (*m_fnVerify)(void*);
  57. BOOL (*m_fnVerifyAll)(void*,LONG);
  58. void (*m_fnCleanup)(void*);
  59. virtual BOOL Verify(void *);
  60. virtual BOOL VerifyAll(void*, LONG);
  61. virtual void Cleanup(void *);
  62. };
  63. #endif // !_GENFORC_HXX