d3drm: Implement D3DRMCreateColorRGB.
[wine] / dlls / userenv / userenv_main.c
1 /*
2  * Implementation of userenv.dll
3  *
4  * Copyright 2006 Mike McCormack for CodeWeavers
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19  */
20
21 #include <stdarg.h>
22
23 #include "windef.h"
24 #include "winbase.h"
25 #include "winreg.h"
26 #include "profinfo.h"
27
28 #include "wine/debug.h"
29
30 WINE_DEFAULT_DEBUG_CHANNEL( userenv );
31
32 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
33 {
34     TRACE("%p %d %p\n", hinstDLL, fdwReason, lpvReserved);
35
36     switch (fdwReason)
37     {
38     case DLL_WINE_PREATTACH:
39         return FALSE;  /* prefer native version */
40     case DLL_PROCESS_ATTACH:
41         DisableThreadLibraryCalls(hinstDLL);
42         break;
43     case DLL_PROCESS_DETACH:
44         break;
45     }
46     return TRUE;
47 }
48
49 BOOL WINAPI CreateEnvironmentBlock( LPVOID* lpEnvironment,
50                      HANDLE hToken, BOOL bInherit )
51 {
52     FIXME("%p %p %d\n", lpEnvironment, hToken, bInherit );
53     return FALSE;
54 }
55
56 BOOL WINAPI ExpandEnvironmentStringsForUserA( HANDLE hToken, LPCSTR lpSrc,
57                      LPSTR lpDest, DWORD dwSize )
58 {
59     BOOL ret;
60
61     TRACE("%p %s %p %d\n", hToken, debugstr_a(lpSrc), lpDest, dwSize);
62
63     ret = ExpandEnvironmentStringsA( lpSrc, lpDest, dwSize );
64     TRACE("<- %s\n", debugstr_a(lpDest));
65     return ret;
66 }
67
68 BOOL WINAPI ExpandEnvironmentStringsForUserW( HANDLE hToken, LPCWSTR lpSrc,
69                      LPWSTR lpDest, DWORD dwSize )
70 {
71     BOOL ret;
72
73     TRACE("%p %s %p %d\n", hToken, debugstr_w(lpSrc), lpDest, dwSize);
74
75     ret = ExpandEnvironmentStringsW( lpSrc, lpDest, dwSize );
76     TRACE("<- %s\n", debugstr_w(lpDest));
77     return ret;
78 }
79
80 BOOL WINAPI GetUserProfileDirectoryA( HANDLE hToken, LPSTR lpProfileDir,
81                      LPDWORD lpcchSize )
82 {
83     FIXME("%p %p %p\n", hToken, lpProfileDir, lpcchSize );
84     return FALSE;
85 }
86
87 BOOL WINAPI GetUserProfileDirectoryW( HANDLE hToken, LPWSTR lpProfileDir,
88                      LPDWORD lpcchSize )
89 {
90     FIXME("%p %p %p\n", hToken, lpProfileDir, lpcchSize );
91     return FALSE;
92 }
93
94 BOOL WINAPI GetProfilesDirectoryA( LPSTR lpProfilesDir, LPDWORD lpcchSize )
95 {
96     FIXME("%p %p\n", lpProfilesDir, lpcchSize );
97     return FALSE;
98 }
99
100 BOOL WINAPI GetProfilesDirectoryW( LPWSTR lpProfilesDir, LPDWORD lpcchSize )
101 {
102     FIXME("%p %p\n", lpProfilesDir, lpcchSize );
103     return FALSE;
104 }
105
106 /* FIXME: these belong in userenv.h */
107 #define PT_TEMPORARY    0x00000001
108 #define PT_ROAMING      0x00000002
109 #define PT_MANDATORY    0x00000004
110
111 BOOL WINAPI GetProfileType( LPDWORD pdwFlags )
112 {
113     FIXME("%p\n", pdwFlags );
114     *pdwFlags = 0;
115     return TRUE;
116 }
117
118 BOOL WINAPI LoadUserProfileA( HANDLE hToken, LPPROFILEINFOA lpProfileInfo )
119 {
120     FIXME("%p %p\n", hToken, lpProfileInfo );
121     lpProfileInfo->hProfile = HKEY_CURRENT_USER;
122     return TRUE;
123 }
124
125 BOOL WINAPI RegisterGPNotification( HANDLE event, BOOL machine )
126 {
127     FIXME("%p %d\n", event, machine );
128     return TRUE;
129 }
130
131 BOOL WINAPI UnregisterGPNotification( HANDLE event )
132 {
133     FIXME("%p\n", event );
134     return TRUE;
135 }