Rev | Line | |
---|
[7820] | 1 | /* $Id: shlwapi.cpp,v 1.12 2002-02-06 20:18:29 sandervl Exp $ */
|
---|
[1559] | 2 |
|
---|
| 3 | /*
|
---|
| 4 | * Win32 URL-handling APIs for OS/2
|
---|
| 5 | *
|
---|
| 6 | * Copyright 1999 Patrick Haller <phaller@gmx.net>
|
---|
| 7 | *
|
---|
| 8 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
| 9 | *
|
---|
| 10 | * Copyright 1996,1998 Marcus Meissner
|
---|
| 11 | * Copyright 1996 Jukka Iivonen
|
---|
| 12 | * Copyright 1997 Uwe Bonnes
|
---|
| 13 | * Copyright 1999 Jens Wiessner
|
---|
[3687] | 14 | *
|
---|
| 15 | * Two functions (WINE_StringFromCLSID and StringFromGUID2) are directly
|
---|
| 16 | * borrowed from ole32/clsid.cpp. This is to avoid the direct dependency
|
---|
| 17 | * between SHLWAPI.DLL and the OLE32.DLL.
|
---|
[1559] | 18 | */
|
---|
| 19 |
|
---|
| 20 |
|
---|
| 21 | #include <odin.h>
|
---|
| 22 | #include <odinwrap.h>
|
---|
[2238] | 23 | #include <os2sel.h>
|
---|
[1559] | 24 |
|
---|
[2238] | 25 | #include <string.h>
|
---|
| 26 | #include <ctype.h>
|
---|
| 27 | #include <wctype.h>
|
---|
| 28 | #define HAVE_WCTYPE_H
|
---|
| 29 | #include <odin.h>
|
---|
[1559] | 30 |
|
---|
[21494] | 31 | #define CINTERFACE
|
---|
[2238] | 32 |
|
---|
| 33 | #include "debugtools.h"
|
---|
[7820] | 34 | #include "winbase.h"
|
---|
[2238] | 35 | #include "winnls.h"
|
---|
| 36 | #include "winversion.h"
|
---|
| 37 | #include "winreg.h"
|
---|
| 38 | #include "crtdll.h"
|
---|
| 39 |
|
---|
| 40 | #include <heapstring.h>
|
---|
| 41 | #include <misc.h>
|
---|
[5472] | 42 | #include <unicode.h>
|
---|
[21916] | 43 | #include <win/shell.h>
|
---|
| 44 | #include <win/winerror.h>
|
---|
[2238] | 45 |
|
---|
[3687] | 46 | // import OLE support
|
---|
| 47 | #include <win/wtypes.h>
|
---|
| 48 | #define OLE_OK 0
|
---|
[3539] | 49 |
|
---|
[3687] | 50 |
|
---|
[1559] | 51 | ODINDEBUGCHANNEL(SHLWAPI)
|
---|
| 52 |
|
---|
| 53 |
|
---|
[2238] | 54 |
|
---|
[3684] | 55 | /*
|
---|
| 56 | * This enables procedures to automatically take care or
|
---|
| 57 | * required unicode conversion or not.
|
---|
| 58 | */
|
---|
[2238] | 59 |
|
---|
[4371] | 60 | BOOL VERSION_OsIsUnicode(void)
|
---|
| 61 | {
|
---|
[21916] | 62 | static int version = 0;
|
---|
[2238] | 63 |
|
---|
[4371] | 64 | if(version == 0) {
|
---|
| 65 | version = GetVersion();
|
---|
| 66 | }
|
---|
| 67 | /* if high-bit of version is 0, we are emulating NT */
|
---|
| 68 | return !(version & 0x80000000);
|
---|
[2259] | 69 | }
|
---|
| 70 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.