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.
17 lines
509 B
17 lines
509 B
|
|
void FormatGuid(WCHAR* String, SIZE_T StringSize, const GUID& Guid)
|
|
{
|
|
if (StringSize > 0)
|
|
{
|
|
_snwprintf(
|
|
String,
|
|
StringSize,
|
|
L"%08lx-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x",
|
|
Guid.Data1,
|
|
Guid.Data2,
|
|
Guid.Data3,
|
|
Guid.Data4[0], Guid.Data4[1], Guid.Data4[2], Guid.Data4[3],
|
|
Guid.Data4[4], Guid.Data4[5], Guid.Data4[6], Guid.Data4[7]);
|
|
String[StringSize - 1] = 0;
|
|
}
|
|
}
|