Index: dll/win32/userenv/profile.c =================================================================== --- dll/win32/userenv/profile.c (révision 56871) +++ dll/win32/userenv/profile.c (copie de travail) @@ -75,31 +75,6 @@ } -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; -} - - static BOOL AcquireRemoveRestorePrivilege(IN BOOL bAcquire) @@ -149,6 +124,31 @@ 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) { @@ -395,6 +395,34 @@ BOOL WINAPI +CreateUserProfileExA(IN PSID pSid, + IN LPCSTR lpUserName, + IN LPCSTR lpUserHive OPTIONAL, + OUT LPSTR lpProfileDir OPTIONAL, + IN DWORD dwDirSize, + IN BOOL bWin9xUpg) +{ + DPRINT1("CreateUserProfileExA() not implemented!\n"); + return FALSE; +} + + +BOOL +WINAPI +CreateUserProfileExW(IN PSID pSid, + IN LPCWSTR lpUserName, + IN LPCWSTR lpUserHive OPTIONAL, + OUT LPWSTR lpProfileDir OPTIONAL, + IN DWORD dwDirSize, + IN BOOL bWin9xUpg) +{ + DPRINT1("CreateUserProfileExW() not implemented!\n"); + return FALSE; +} + + +BOOL +WINAPI GetAllUsersProfileDirectoryA(LPSTR lpProfileDir, LPDWORD lpcchSize) { @@ -1305,4 +1333,13 @@ return bResult; } + +BOOL +WINAPI +GetProfileType(OUT PDWORD pdwFlags) +{ + DPRINT1("GetProfileType() not implemented!\n"); + return FALSE; +} + /* EOF */ Index: dll/win32/userenv/userenv.spec =================================================================== --- dll/win32/userenv/userenv.spec (révision 56871) +++ dll/win32/userenv/userenv.spec (copie de travail) @@ -24,7 +24,7 @@ 196 stub GetGPOListW #stdcall GetGPOListW(ptr wstr wstr wstr long ptr) 197 stub GetNextFgPolicyRefreshInfo #stdcall GetNextFgPolicyRefreshInfo(8) 198 stub GetPreviousFgPolicyRefreshInfo #stdcall GetPreviousFgPolicyRefreshInfo(8) -199 stub GetProfileType #stdcall GetProfileType(ptr) +199 stdcall GetProfileType(ptr) 202 stdcall GetProfilesDirectoryA(str ptr) 203 stdcall GetProfilesDirectoryW(wstr ptr) 204 stdcall GetUserProfileDirectoryA(ptr str ptr) @@ -96,8 +96,8 @@ 150 stub -noname SignalUserPolicyForegroundProcessingDone #stdcall -noname SignalUserPolicyForegroundProcessingDone() 151 stub -noname SignalMachinePolicyForegroundProcessingDone #stdcall -noname SignalMachinePolicyForegroundProcessingDone() 152 stub -noname IsSyncForegroundPolicyRefresh #stdcall -noname IsSyncForegroundPolicyRefresh(8) -153 stub -noname CreateUserProfileExA #stdcall -noname CreateUserProfileExA(24) -154 stub -noname CreateUserProfileExW #stdcall -noname CreateUserProfileExW(24) +153 stdcall -noname CreateUserProfileExA(ptr str str str long long) +154 stdcall -noname CreateUserProfileExW(ptr wstr wstr wstr long long) 155 stub -noname CopySystemProfile #stdcall -noname CopySystemProfile(4) 156 stub -noname GetUserProfileDirFromSidA #stdcall -noname GetUserProfileDirFromSidA(12) 157 stub -noname GetUserProfileDirFromSidW #stdcall -noname GetUserProfileDirFromSidW(12) Index: include/psdk/userenv.h =================================================================== --- include/psdk/userenv.h (révision 56871) +++ include/psdk/userenv.h (copie de travail) @@ -68,6 +68,13 @@ BOOL WINAPI GetUserProfileDirectoryA(HANDLE, LPSTR, LPDWORD); BOOL WINAPI GetUserProfileDirectoryW(HANDLE, LPWSTR, LPDWORD); +#if (WINVER >= 0x0500) +#define PT_TEMPORARY 1 +#define PT_ROAMING 2 +#define PT_MANDATORY 4 +BOOL WINAPI GetProfileType(PDWORD); +#endif + BOOL WINAPI CreateEnvironmentBlock(LPVOID*, HANDLE, BOOL); BOOL WINAPI DestroyEnvironmentBlock(LPVOID); #if (WINVER >= 0x0500)