diff --git a/dlls/userenv/userenv.spec b/dlls/userenv/userenv.spec index 6cd6437a781..8fbe776e9b1 100644 --- a/dlls/userenv/userenv.spec +++ b/dlls/userenv/userenv.spec @@ -1,5 +1,7 @@ @ stdcall CreateEnvironmentBlock(ptr ptr long) @ stub DestroyEnvironmentBlock +@ stdcall ExpandEnvironmentStringsForUserA(ptr str ptr long) +@ stdcall ExpandEnvironmentStringsForUserW(ptr wstr ptr long) @ stdcall GetProfilesDirectoryA(ptr ptr) @ stdcall GetProfilesDirectoryW(ptr ptr) @ stdcall GetProfileType(ptr) diff --git a/dlls/userenv/userenv_main.c b/dlls/userenv/userenv_main.c index a147199c1fc..0c65a4d636e 100644 --- a/dlls/userenv/userenv_main.c +++ b/dlls/userenv/userenv_main.c @@ -53,6 +53,30 @@ BOOL WINAPI CreateEnvironmentBlock( LPVOID* lpEnvironment, return FALSE; } +BOOL WINAPI ExpandEnvironmentStringsForUserA( HANDLE hToken, LPCSTR lpSrc, + LPSTR lpDest, DWORD dwSize ) +{ + BOOL ret; + + TRACE("%p %s %p %d\n", hToken, debugstr_a(lpSrc), lpDest, dwSize); + + ret = ExpandEnvironmentStringsA( lpSrc, lpDest, dwSize ); + TRACE("<- %s\n", debugstr_a(lpDest)); + return ret; +} + +BOOL WINAPI ExpandEnvironmentStringsForUserW( HANDLE hToken, LPCWSTR lpSrc, + LPWSTR lpDest, DWORD dwSize ) +{ + BOOL ret; + + TRACE("%p %s %p %d\n", hToken, debugstr_w(lpSrc), lpDest, dwSize); + + ret = ExpandEnvironmentStringsW( lpSrc, lpDest, dwSize ); + TRACE("<- %s\n", debugstr_w(lpDest)); + return ret; +} + BOOL WINAPI GetUserProfileDirectoryA( HANDLE hToken, LPSTR lpProfileDir, LPDWORD lpcchSize ) {