source: trunk/src/shlwapi/shlwapi.cpp@ 8706

Last change on this file since 8706 was 7820, checked in by sandervl, 24 years ago

Wine resync

File size: 1.4 KB
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 ICOM_CINTERFACE 1
32#define CINTERFACE 1
33
34#include "debugtools.h"
35#include "winbase.h"
36#include "winnls.h"
37#include "winversion.h"
38#include "winreg.h"
39#include "crtdll.h"
40
41#include <heapstring.h>
42#include <misc.h>
43#include <unicode.h>
44#include <win\shell.h>
45#include <win\winerror.h>
46
47// import OLE support
48#include <win/wtypes.h>
49#define OLE_OK 0
50
51
52ODINDEBUGCHANNEL(SHLWAPI)
53
54
55
56/*
57 * This enables procedures to automatically take care or
58 * required unicode conversion or not.
59 */
60
61BOOL VERSION_OsIsUnicode(void)
62{
63 static version = 0;
64
65 if(version == 0) {
66 version = GetVersion();
67 }
68 /* if high-bit of version is 0, we are emulating NT */
69 return !(version & 0x80000000);
70}
71
Note: See TracBrowser for help on using the repository browser.