Ignore:
Timestamp:
Sep 8, 1999, 5:24:37 PM (26 years ago)
Author:
davidr
Message:

Added stubs for undefined exports in OLEAut32

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 sandervl Exp $ */
     1/* $Id: oleaut32.cpp,v 1.3 1999-09-08 15:23:23 davidr Exp $ */
    22/*
    33 * OLEAUT32
     
    1414 * Project Odin Software License can be found in LICENSE.TXT
    1515 *
    16  * TODO: WINE_StringFromCLSID should be imported from ole32.dll
    1716 * TODO: OaBuildVersion has to be changed (as well as GetVersion in kernel32)
    1817 */
     
    2423
    2524#include <debugdefs.h>
    26 
    27 
    28 /******************************************************************************
    29  *              WINE_StringFromCLSID    [Internal]
    30  * Converts a GUID into the respective string representation.
    31  *
    32  * NOTES
    33  *
    34  * RETURNS
    35  *      the string representation and OLESTATUS
    36  */
    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 
    7025
    7126/***********************************************************************
Note: See TracChangeset for help on using the changeset viewer.