Changeset 7939 for trunk/include/win/debugtools.h
- Timestamp:
- Feb 17, 2002, 9:39:44 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/win/debugtools.h
r7827 r7939 187 187 extern "C" { 188 188 #endif 189 LPCSTR debugstr_guid1( void *id ); 190 //#define debugstr_guid(a) debugstr_guid1((void *)a) 191 #define debugstr_guid(a) 0 189 190 //LPCSTR debugstr_guid1( void *id ); 191 ////#define debugstr_guid(a) debugstr_guid1((void *)a) 192 //#define debugstr_guid(a) 0 193 194 #ifndef GUID_DEFINED 195 #define GUID_DEFINED 196 typedef struct _GUID 197 { 198 unsigned long Data1; 199 unsigned short Data2; 200 unsigned short Data3; 201 unsigned char Data4[8]; 202 } GUID; 203 #endif 204 205 static char *debugstr_guid( const GUID *id ) 206 { 207 static char temp[64]; 208 char *str; 209 210 if (!id) return "(null)"; 211 if (!HIWORD(id)) 212 { 213 sprintf( temp, "<guid-0x%04x>", LOWORD(id) ); 214 } 215 else 216 { 217 sprintf( temp, "{%08lx-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}", 218 id->Data1, id->Data2, id->Data3, 219 id->Data4[0], id->Data4[1], id->Data4[2], id->Data4[3], 220 id->Data4[4], id->Data4[5], id->Data4[6], id->Data4[7] ); 221 } 222 return temp; 223 } 192 224 193 225 #ifdef __cplusplus
Note:
See TracChangeset
for help on using the changeset viewer.