/*++ Copyright (c) 1992 Microsoft Corporation Module Name: utils.c Abstract: Various utility routines used by the extensions. Author: Ravisankar Pudipeddi Environment: User Mode. Revision History: --*/ #include "pch.h" #include "local.h" VOID xdprintf( ULONG Depth, PCCHAR S, ... ) { va_list ap; ULONG i; CCHAR DebugBuffer[256]; for (i=0; i ulBufferLength) { dwStatus = ERROR_INSUFFICIENT_BUFFER; } if (0 == dwStatus) { _snprintf (pszFormattedGUID, ulBufferLength, "{%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}", guidValue.Data1, guidValue.Data2, guidValue.Data3, guidValue.Data4[0], guidValue.Data4[1], guidValue.Data4[2], guidValue.Data4[3], guidValue.Data4[4], guidValue.Data4[5], guidValue.Data4[6], guidValue.Data4[7]); } return (dwStatus); }