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.

35 lines
847 B

  1. //#---------------------------------------------------------------
  2. // File: CObjID.h
  3. //
  4. // Synopsis: Header for the CObjectID
  5. //
  6. // Copyright (C) 1995 Microsoft Corporation
  7. // All rights reserved.
  8. //
  9. // Authors: HowardCu
  10. //----------------------------------------------------------------
  11. #ifndef _COBJECTID_H_
  12. #define _COBJECTID_H_
  13. #define INITIALOBJECTID 0x12345678
  14. #define OBJECTIDINCREMENT 1
  15. class CObjectID
  16. {
  17. public:
  18. CObjectID( void );
  19. ~CObjectID( void );
  20. DWORD GetUniqueID( void );
  21. private:
  22. //
  23. // object ID holder
  24. //
  25. DWORD m_dwObjectID;
  26. //
  27. // critical section to generate unique ID
  28. //
  29. CRITICAL_SECTION m_ObjIDCritSect;
  30. };
  31. #endif //!_COBJECTID_H_