Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
p6genguid.h
Go to the documentation of this file.
1 
10 #ifndef P6GUIDGEN_H__
11 #define P6GUIDGEN_H__ 1
12 
13 #include "p6random.h"
14 
15 namespace P6R {
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
29 const P6GUIDFLAGS P6GUID_NOFLAGS = 0x00000000;
30 
31 
38 interface p6IGenGuid : p6ICom
39 {
54  P6COMMETHOD initialize( P6GUIDFLAGS flags, p6IRandom* pRandom ) = 0;
55 
68  P6COMMETHOD genGUID( P6UUID* pGuid ) = 0;
69 };
70 
71 // {533442AF-2FD6-4137-96BC-D9A02064497B}
72 #define IF_p6IGenGuid {0x533442AF,0x2FD6,0x4137,{0x96,0xBC,0xD9,0xA0,0x20,0x64,0x49,0x7B}}
73 
74 // {9A2C329B-35CD-4384-B6B2-F54045983F09}
75 #define COMP_p6GenGuid {0x9A2C329B,0x35CD,0x4384,{0xB6,0xB2,0xF5,0x40,0x45,0x98,0x3F,0x09}}
76 
77 #ifdef __cplusplus
78 }
79 #endif
80 
81 } // namespace
82 
83 #endif
84 
Globally Unique Identifier or GUID is used for interface, component and category IDs.
Definition: p6genguid.h:38
unsigned int P6UINT32
Definition: p6types.h:40
virtual P6R::P6ERR genGUID(P6UUID *pGuid)=0
Each time this function is called a different value (GUID) is generated and copied into the pGUID buf...
[p6]COM Cryptographic Random Number Generator.
The base interface all [p6]COM components must derive from and implement.
Definition: p6comdef.h:96
Provides a cryptographically strong random number generator.
Definition: p6random.h:70
A universally unique indentifier (UUID).
Definition: p6types.h:131
#define P6COMMETHOD
Definition: p6types.h:872
virtual P6R::P6ERR initialize(P6GUIDFLAGS flags, p6IRandom *pRandom)=0
Initialize the random number generator used to generate the GUIDs.
const P6GUIDFLAGS P6GUID_NOFLAGS
Definition: p6genguid.h:29
P6UINT32 P6GUIDFLAGS
P6GUIDFLAGS.
Definition: p6genguid.h:28