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.

181 lines
3.1 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. RegGetMachinePolicyEx(
  39. BOOLEAN forcePolicyRead,
  40. FILETIME *pTime ,
  41. PPOLICY_TS_MACHINE pPolicy
  42. )
  43. {
  44. return FALSE;
  45. }
  46. static
  47. BOOLEAN
  48. RegGetUserPolicy(
  49. LPWSTR userSID,
  50. PPOLICY_TS_USER pPolicy,
  51. PUSERCONFIGW pUser
  52. )
  53. {
  54. return FALSE;
  55. }
  56. static
  57. BOOLEAN
  58. RegIsMachinePolicyAllowHelp(
  59. void
  60. )
  61. {
  62. return FALSE;
  63. }
  64. static
  65. LONG WINAPI
  66. RegPdEnumerateW(
  67. HANDLE hServer,
  68. PWDNAMEW pWdName,
  69. BOOLEAN bTd,
  70. PULONG pIndex,
  71. PULONG pEntries,
  72. PPDNAMEW pPdName,
  73. PULONG pByteCount
  74. )
  75. {
  76. return ERROR_PROC_NOT_FOUND;
  77. }
  78. static
  79. LONG WINAPI
  80. RegUserConfigQuery(
  81. WCHAR * pServerName,
  82. WCHAR * pUserName,
  83. PUSERCONFIGW pUserConfig,
  84. ULONG UserConfigLength,
  85. PULONG pReturnLength
  86. )
  87. {
  88. return ERROR_PROC_NOT_FOUND;
  89. }
  90. static
  91. LONG WINAPI
  92. RegUserConfigSet(
  93. WCHAR * pServerName,
  94. WCHAR * pUserName,
  95. PUSERCONFIGW pUserConfig,
  96. ULONG UserConfigLength
  97. )
  98. {
  99. return ERROR_PROC_NOT_FOUND;
  100. }
  101. static
  102. LONG
  103. WINAPI
  104. RegWinStationQueryEx(
  105. HANDLE hServer,
  106. PPOLICY_TS_MACHINE pMachinePolicy,
  107. PWINSTATIONNAMEW pWinStationName,
  108. PWINSTATIONCONFIG2W pWinStationConfig,
  109. ULONG WinStationConfigLength,
  110. PULONG pReturnLength,
  111. BOOLEAN bPerformMerger
  112. )
  113. {
  114. return ERROR_PROC_NOT_FOUND;
  115. }
  116. static
  117. LONG WINAPI
  118. RegWinStationQueryNumValueW(
  119. HANDLE hServer,
  120. PWINSTATIONNAMEW pWinStationName,
  121. LPWSTR pValueName,
  122. PULONG pValueData
  123. )
  124. {
  125. return ERROR_PROC_NOT_FOUND;
  126. }
  127. static
  128. LONG WINAPI
  129. RegWinStationQueryValueW(
  130. HANDLE hServer,
  131. PWINSTATIONNAMEW pWinStationName,
  132. LPWSTR pValueName,
  133. PVOID pValueData,
  134. ULONG ValueSize,
  135. PULONG pValueSize
  136. )
  137. {
  138. return ERROR_PROC_NOT_FOUND;
  139. }
  140. static
  141. DWORD
  142. WaitForTSConnectionsPolicyChanges( BOOLEAN bWaitForAccept, HANDLE hEvent )
  143. {
  144. return ERROR_PROC_NOT_FOUND;
  145. }
  146. //
  147. // !! WARNING !! The entries below must be in alphabetical order, and are CASE SENSITIVE (eg lower case comes last!)
  148. //
  149. DEFINE_PROCNAME_ENTRIES(regapi)
  150. {
  151. DLPENTRY(RegConsoleShadowQueryW)
  152. DLPENTRY(RegDefaultUserConfigQueryW)
  153. DLPENTRY(RegDenyTSConnectionsPolicy)
  154. DLPENTRY(RegGetMachinePolicyEx)
  155. DLPENTRY(RegGetUserPolicy)
  156. DLPENTRY(RegIsMachinePolicyAllowHelp)
  157. DLPENTRY(RegPdEnumerateW)
  158. DLPENTRY(RegUserConfigQuery)
  159. DLPENTRY(RegUserConfigSet)
  160. DLPENTRY(RegWinStationQueryEx)
  161. DLPENTRY(RegWinStationQueryNumValueW)
  162. DLPENTRY(RegWinStationQueryValueW)
  163. DLPENTRY(WaitForTSConnectionsPolicyChanges)
  164. };
  165. DEFINE_PROCNAME_MAP(regapi)