| 1 | /* $Id: ole32.cpp,v 1.16 2002-02-15 17:18:50 sandervl Exp $ */
|
|---|
| 2 | /*
|
|---|
| 3 | *
|
|---|
| 4 | * Project Odin Software License can be found in LICENSE.TXT
|
|---|
| 5 | *
|
|---|
| 6 | */
|
|---|
| 7 | /*
|
|---|
| 8 | * COM/OLE misc. functions.
|
|---|
| 9 | *
|
|---|
| 10 | * 1/7/99
|
|---|
| 11 | *
|
|---|
| 12 | * Copyright 1999 David J. Raison
|
|---|
| 13 | *
|
|---|
| 14 | * Some portions from Wine Implementation
|
|---|
| 15 | * Copyright 1995 Martin von Loewis
|
|---|
| 16 | * Copyright 1998 Justin Bradford
|
|---|
| 17 | * Copyright 1999 Francis Beaudet
|
|---|
| 18 | * Copyright 1999 Sylvain St-Germain
|
|---|
| 19 | */
|
|---|
| 20 |
|
|---|
| 21 | #include "ole32.h"
|
|---|
| 22 |
|
|---|
| 23 | // ----------------------------------------------------------------------
|
|---|
| 24 | // CoDosDateTimeToFileTime
|
|---|
| 25 | // ----------------------------------------------------------------------
|
|---|
| 26 | BOOL WIN32API CoDosDateTimeToFileTime(WORD nDosDate, WORD nDosTime,
|
|---|
| 27 | FILETIME *lpFileTime)
|
|---|
| 28 | {
|
|---|
| 29 | dprintf(("OLE32: CoDosDateTimeToFileTime"));
|
|---|
| 30 |
|
|---|
| 31 | return DosDateTimeToFileTime(nDosDate, nDosTime, lpFileTime);
|
|---|
| 32 | }
|
|---|
| 33 |
|
|---|
| 34 | // ----------------------------------------------------------------------
|
|---|
| 35 | // CoDosDateTimeToFileTime
|
|---|
| 36 | // ----------------------------------------------------------------------
|
|---|
| 37 | BOOL WIN32API CoFileTimeToDosDateTime(FILETIME *lpFileTime, LPWORD lpDosDate,
|
|---|
| 38 | LPWORD lpDosTime)
|
|---|
| 39 | {
|
|---|
| 40 | dprintf(("OLE32: CoFileTimeToDosDateTime"));
|
|---|
| 41 |
|
|---|
| 42 | return FileTimeToDosDateTime(lpFileTime, lpDosDate, lpDosTime);
|
|---|
| 43 | }
|
|---|
| 44 |
|
|---|
| 45 | // ----------------------------------------------------------------------
|
|---|
| 46 | // CLSIDFromStringA()
|
|---|
| 47 | // @@@PH: this is not a WINE API, but a replacement for CLSIDFromString16
|
|---|
| 48 | // which used to accept ASCII strings instead of OLE strings
|
|---|
| 49 | // ----------------------------------------------------------------------
|
|---|
| 50 |
|
|---|
| 51 | HRESULT WIN32API CLSIDFromStringA(
|
|---|
| 52 | LPCSTR lpsz, // [in] - ASCII string CLSID
|
|---|
| 53 | LPCLSID pclsid) // [out] - Binary CLSID
|
|---|
| 54 | {
|
|---|
| 55 | return CLSIDFromString16(lpsz, pclsid);
|
|---|
| 56 | }
|
|---|