mirror of https://github.com/lianthony/NT4.0
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.
29 lines
484 B
29 lines
484 B
#include <sysinc.h>
|
|
#include <rpc.h>
|
|
|
|
void
|
|
dumpuuid(UUID * uuidp)
|
|
{
|
|
int i;
|
|
|
|
printf("----\n");
|
|
printf("%x %x --", uuidp->Data1, uuidp->Data2);
|
|
for (i = 0; i < 8; i++) {
|
|
printf("%x ", uuidp->Data4[i]);
|
|
}
|
|
printf("\n");
|
|
}
|
|
|
|
main()
|
|
{
|
|
int i;
|
|
UUID MyUUID;
|
|
|
|
for (i = 0; i < 100; i++) {
|
|
if (UuidCreate(&MyUUID) != RPC_S_OK) {
|
|
printf("UuidCreate failed\n");
|
|
ExitProcess(0);
|
|
}
|
|
dumpuuid(&MyUUID);
|
|
}
|
|
}
|