userenv: Implement DestroyEnvironmentBlock.

This commit is contained in:
Maarten Lankhorst 2010-02-01 10:35:37 +01:00 committed by Alexandre Julliard
parent e8fb8fb1a1
commit 83486aaf66
2 changed files with 12 additions and 1 deletions

View File

@ -1,5 +1,5 @@
@ stdcall CreateEnvironmentBlock(ptr ptr long)
@ stub DestroyEnvironmentBlock
@ stdcall DestroyEnvironmentBlock(ptr)
@ stdcall ExpandEnvironmentStringsForUserA(ptr str ptr long)
@ stdcall ExpandEnvironmentStringsForUserW(ptr wstr ptr long)
@ stdcall GetAllUsersProfileDirectoryA(ptr ptr)

View File

@ -65,6 +65,17 @@ BOOL WINAPI CreateEnvironmentBlock( LPVOID* lpEnvironment,
return FALSE;
}
BOOL WINAPI DestroyEnvironmentBlock(LPVOID lpEnvironment)
{
NTSTATUS r;
TRACE("%p\n", lpEnvironment);
r = RtlDestroyEnvironment(lpEnvironment);
if (r == STATUS_SUCCESS)
return TRUE;
return FALSE;
}
BOOL WINAPI ExpandEnvironmentStringsForUserA( HANDLE hToken, LPCSTR lpSrc,
LPSTR lpDest, DWORD dwSize )
{