mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
Implement CreateUserProfileA().
svn path=/trunk/; revision=9184
This commit is contained in:
parent
0441662dd1
commit
2716e12077
3 changed files with 28 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: profile.c,v 1.8 2004/03/17 14:46:23 ekohl Exp $
|
||||
/* $Id: profile.c,v 1.9 2004/04/19 10:51:17 ekohl Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
|
@ -75,6 +75,31 @@ AppendSystemPostfix (LPWSTR lpName,
|
|||
}
|
||||
|
||||
|
||||
BOOL WINAPI
|
||||
CreateUserProfileA (PSID Sid,
|
||||
LPCSTR lpUserName)
|
||||
{
|
||||
UNICODE_STRING UserName;
|
||||
BOOL bResult;
|
||||
NTSTATUS Status;
|
||||
|
||||
Status = RtlCreateUnicodeStringFromAsciiz (&UserName,
|
||||
(LPSTR)lpUserName);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
SetLastError (RtlNtStatusToDosError (Status));
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
bResult = CreateUserProfileW (Sid,
|
||||
UserName.Buffer);
|
||||
|
||||
RtlFreeUnicodeString (&UserName);
|
||||
|
||||
return bResult;
|
||||
}
|
||||
|
||||
|
||||
BOOL WINAPI
|
||||
CreateUserProfileW (PSID Sid,
|
||||
LPCWSTR lpUserName)
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
LIBRARY userenv.dll
|
||||
EXPORTS
|
||||
InitializeProfiles@0 @100 NONAME
|
||||
CreateUserProfileA@8 @109 NONAME
|
||||
CreateUserProfileW@8 @110 NONAME
|
||||
CreateEnvironmentBlock@12
|
||||
DestroyEnvironmentBlock@4
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
LIBRARY userenv.dll
|
||||
EXPORTS
|
||||
InitializeProfiles=InitializeProfiles@0 @100 NONAME
|
||||
CreateUserProfileA=CreateUserProfileA@8 @109 NONAME
|
||||
CreateUserProfileW=CreateUserProfileW@8 @110 NONAME
|
||||
CreateEnvironmentBlock=CreateEnvironmentBlock@12
|
||||
DestroyEnvironmentBlock=DestroyEnvironmentBlock@4
|
||||
|
|
Loading…
Reference in a new issue