wined3d: Optimize sampler states in stateblocks.
[wine.git] / dlls / userenv / userenv_main.c
blob75fd651ad2285b6c56d9fa3c3db7b2ede996d66f
1 /*
2 * Implementation of userenv.dll
4 * Copyright 2006 Mike McCormack for CodeWeavers
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.
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.
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
21 #include <stdarg.h>
23 #include "windef.h"
24 #include "winbase.h"
25 #include "winreg.h"
26 #include "userenv.h"
28 #include "wine/debug.h"
30 WINE_DEFAULT_DEBUG_CHANNEL( userenv );
32 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
34 TRACE("%p %d %p\n", hinstDLL, fdwReason, lpvReserved);
36 switch (fdwReason)
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;
46 return TRUE;
49 BOOL WINAPI CreateEnvironmentBlock( LPVOID* lpEnvironment,
50 HANDLE hToken, BOOL bInherit )
52 FIXME("%p %p %d\n", lpEnvironment, hToken, bInherit );
53 return FALSE;
56 BOOL WINAPI ExpandEnvironmentStringsForUserA( HANDLE hToken, LPCSTR lpSrc,
57 LPSTR lpDest, DWORD dwSize )
59 BOOL ret;
61 TRACE("%p %s %p %d\n", hToken, debugstr_a(lpSrc), lpDest, dwSize);
63 ret = ExpandEnvironmentStringsA( lpSrc, lpDest, dwSize );
64 TRACE("<- %s\n", debugstr_a(lpDest));
65 return ret;
68 BOOL WINAPI ExpandEnvironmentStringsForUserW( HANDLE hToken, LPCWSTR lpSrc,
69 LPWSTR lpDest, DWORD dwSize )
71 BOOL ret;
73 TRACE("%p %s %p %d\n", hToken, debugstr_w(lpSrc), lpDest, dwSize);
75 ret = ExpandEnvironmentStringsW( lpSrc, lpDest, dwSize );
76 TRACE("<- %s\n", debugstr_w(lpDest));
77 return ret;
80 BOOL WINAPI GetUserProfileDirectoryA( HANDLE hToken, LPSTR lpProfileDir,
81 LPDWORD lpcchSize )
83 FIXME("%p %p %p\n", hToken, lpProfileDir, lpcchSize );
84 return FALSE;
87 BOOL WINAPI GetUserProfileDirectoryW( HANDLE hToken, LPWSTR lpProfileDir,
88 LPDWORD lpcchSize )
90 FIXME("%p %p %p\n", hToken, lpProfileDir, lpcchSize );
91 return FALSE;
94 BOOL WINAPI GetProfilesDirectoryA( LPSTR lpProfilesDir, LPDWORD lpcchSize )
96 FIXME("%p %p\n", lpProfilesDir, lpcchSize );
97 return FALSE;
100 BOOL WINAPI GetProfilesDirectoryW( LPWSTR lpProfilesDir, LPDWORD lpcchSize )
102 FIXME("%p %p\n", lpProfilesDir, lpcchSize );
103 return FALSE;
106 BOOL WINAPI GetProfileType( DWORD *pdwFlags )
108 FIXME("%p\n", pdwFlags );
109 *pdwFlags = 0;
110 return TRUE;
113 BOOL WINAPI LoadUserProfileA( HANDLE hToken, LPPROFILEINFOA lpProfileInfo )
115 FIXME("%p %p\n", hToken, lpProfileInfo );
116 lpProfileInfo->hProfile = HKEY_CURRENT_USER;
117 return TRUE;
120 BOOL WINAPI RegisterGPNotification( HANDLE event, BOOL machine )
122 FIXME("%p %d\n", event, machine );
123 return TRUE;
126 BOOL WINAPI UnregisterGPNotification( HANDLE event )
128 FIXME("%p\n", event );
129 return TRUE;