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.

49 lines
1.0 KiB

  1. //**********************************************************************
  2. // File name: STORAGE.H
  3. //
  4. // Definition of CStorage
  5. //
  6. // Copyright (c) 1992 - 1998 Microsoft Corporation. All rights reserved.
  7. //**********************************************************************
  8. #if !defined( _STORAGE_H_ )
  9. #define _STORAGE_H_
  10. // Key to set and get elements from the storage
  11. typedef enum tagSTORAGEKEY
  12. {
  13. ICW_PAYMENT = 0,
  14. // MUST LEAVE THIS ITEM AS LAST!!!
  15. MAX_STORGE_ITEM
  16. } STORAGEKEY;
  17. typedef struct Item
  18. {
  19. void* pData; // Data
  20. DWORD dwSize; // Size of data
  21. } ITEM;
  22. class CStorage
  23. {
  24. private:
  25. ITEM *m_pItem[MAX_STORGE_ITEM]; // list of items in storage
  26. public:
  27. CStorage(void);
  28. ~CStorage(void);
  29. BOOL Set(STORAGEKEY key, void far * pData, DWORD dwSize);
  30. void* Get(STORAGEKEY key);
  31. BOOL Compare(STORAGEKEY key, void far * pData, DWORD dwSize);
  32. };
  33. #endif