Line | |
---|
1 | /* $Id: shlwapi.cpp,v 1.12 2002-02-06 20:18:29 sandervl Exp $ */
|
---|
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
|
---|
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.
|
---|
18 | */
|
---|
19 |
|
---|
20 |
|
---|
21 | #include <odin.h>
|
---|
22 | #include <odinwrap.h>
|
---|
23 | #include <os2sel.h>
|
---|
24 |
|
---|
25 | #include <string.h>
|
---|
26 | #include <ctype.h>
|
---|
27 | #include <wctype.h>
|
---|
28 | #define HAVE_WCTYPE_H
|
---|
29 | #include <odin.h>
|
---|
30 |
|
---|
31 | #define CINTERFACE
|
---|
32 |
|
---|
33 | #include "debugtools.h"
|
---|
34 | #include "winbase.h"
|
---|
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>
|
---|
42 | #include <unicode.h>
|
---|
43 | #include <win/shell.h>
|
---|
44 | #include <win/winerror.h>
|
---|
45 |
|
---|
46 | // import OLE support
|
---|
47 | #include <win/wtypes.h>
|
---|
48 | #define OLE_OK 0
|
---|
49 |
|
---|
50 |
|
---|
51 | ODINDEBUGCHANNEL(SHLWAPI)
|
---|
52 |
|
---|
53 |
|
---|
54 |
|
---|
55 | /*
|
---|
56 | * This enables procedures to automatically take care or
|
---|
57 | * required unicode conversion or not.
|
---|
58 | */
|
---|
59 |
|
---|
60 | BOOL VERSION_OsIsUnicode(void)
|
---|
61 | {
|
---|
62 | static int version = 0;
|
---|
63 |
|
---|
64 | if(version == 0) {
|
---|
65 | version = GetVersion();
|
---|
66 | }
|
---|
67 | /* if high-bit of version is 0, we are emulating NT */
|
---|
68 | return !(version & 0x80000000);
|
---|
69 | }
|
---|
70 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.