Changeset 879 for trunk/src/oleaut32/oleaut32.cpp
- Timestamp:
- Sep 8, 1999, 5:24:37 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/oleaut32/oleaut32.cpp
r632 r879 1 /* $Id: oleaut32.cpp,v 1. 2 1999-08-22 22:08:47 sandervlExp $ */1 /* $Id: oleaut32.cpp,v 1.3 1999-09-08 15:23:23 davidr Exp $ */ 2 2 /* 3 3 * OLEAUT32 … … 14 14 * Project Odin Software License can be found in LICENSE.TXT 15 15 * 16 * TODO: WINE_StringFromCLSID should be imported from ole32.dll17 16 * TODO: OaBuildVersion has to be changed (as well as GetVersion in kernel32) 18 17 */ … … 24 23 25 24 #include <debugdefs.h> 26 27 28 /******************************************************************************29 * WINE_StringFromCLSID [Internal]30 * Converts a GUID into the respective string representation.31 *32 * NOTES33 *34 * RETURNS35 * the string representation and OLESTATUS36 */37 HRESULT WINE_StringFromCLSID(38 const CLSID *id, /* [in] GUID to be converted */39 LPSTR idstr /* [out] pointer to buffer to contain converted guid */40 ) {41 static const char *hex = "0123456789ABCDEF";42 char *s;43 int i;44 45 if (!id)46 { dprintf(("called with id=Null\n"));47 *idstr = 0x00;48 return E_FAIL;49 }50 51 sprintf(idstr, "{%08lX-%04X-%04X-%02X%02X-",52 id->Data1, id->Data2, id->Data3,53 id->Data4[0], id->Data4[1]);54 s = &idstr[25];55 56 /* 6 hex bytes */57 for (i = 2; i < 8; i++) {58 *s++ = hex[id->Data4[i]>>4];59 *s++ = hex[id->Data4[i] & 0xf];60 }61 62 *s++ = '}';63 *s++ = '\0';64 65 dprintf(("%p->%s\n", id, idstr));66 67 return OLE_OK;68 }69 70 25 71 26 /***********************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.