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 
16 #ifdef __cplusplus
17 namespace P6R {
18 extern "C" {
19 #endif
20 
29 static const P6GUIDFLAGS P6GUID_NOFLAGS = 0x00000000;
30 
31 
38 #undef INTERFACE
39 #define INTERFACE p6IGenGuid
41 {
57  P6DECLCOMMETHOD(initialize)(P6THIS_ P6GUIDFLAGS flags, p6IRandom* pRandom ) P6PURE;
58 
71  P6DECLCOMMETHOD(genGUID)(P6THIS_ P6UUID* pGuid ) P6PURE;
72 };
73 
74 // {533442AF-2FD6-4137-96BC-D9A02064497B}
75 #define IF_p6IGenGuid {0x533442AF,0x2FD6,0x4137,{0x96,0xBC,0xD9,0xA0,0x20,0x64,0x49,0x7B}}
76 
77 // {9A2C329B-35CD-4384-B6B2-F54045983F09}
78 #define COMP_p6GenGuid {0x9A2C329B,0x35CD,0x4384,{0xB6,0xB2,0xF5,0x40,0x45,0x98,0x3F,0x09}}
79 
80 #ifdef __cplusplus
81 } /* extern "C" */
82 } // namespace
83 #endif
84 
85 #endif
86 
Globally Unique Identifier or GUID is used for interface, component and category IDs.
Definition: p6genguid.h:40
uint32_t P6UINT32
Definition: p6types.h:77
#define P6DECLAREICOM
Definition: p6defs.h:191
#define P6PURE
Definition: p6defs.h:192
[p6]COM Cryptographic Random Number Generator.
The base interface all [p6]COM components must derive from and implement.
Definition: p6comdef.h:97
Provides a cryptographically strong random number generator.
Definition: p6random.h:99
A universally unique indentifier (UUID).
Definition: p6types.h:162
#define P6DECLCOMMETHOD(method)
Definition: p6defs.h:189
#define P6THIS_
Definition: p6defs.h:193
P6UINT32 P6GUIDFLAGS
P6GUIDFLAGS.
Definition: p6genguid.h:28
#define P6DECLAREIF_(iface, baseif)
Definition: p6defs.h:188