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
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
);
38 case DLL_WINE_PREATTACH
:
39 return FALSE
; /* prefer native version */
40 case DLL_PROCESS_ATTACH
:
41 DisableThreadLibraryCalls(hinstDLL
);
43 case DLL_PROCESS_DETACH
:
49 BOOL WINAPI
CreateEnvironmentBlock( LPVOID
* lpEnvironment
,
50 HANDLE hToken
, BOOL bInherit
)
52 FIXME("%p %p %d\n", lpEnvironment
, hToken
, bInherit
);
56 BOOL WINAPI
ExpandEnvironmentStringsForUserA( HANDLE hToken
, LPCSTR lpSrc
,
57 LPSTR lpDest
, DWORD dwSize
)
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
));
68 BOOL WINAPI
ExpandEnvironmentStringsForUserW( HANDLE hToken
, LPCWSTR lpSrc
,
69 LPWSTR lpDest
, DWORD dwSize
)
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
));
80 BOOL WINAPI
GetUserProfileDirectoryA( HANDLE hToken
, LPSTR lpProfileDir
,
83 FIXME("%p %p %p\n", hToken
, lpProfileDir
, lpcchSize
);
87 BOOL WINAPI
GetUserProfileDirectoryW( HANDLE hToken
, LPWSTR lpProfileDir
,
90 FIXME("%p %p %p\n", hToken
, lpProfileDir
, lpcchSize
);
94 BOOL WINAPI
GetProfilesDirectoryA( LPSTR lpProfilesDir
, LPDWORD lpcchSize
)
96 FIXME("%p %p\n", lpProfilesDir
, lpcchSize
);
100 BOOL WINAPI
GetProfilesDirectoryW( LPWSTR lpProfilesDir
, LPDWORD lpcchSize
)
102 FIXME("%p %p\n", lpProfilesDir
, lpcchSize
);
106 BOOL WINAPI
GetProfileType( DWORD
*pdwFlags
)
108 FIXME("%p\n", pdwFlags
);
113 BOOL WINAPI
LoadUserProfileA( HANDLE hToken
, LPPROFILEINFOA lpProfileInfo
)
115 FIXME("%p %p\n", hToken
, lpProfileInfo
);
116 lpProfileInfo
->hProfile
= HKEY_CURRENT_USER
;
120 BOOL WINAPI
RegisterGPNotification( HANDLE event
, BOOL machine
)
122 FIXME("%p %d\n", event
, machine
);
126 BOOL WINAPI
UnregisterGPNotification( HANDLE event
)
128 FIXME("%p\n", event
);