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
35 lines
847 B
//#---------------------------------------------------------------
|
|
// File: CObjID.h
|
|
//
|
|
// Synopsis: Header for the CObjectID
|
|
//
|
|
// Copyright (C) 1995 Microsoft Corporation
|
|
// All rights reserved.
|
|
//
|
|
// Authors: HowardCu
|
|
//----------------------------------------------------------------
|
|
|
|
#ifndef _COBJECTID_H_
|
|
#define _COBJECTID_H_
|
|
|
|
#define INITIALOBJECTID 0x12345678
|
|
#define OBJECTIDINCREMENT 1
|
|
|
|
class CObjectID
|
|
{
|
|
public:
|
|
CObjectID( void );
|
|
~CObjectID( void );
|
|
DWORD GetUniqueID( void );
|
|
private:
|
|
//
|
|
// object ID holder
|
|
//
|
|
DWORD m_dwObjectID;
|
|
//
|
|
// critical section to generate unique ID
|
|
//
|
|
CRITICAL_SECTION m_ObjIDCritSect;
|
|
};
|
|
|
|
#endif //!_COBJECTID_H_
|