Leaked source code of windows server 2003
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.

57 lines
792 B

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. data.h
  5. Abstract:
  6. Contains registry "Data" abstraction
  7. Author:
  8. Mike Cirello
  9. Vijay Jayaseelan (vijayj)
  10. Revision History:
  11. 03 March 2001 :
  12. Rewamp the whole source to make it more maintainable
  13. (particularly readable)
  14. --*/
  15. #pragma once
  16. #include <windows.h>
  17. //
  18. // Registry data abstraction
  19. //
  20. class Data{
  21. public:
  22. //
  23. // member functions
  24. //
  25. Data(PBYTE b,DWORD d, PCTSTR t, DWORD flag, int bSize);
  26. virtual ~Data(){}
  27. PBYTE GetData() { return pByte; }
  28. int Sizeof() const { return size; }
  29. private:
  30. //
  31. // data members
  32. //
  33. PBYTE pByte;
  34. DWORD dword;
  35. PCTSTR pTchar;
  36. DWORD nFlags;
  37. int size;
  38. };