1 | /* $Id: guid.c,v 1.3 2001-08-04 15:29:20 sandervl Exp $ */
|
---|
2 | #define ICOM_CINTERFACE 1
|
---|
3 | #include <odin.h>
|
---|
4 |
|
---|
5 | #define CINTERFACE 1
|
---|
6 | #define INITGUID
|
---|
7 | #include <wine\obj_oleview.h>
|
---|
8 | #include "initguid.h"
|
---|
9 |
|
---|
10 | #include "shlwapi.h"
|
---|
11 | #include "shlguid.h"
|
---|
12 | #include "shlobj.h"
|
---|
13 | #include "docobj.h"
|
---|
14 | #include "..\shell32\shellfolder.h"
|
---|
15 |
|
---|
16 | #include "wine/obj_inplace.h"
|
---|
17 | #include "wine/obj_oleobj.h"
|
---|
18 | #include "wine/obj_surrogate.h"
|
---|
19 | #include "wine/obj_errorinfo.h"
|
---|
20 | #include "wine/obj_oleview.h"
|
---|
21 | #include "wine/obj_clientserver.h"
|
---|
22 | #include "wine/obj_cache.h"
|
---|
23 | #include "wine\obj_oleaut.h"
|
---|
24 | #include "wine\obj_olefont.h"
|
---|
25 |
|
---|
26 | #include <wine/obj_oleview.h>
|
---|
27 | #include <wine/obj_dragdrop.h>
|
---|
28 | #include <wine/obj_inplace.h>
|
---|
29 | #include <wine/obj_control.h>
|
---|
30 | #include <wine/obj_shellfolder.h>
|
---|
31 | #include <wine/obj_shelllink.h>
|
---|
32 | #include <wine/obj_contextmenu.h>
|
---|
33 | #include <wine/obj_commdlgbrowser.h>
|
---|
34 | #include <wine/obj_extracticon.h>
|
---|
35 | #include <wine/obj_shellextinit.h>
|
---|
36 | #include <wine/obj_shellbrowser.h>
|
---|
37 | #include <wine/obj_serviceprovider.h>
|
---|
38 | #include <wine/unicode.h>
|
---|
39 |
|
---|
40 | /*********************************************************************
|
---|
41 | * CRTDLL__wcsnicmp (CRTDLL.321)
|
---|
42 | */
|
---|
43 | int CDECL CRTDLL__wcsnicmp(LPCWSTR str1, LPCWSTR str2, int n)
|
---|
44 | {
|
---|
45 | if (!n) return 0;
|
---|
46 | while ((--n > 0) && *str1 && (towupper(*str1) == towupper(*str2)))
|
---|
47 | {
|
---|
48 | str1++;
|
---|
49 | str2++;
|
---|
50 | }
|
---|
51 | return toupperW(*str1) - toupperW(*str2);
|
---|
52 | }
|
---|
53 |
|
---|
54 | /*********************************************************************
|
---|
55 | * wcstombs (NTDLL.@)
|
---|
56 | */
|
---|
57 | INT __cdecl NTDLL_wcstombs( LPSTR dst, LPCWSTR src, INT n )
|
---|
58 | {
|
---|
59 | INT ret;
|
---|
60 | if (n <= 0) return 0;
|
---|
61 | ret = WideCharToMultiByte( CP_ACP, 0, src, -1, dst, dst ? n : 0, NULL, NULL );
|
---|
62 | if (!ret) return n; /* overflow */
|
---|
63 | return ret - 1; /* do not count terminating NULL */
|
---|
64 | }
|
---|
65 |
|
---|
66 | /*********************************************************************
|
---|
67 | * _wtol (NTDLL.@)
|
---|
68 | * Like atol, but for wide character strings.
|
---|
69 | */
|
---|
70 | LONG __cdecl _wtol(LPWSTR string)
|
---|
71 | {
|
---|
72 | char buffer[30];
|
---|
73 | NTDLL_wcstombs( buffer, string, sizeof(buffer) );
|
---|
74 | return atol( buffer );
|
---|
75 | }
|
---|
76 |
|
---|
77 | /*********************************************************************
|
---|
78 | * _wtoi (NTDLL.@)
|
---|
79 | */
|
---|
80 | INT __cdecl _wtoi(LPWSTR string)
|
---|
81 | {
|
---|
82 | return _wtol(string);
|
---|
83 | }
|
---|