Leaked source code of windows server 2003
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.

201 lines
3.5 KiB

  1. #include "termsrvpch.h"
  2. #pragma hdrstop
  3. #include <winsta.h>
  4. static
  5. LONG WINAPI
  6. RegConsoleShadowQueryW(
  7. HANDLE hServer,
  8. PWINSTATIONNAMEW pWinStationName,
  9. PWDPREFIXW pWdPrefixName,
  10. PWINSTATIONCONFIG2W pWinStationConfig,
  11. ULONG WinStationConfigLength,
  12. PULONG pReturnLength
  13. )
  14. {
  15. return ERROR_PROC_NOT_FOUND;
  16. }
  17. static
  18. LONG WINAPI
  19. RegDefaultUserConfigQueryW(
  20. WCHAR * pServerName,
  21. PUSERCONFIGW pUserConfig,
  22. ULONG UserConfigLength,
  23. PULONG pReturnLength
  24. )
  25. {
  26. return ERROR_PROC_NOT_FOUND;
  27. }
  28. static
  29. BOOLEAN
  30. RegDenyTSConnectionsPolicy(
  31. void
  32. )
  33. {
  34. return FALSE;
  35. }
  36. static
  37. BOOLEAN
  38. RegIsMachineInHelpMode(
  39. void
  40. )
  41. {
  42. return FALSE;
  43. }
  44. static
  45. BOOLEAN
  46. RegGetMachinePolicyEx(
  47. BOOLEAN forcePolicyRead,
  48. FILETIME *pTime ,
  49. PPOLICY_TS_MACHINE pPolicy
  50. )
  51. {
  52. return FALSE;
  53. }
  54. static
  55. BOOLEAN
  56. RegGetUserPolicy(
  57. LPWSTR userSID,
  58. PPOLICY_TS_USER pPolicy,
  59. PUSERCONFIGW pUser
  60. )
  61. {
  62. return FALSE;
  63. }
  64. static
  65. BOOLEAN
  66. RegIsMachinePolicyAllowHelp(
  67. void
  68. )
  69. {
  70. return FALSE;
  71. }
  72. static
  73. BOOLEAN
  74. RegIsTimeZoneRedirectionEnabled(
  75. void
  76. )
  77. {
  78. return FALSE;
  79. }
  80. static
  81. LONG WINAPI
  82. RegPdEnumerateW(
  83. HANDLE hServer,
  84. PWDNAMEW pWdName,
  85. BOOLEAN bTd,
  86. PULONG pIndex,
  87. PULONG pEntries,
  88. PPDNAMEW pPdName,
  89. PULONG pByteCount
  90. )
  91. {
  92. return ERROR_PROC_NOT_FOUND;
  93. }
  94. static
  95. LONG WINAPI
  96. RegUserConfigQuery(
  97. WCHAR * pServerName,
  98. WCHAR * pUserName,
  99. PUSERCONFIGW pUserConfig,
  100. ULONG UserConfigLength,
  101. PULONG pReturnLength
  102. )
  103. {
  104. return ERROR_PROC_NOT_FOUND;
  105. }
  106. static
  107. LONG WINAPI
  108. RegUserConfigSet(
  109. WCHAR * pServerName,
  110. WCHAR * pUserName,
  111. PUSERCONFIGW pUserConfig,
  112. ULONG UserConfigLength
  113. )
  114. {
  115. return ERROR_PROC_NOT_FOUND;
  116. }
  117. static
  118. LONG
  119. WINAPI
  120. RegWinStationQueryEx(
  121. HANDLE hServer,
  122. PPOLICY_TS_MACHINE pMachinePolicy,
  123. PWINSTATIONNAMEW pWinStationName,
  124. PWINSTATIONCONFIG2W pWinStationConfig,
  125. ULONG WinStationConfigLength,
  126. PULONG pReturnLength,
  127. BOOLEAN bPerformMerger
  128. )
  129. {
  130. return ERROR_PROC_NOT_FOUND;
  131. }
  132. static
  133. LONG WINAPI
  134. RegWinStationQueryNumValueW(
  135. HANDLE hServer,
  136. PWINSTATIONNAMEW pWinStationName,
  137. LPWSTR pValueName,
  138. PULONG pValueData
  139. )
  140. {
  141. return ERROR_PROC_NOT_FOUND;
  142. }
  143. static
  144. LONG WINAPI
  145. RegWinStationQueryValueW(
  146. HANDLE hServer,
  147. PWINSTATIONNAMEW pWinStationName,
  148. LPWSTR pValueName,
  149. PVOID pValueData,
  150. ULONG ValueSize,
  151. PULONG pValueSize
  152. )
  153. {
  154. return ERROR_PROC_NOT_FOUND;
  155. }
  156. static
  157. DWORD
  158. WaitForTSConnectionsPolicyChanges( BOOLEAN bWaitForAccept, HANDLE hEvent )
  159. {
  160. return ERROR_PROC_NOT_FOUND;
  161. }
  162. //
  163. // !! WARNING !! The entries below must be in alphabetical order, and are CASE SENSITIVE (eg lower case comes last!)
  164. //
  165. DEFINE_PROCNAME_ENTRIES(regapi)
  166. {
  167. DLPENTRY(RegConsoleShadowQueryW)
  168. DLPENTRY(RegDefaultUserConfigQueryW)
  169. DLPENTRY(RegDenyTSConnectionsPolicy)
  170. DLPENTRY(RegGetMachinePolicyEx)
  171. DLPENTRY(RegGetUserPolicy)
  172. DLPENTRY(RegIsMachineInHelpMode)
  173. DLPENTRY(RegIsMachinePolicyAllowHelp)
  174. DLPENTRY(RegIsTimeZoneRedirectionEnabled)
  175. DLPENTRY(RegPdEnumerateW)
  176. DLPENTRY(RegUserConfigQuery)
  177. DLPENTRY(RegUserConfigSet)
  178. DLPENTRY(RegWinStationQueryEx)
  179. DLPENTRY(RegWinStationQueryNumValueW)
  180. DLPENTRY(RegWinStationQueryValueW)
  181. DLPENTRY(WaitForTSConnectionsPolicyChanges)
  182. };
  183. DEFINE_PROCNAME_MAP(regapi)