Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

330 lines
5.1 KiB

  1. #include "dspch.h"
  2. #pragma hdrstop
  3. #define _USERENV_
  4. #include <userenv.h>
  5. #include <userenvp.h>
  6. static
  7. BOOL
  8. WINAPI
  9. AddItemW (
  10. LPCWSTR lpGroupName,
  11. BOOL bCommonGroup,
  12. LPCWSTR lpFileName,
  13. LPCWSTR lpCommandLine,
  14. LPCWSTR lpIconPath,
  15. int iIconIndex,
  16. LPCWSTR lpWorkingDirectory,
  17. WORD wHotKey,
  18. int iShowCmd
  19. )
  20. {
  21. return FALSE;
  22. }
  23. static
  24. BOOL
  25. WINAPI
  26. DeleteItemW(
  27. IN LPCWSTR lpGroupName,
  28. IN BOOL bCommonGroup,
  29. IN LPCWSTR lpFileName,
  30. IN BOOL bDeleteGroup)
  31. {
  32. return FALSE;
  33. }
  34. static
  35. BOOL
  36. WINAPI
  37. CreateEnvironmentBlock(
  38. OUT LPVOID *lpEnvironment,
  39. IN HANDLE hToken,
  40. IN BOOL bInherit)
  41. {
  42. return FALSE;
  43. }
  44. static
  45. USERENVAPI
  46. BOOL
  47. WINAPI
  48. CreateGroupW(
  49. IN LPCWSTR lpGroupName,
  50. IN BOOL bCommonGroup)
  51. {
  52. return FALSE;
  53. }
  54. static
  55. USERENVAPI
  56. BOOL
  57. WINAPI
  58. CreateGroupEx(LPCWSTR lpGroupName, BOOL bCommonGroup,
  59. LPCWSTR lpResourceModuleName, UINT uResourceID)
  60. {
  61. return FALSE;
  62. }
  63. static
  64. USERENVAPI
  65. BOOL
  66. WINAPI
  67. CreateLinkFileW(
  68. IN INT csidl,
  69. IN LPCWSTR lpSubDirectory,
  70. IN LPCWSTR lpFileName,
  71. IN LPCWSTR lpCommandLine,
  72. IN LPCWSTR lpIconPath,
  73. IN INT iIconIndex,
  74. IN LPCWSTR lpWorkingDirectory,
  75. IN WORD wHotKey,
  76. IN INT iShowCmd,
  77. IN LPCWSTR lpDescription)
  78. {
  79. return FALSE;
  80. }
  81. static
  82. USERENVAPI
  83. BOOL
  84. WINAPI
  85. CreateLinkFileEx(INT csidl, LPCTSTR lpSubDirectory,
  86. LPCTSTR lpFileName, LPCTSTR lpCommandLine,
  87. LPCTSTR lpIconPath, int iIconIndex,
  88. LPCTSTR lpWorkingDirectory, WORD wHotKey,
  89. int iShowCmd, LPCTSTR lpDescription,
  90. LPCWSTR lpResourceModuleName, UINT uResourceID)
  91. {
  92. return FALSE;
  93. }
  94. static
  95. USERENVAPI
  96. BOOL
  97. WINAPI
  98. DeleteGroupW(
  99. IN LPCWSTR lpGroupName,
  100. IN BOOL bCommonGroup)
  101. {
  102. return FALSE;
  103. }
  104. static
  105. BOOL
  106. WINAPI
  107. ExpandEnvironmentStringsForUserW(
  108. IN HANDLE hToken,
  109. IN LPCWSTR lpSrc,
  110. OUT LPWSTR lpDest,
  111. IN DWORD dwSize)
  112. {
  113. return FALSE;
  114. }
  115. static
  116. BOOL
  117. WINAPI
  118. GetDefaultUserProfileDirectoryW(
  119. IN LPWSTR lpProfileDir,
  120. IN OUT LPDWORD lpcchSize)
  121. {
  122. return FALSE;
  123. }
  124. static
  125. BOOL
  126. WINAPI
  127. GetProfileType(
  128. OUT DWORD *dwFlags)
  129. {
  130. return FALSE;
  131. }
  132. static
  133. USERENVAPI
  134. BOOL
  135. WINAPI
  136. InitializeProfiles(
  137. IN BOOL bGuiModeSetup)
  138. {
  139. return FALSE;
  140. }
  141. static
  142. USERENVAPI
  143. BOOL
  144. WINAPI
  145. GetUserProfileDirectoryW(
  146. IN HANDLE hToken,
  147. OUT LPWSTR lpProfileDir,
  148. IN OUT LPDWORD lpcchSize)
  149. {
  150. return FALSE;
  151. }
  152. static
  153. USERENVAPI
  154. BOOL
  155. WINAPI
  156. GetAllUsersProfileDirectoryW(
  157. OUT LPWSTR lpProfileDir,
  158. IN OUT LPDWORD lpcchSize)
  159. {
  160. return FALSE;
  161. }
  162. static
  163. USERENVAPI
  164. BOOL
  165. WINAPI
  166. GetProfilesDirectoryW(
  167. OUT LPWSTR lpProfilesDir,
  168. IN OUT LPDWORD lpcchSize)
  169. {
  170. return FALSE;
  171. }
  172. static
  173. USERENVAPI
  174. BOOL
  175. WINAPI
  176. DestroyEnvironmentBlock(
  177. IN LPVOID lpEnvironment)
  178. {
  179. return FALSE;
  180. }
  181. static
  182. USERENVAPI
  183. BOOL
  184. WINAPI
  185. LoadUserProfileW
  186. (HANDLE hToken,
  187. LPPROFILEINFOW lpProfileInfoW)
  188. {
  189. return FALSE;
  190. }
  191. static
  192. USERENVAPI
  193. BOOL
  194. WINAPI
  195. UnloadUserProfile
  196. (HANDLE hToken,
  197. HANDLE hProfile)
  198. {
  199. return FALSE;
  200. }
  201. static
  202. BOOL
  203. WINAPI
  204. RegisterGPNotification(
  205. IN HANDLE hEvent,
  206. IN BOOL bMachine )
  207. {
  208. return FALSE;
  209. }
  210. static
  211. BOOL
  212. WINAPI
  213. UnregisterGPNotification(
  214. IN HANDLE hEvent)
  215. {
  216. return FALSE;
  217. }
  218. static
  219. USERENVAPI
  220. BOOL
  221. WINAPI
  222. DeleteLinkFile(INT csidl, LPCTSTR lpSubDirectory,
  223. LPCTSTR lpFileName, BOOL bDeleteSubDirectory)
  224. {
  225. return FALSE;
  226. }
  227. static
  228. USERENVAPI
  229. BOOL
  230. WINAPI
  231. DeleteProfileW (
  232. IN LPCWSTR lpSidString,
  233. IN LPCWSTR lpProfilePath,
  234. IN LPCWSTR lpComputerName)
  235. {
  236. return FALSE;
  237. }
  238. static
  239. USERENVAPI
  240. DWORD
  241. WINAPI
  242. GetGroupPolicyNetworkName(
  243. LPWSTR szNetworkName,
  244. LPDWORD pdwByteCount
  245. )
  246. {
  247. return 0;
  248. }
  249. static
  250. DWORD
  251. WINAPI
  252. GetUserAppDataPathW(
  253. HANDLE hToken,
  254. LPWSTR lpFolderPath)
  255. {
  256. return E_FAIL;
  257. }
  258. //
  259. // !! WARNING !! The entries below must be in order by ORDINAL
  260. //
  261. DEFINE_ORDINAL_ENTRIES(userenv)
  262. {
  263. DLOENTRY(100, InitializeProfiles)
  264. DLOENTRY(102, CreateGroupW)
  265. DLOENTRY(104, DeleteGroupW)
  266. DLOENTRY(106, AddItemW)
  267. DLOENTRY(108, DeleteItemW)
  268. DLOENTRY(120, CreateLinkFileW)
  269. DLOENTRY(122, DeleteLinkFileW)
  270. DLOENTRY(132, CreateEnvironmentBlock)
  271. DLOENTRY(136, ExpandEnvironmentStringsForUserW)
  272. DLOENTRY(137, CreateGroupExW)
  273. DLOENTRY(139, CreateLinkFileExW)
  274. DLOENTRY(147, GetGroupPolicyNetworkName)
  275. DLOENTRY(149, GetUserAppDataPathW)
  276. };
  277. DEFINE_ORDINAL_MAP(userenv)
  278. //
  279. // !! WARNING !! The entries below must be in alphabetical order, and are CASE SENSITIVE (eg lower case comes last!)
  280. //
  281. DEFINE_PROCNAME_ENTRIES(userenv)
  282. {
  283. DLPENTRY(CreateEnvironmentBlock)
  284. DLPENTRY(DeleteProfileW)
  285. DLPENTRY(DestroyEnvironmentBlock)
  286. DLPENTRY(ExpandEnvironmentStringsForUserW)
  287. DLPENTRY(GetAllUsersProfileDirectoryW)
  288. DLPENTRY(GetDefaultUserProfileDirectoryW)
  289. DLPENTRY(GetProfileType)
  290. DLPENTRY(GetProfilesDirectoryW)
  291. DLPENTRY(GetUserProfileDirectoryW)
  292. DLPENTRY(LoadUserProfileW)
  293. DLPENTRY(RegisterGPNotification)
  294. DLPENTRY(UnloadUserProfile)
  295. DLPENTRY(UnregisterGPNotification)
  296. };
  297. DEFINE_PROCNAME_MAP(userenv)