Leaked source code of windows server 2003
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

  1. void FormatGuid(WCHAR* String, SIZE_T StringSize, const GUID& Guid)
  2. {
  3. if (StringSize > 0)
  4. {
  5. _snwprintf(
  6. String,
  7. StringSize,
  8. L"%08lx-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x",
  9. Guid.Data1,
  10. Guid.Data2,
  11. Guid.Data3,
  12. Guid.Data4[0], Guid.Data4[1], Guid.Data4[2], Guid.Data4[3],
  13. Guid.Data4[4], Guid.Data4[5], Guid.Data4[6], Guid.Data4[7]);
  14. String[StringSize - 1] = 0;
  15. }
  16. }