Alter "userenv.spec" to match the output of "dumpbin /exports" for the Windows Server 2003 SP1 userenv.dll exactly.

I found out the real function names of the functions exported by ordinal and their parameter sizes in a PDB file.
Some functions we didn't have yet are also documented in MSDN, so I could get the exact parameters. The comment beside each stub details each function as far as I could find out.

svn path=/trunk/; revision=40457
This commit is contained in:
Colin Finck 2009-04-11 13:00:00 +00:00
parent bdeac904e0
commit b5350ad268

View file

@ -1,17 +1,51 @@
@ stdcall CreateEnvironmentBlock(ptr ptr long) 132 stdcall CreateEnvironmentBlock(ptr ptr long)
@ stdcall DestroyEnvironmentBlock(ptr) 133 stdcall DeleteProfileA(str str str)
@ stdcall ExpandEnvironmentStringsForUserA(ptr str ptr long) 134 stdcall DeleteProfileW(wstr wstr wstr)
@ stdcall ExpandEnvironmentStringsForUserW(ptr wstr ptr long) 176 stdcall DestroyEnvironmentBlock(ptr)
@ stdcall GetProfilesDirectoryA(ptr ptr) 177 stub DllCanUnloadNow #stdcall DllCanUnloadNow()
@ stdcall GetProfilesDirectoryW(ptr ptr) 178 stub DllGetClassObject #stdcall DllGetClassObject(ptr ptr ptr)
@ stub GetProfileType 179 stub DllInstall #stdcall DllInstall(long wstr)
@ stdcall GetUserProfileDirectoryA(ptr ptr ptr) 180 stub DllRegisterServer #stdcall DllRegisterServer()
@ stdcall GetUserProfileDirectoryW(ptr ptr ptr) 181 stub DllUnregisterServer #stdcall DllUnregisterServer()
@ stdcall LoadUserProfileA(ptr ptr) 182 stdcall EnterCriticalPolicySection(long)
@ stdcall LoadUserProfileW(ptr ptr) 183 stdcall ExpandEnvironmentStringsForUserA(ptr str str long)
@ stdcall RegisterGPNotification(long long) 184 stdcall ExpandEnvironmentStringsForUserW(ptr wstr wstr long)
@ stdcall UnloadUserProfile(ptr ptr) 185 stub ForceSyncFgPolicy #stdcall ForceSyncFgPolicy(4)
@ stdcall UnregisterGPNotification(long) 186 stub FreeGPOListA #stdcall FreeGPOListA(ptr)
187 stub FreeGPOListW #stdcall FreeGPOListW(ptr)
188 stub GenerateRsopPolicy #stdcall GenerateRsopPolicy(48)
189 stdcall GetAllUsersProfileDirectoryA(str ptr)
190 stdcall GetAllUsersProfileDirectoryW(wstr ptr)
191 stub GetAppliedGPOListA #stdcall GetAppliedGPOListA(long str ptr ptr ptr)
192 stub GetAppliedGPOListW #stdcall GetAppliedGPOListW(long wstr ptr ptr ptr)
193 stdcall GetDefaultUserProfileDirectoryA(str ptr)
194 stdcall GetDefaultUserProfileDirectoryW(wstr ptr)
195 stub GetGPOListA #stdcall GetGPOListA(ptr str str str long ptr)
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)
202 stdcall GetProfilesDirectoryA(str ptr)
203 stdcall GetProfilesDirectoryW(wstr ptr)
204 stdcall GetUserProfileDirectoryA(ptr str ptr)
205 stdcall GetUserProfileDirectoryW(ptr wstr ptr)
206 stdcall LeaveCriticalPolicySection(ptr)
207 stdcall LoadUserProfileA(ptr ptr)
208 stdcall LoadUserProfileW(ptr ptr)
209 stub ProcessGroupPolicyCompleted #stdcall ProcessGroupPolicyCompleted(ptr ptr long)
210 stub ProcessGroupPolicyCompletedEx #stdcall ProcessGroupPolicyCompletedEx(ptr ptr long ptr)
211 stdcall RefreshPolicy(long)
212 stdcall RefreshPolicyEx(long long)
213 stdcall RegisterGPNotification(ptr long)
214 stub RsopAccessCheckByType #stdcall RsopAccessCheckByType(ptr ptr ptr long ptr long ptr ptr ptr ptr ptr)
215 stub RsopFileAccessCheck #stdcall RsopFileAccessCheck(wstr ptr long ptr ptr)
216 stub RsopLoggingEnabled #stdcall RsopLoggingEnabled()
217 stub RsopResetPolicySettingStatus #stdcall RsopResetPolicySettingStatus(long ptr ptr)
218 stub RsopSetPolicySettingStatus #stdcall RsopSetPolicySettingStatus(long ptr ptr long ptr)
219 stdcall UnloadUserProfile(ptr ptr)
220 stdcall UnregisterGPNotification(ptr)
221 stdcall WaitForMachinePolicyForegroundProcessing()
222 stdcall WaitForUserPolicyForegroundProcessing()
100 stdcall -noname InitializeProfiles() 100 stdcall -noname InitializeProfiles()
101 stdcall -noname CreateGroupA(str long) 101 stdcall -noname CreateGroupA(str long)
102 stdcall -noname CreateGroupW(wstr long) 102 stdcall -noname CreateGroupW(wstr long)
@ -29,15 +63,61 @@
114 stdcall -noname AddDesktopItemW(long wstr wstr wstr long wstr long long) 114 stdcall -noname AddDesktopItemW(long wstr wstr wstr long wstr long long)
115 stdcall -noname DeleteDesktopItemA(long str) 115 stdcall -noname DeleteDesktopItemA(long str)
116 stdcall -noname DeleteDesktopItemW(long wstr) 116 stdcall -noname DeleteDesktopItemW(long wstr)
@ stdcall EnterCriticalPolicySection(long) 117 stub -noname ApplyGroupPolicy #stdcall -noname ApplyGroupPolicy(20)
@ stdcall GetAllUsersProfileDirectoryA(str ptr) 118 stub -noname ShutdownGPOProcessing #stdcall -noname ShutdownGPOProcessing(4)
@ stdcall GetAllUsersProfileDirectoryW(wstr ptr) 119 stub -noname CreateLinkFileA #stdcall -noname CreateLinkFileA(40)
@ stdcall GetDefaultUserProfileDirectoryA(str ptr) 120 stub -noname CreateLinkFileW #stdcall -noname CreateLinkFileW(40)
@ stdcall GetDefaultUserProfileDirectoryW(wstr ptr) 121 stub -noname DeleteLinkFileA #stdcall -noname DeleteLinkFileA(16)
@ stdcall LeaveCriticalPolicySection(long) 122 stub -noname DeleteLinkFileW #stdcall -noname DeleteLinkFileW(16)
@ stdcall RefreshPolicy(long) 123 stub -noname CopyProfileDirectoryExA #stdcall -noname CopyProfileDirectoryExA(20)
@ stdcall RefreshPolicyEx(long long) 124 stub -noname CopyProfileDirectoryExW #stdcall -noname CopyProfileDirectoryExW(20)
@ stdcall WaitForUserPolicyForegroundProcessing() 125 stub -noname GetSystemTempDirectoryA #stdcall -noname GetSystemTempDirectoryA(8)
@ stdcall WaitForMachinePolicyForegroundProcessing() 126 stub -noname GetSystemTempDirectoryW #stdcall -noname GetSystemTempDirectoryW(8)
@ stdcall DeleteProfileW(wstr wstr wstr) 127 stub -noname MigrateNT4ToNT5 #stdcall -noname MigrateNT4ToNT5()
@ stdcall DeleteProfileA(str str str) 128 stub -noname ResetUserSpecialFolderPaths #stdcall -noname ResetUserSpecialFolderPaths()
129 stub -noname ApplySystemPolicyA #stdcall -noname ApplySystemPolicyA(24)
130 stub -noname ApplySystemPolicyW #stdcall -noname ApplySystemPolicyW(24)
131 stub -noname DetermineProfilesLocation #stdcall -noname DetermineProfilesLocation(4)
135 stub -noname PingComputer #stdcall -noname PingComputer(8)
136 stub -noname CreateGroupExA #stdcall -noname CreateGroupExA(16)
137 stub -noname CreateGroupExW #stdcall -noname CreateGroupExW(16)
138 stub -noname CreateLinkFileExA #stdcall -noname CreateLinkFileExA(48)
139 stub -noname CreateLinkFileExW #stdcall -noname CreateLinkFileExW(48)
140 stub -noname InitializeUserProfile #stdcall -noname InitializeUserProfile()
#141 cdecl -noname RsopSidsFromToken@@YGJPAXPAPAU_TOKEN_GROUPS@@@Z
142 stub -noname GetUserSid #stdcall -noname GetUserSid(4)
143 stub -noname SecureUserProfiles #stdcall -noname SecureUserProfiles()
144 stub -noname EnterUserProfileLock #stdcall -noname EnterUserProfileLock(4)
145 stub -noname LeaveUserProfileLock #stdcall -noname LeaveUserProfileLock(4)
146 stub -noname CheckAccessForPolicyGeneration #stdcall -noname CheckAccessForPolicyGeneration(20)
147 stub -noname GetGroupPolicyNetworkName #stdcall -noname GetGroupPolicyNetworkName(8)
148 stub -noname GetUserAppDataPathA #stdcall -noname GetUserAppDataPathA(12)
149 stub -noname GetUserAppDataPathW #stdcall -noname GetUserAppDataPathW(12)
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)
155 stub -noname CopySystemProfile #stdcall -noname CopySystemProfile(4)
156 stub -noname GetUserProfileDirFromSidA #stdcall -noname GetUserProfileDirFromSidA(12)
157 stub -noname GetUserProfileDirFromSidW #stdcall -noname GetUserProfileDirFromSidW(12)
158 stub -noname SetNextFgPolicyRefreshInfo #stdcall -noname SetNextFgPolicyRefreshInfo(12)
159 stub -noname TranslateNameXForest #stdcall -noname TranslateNameXForest(20)
160 stub -noname AllocGpContainer #stdcall -noname AllocGpContainer(60)
161 stub -noname AddGPO #stdcall -noname AddGPO(84)
162 stub -noname GetWbemServices #stdcall -noname GetWbemServices(20)
163 stub -noname FilterGPOs #stdcall -noname FilterGPOs(8)
164 stub -noname ProcessMachAndUserGpoList #stdcall -noname ProcessMachAndUserGpoList(48)
165 stub -noname GPOExceptionFilter #stdcall -noname GPOExceptionFilter(4)
166 stub -noname LogExtSessionStatus #stdcall -noname LogExtSessionStatus(16)
167 stub -noname UpdateExtSessionStatus #stdcall -noname UpdateExtSessionStatus(16)
168 stub -noname UnloadGPExtensions #stdcall -noname UnloadGPExtensions(4)
169 stub -noname FreeGpoInfo #stdcall -noname FreeGpoInfo(4)
170 stub -noname LogSessionData #stdcall -noname LogSessionData(8)
171 stub -noname LogGpoData #stdcall -noname LogGpoData(4)
172 stub -noname ReadGPExtensions #stdcall -noname ReadGPExtensions(4)
173 stub -noname CheckForSkippedExtensions #stdcall -noname CheckForSkippedExtensions(8)
174 stub -noname SetupGPOFilter #stdcall -noname SetupGPOFilter(4)
175 stub -noname CheckXForestLogon #stdcall -noname CheckXForestLogon(4)
200 stub -noname CreateURLFile #stdcall -noname CreateURLFile(36)
201 stub -noname DeleteURLFile #stdcall -noname DeleteURLFile(16)