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.

287 lines
4.5 KiB

  1. #include "termsrvpch.h"
  2. #pragma hdrstop
  3. #include <winsta.h>
  4. static
  5. BOOLEAN
  6. WINAPI
  7. _WinStationNotifyLogoff(
  8. VOID
  9. )
  10. {
  11. return FALSE;
  12. }
  13. static
  14. HANDLE
  15. WINAPI
  16. WinStationOpenServerW(
  17. LPWSTR pServerName
  18. )
  19. {
  20. return INVALID_HANDLE_VALUE;
  21. }
  22. static
  23. BOOLEAN
  24. WINAPI
  25. WinStationCloseServer(
  26. HANDLE hServer
  27. )
  28. {
  29. return FALSE;
  30. }
  31. static
  32. BOOLEAN
  33. WINAPI
  34. WinStationConnectW(
  35. HANDLE hServer,
  36. ULONG LogonId,
  37. ULONG TargetLogonId,
  38. PWCHAR pPassword,
  39. BOOLEAN bWait
  40. )
  41. {
  42. return FALSE;
  43. }
  44. static
  45. BOOLEAN
  46. WINAPI
  47. WinStationGetProcessSid(
  48. HANDLE hServer,
  49. DWORD ProcessId,
  50. FILETIME ProcessStartTime,
  51. PBYTE pProcessUserSid,
  52. DWORD *pdwSidSize
  53. )
  54. {
  55. *pdwSidSize = 0; // an OUT parameter even on failure
  56. SetLastError(ERROR_PROC_NOT_FOUND); // callers expect LastError to be set
  57. return FALSE;
  58. }
  59. static
  60. BOOLEAN
  61. WINAPI
  62. WinStationQueryInformationA(
  63. HANDLE hServer,
  64. ULONG LogonId,
  65. WINSTATIONINFOCLASS WinStationInformationClass,
  66. PVOID pWinStationInformation,
  67. ULONG WinStationInformationLength,
  68. PULONG pReturnLength
  69. )
  70. {
  71. SetLastError(ERROR_PROC_NOT_FOUND);
  72. return FALSE;
  73. }
  74. static
  75. BOOLEAN
  76. WINAPI
  77. WinStationQueryInformationW(
  78. HANDLE hServer,
  79. ULONG LogonId,
  80. WINSTATIONINFOCLASS WinStationInformationClass,
  81. PVOID pWinStationInformation,
  82. ULONG WinStationInformationLength,
  83. PULONG pReturnLength
  84. )
  85. {
  86. SetLastError(ERROR_PROC_NOT_FOUND);
  87. return FALSE;
  88. }
  89. static
  90. BOOL
  91. WINAPI
  92. WinStationRegisterConsoleNotification(
  93. HANDLE hServer,
  94. HWND hWnd,
  95. DWORD dwFlags
  96. )
  97. {
  98. return FALSE;
  99. }
  100. BOOLEAN WINAPI
  101. WinStationSendMessageW(
  102. HANDLE hServer,
  103. ULONG LogonId,
  104. LPWSTR pTitle,
  105. ULONG TitleLength,
  106. LPWSTR pMessage,
  107. ULONG MessageLength,
  108. ULONG Style,
  109. ULONG Timeout,
  110. PULONG pResponse,
  111. BOOLEAN DoNotWait
  112. )
  113. {
  114. return FALSE;
  115. }
  116. static
  117. BOOLEAN
  118. WINAPI
  119. WinStationSetInformationW(
  120. HANDLE hServer,
  121. ULONG LogonId,
  122. WINSTATIONINFOCLASS WinStationInformationClass,
  123. PVOID pWinStationInformation,
  124. ULONG WinStationInformationLength
  125. )
  126. {
  127. return FALSE;
  128. }
  129. static
  130. BOOLEAN
  131. WINAPI
  132. WinStationShadow(
  133. HANDLE hServer,
  134. PWSTR pTargetServerName,
  135. ULONG TargetLogonId,
  136. BYTE HotkeyVk,
  137. USHORT HotkeyModifiers
  138. )
  139. {
  140. return FALSE;
  141. }
  142. static
  143. BOOL
  144. WINAPI
  145. WinStationUnRegisterConsoleNotification(
  146. HANDLE hServer,
  147. HWND hWnd
  148. )
  149. {
  150. return FALSE;
  151. }
  152. static
  153. NTSTATUS
  154. WINAPI
  155. _WinStationShadowTarget(
  156. HANDLE hServer,
  157. ULONG LogonId,
  158. PWINSTATIONCONFIG2 pConfig,
  159. PICA_STACK_ADDRESS pAddress,
  160. PVOID pModuleData,
  161. ULONG ModuleDataLength,
  162. PVOID pThinwireData,
  163. ULONG ThinwireDataLength,
  164. PVOID pClientName,
  165. ULONG ClientNameLength
  166. )
  167. {
  168. return STATUS_PROCEDURE_NOT_FOUND;
  169. }
  170. static
  171. BOOLEAN
  172. WINAPI
  173. _WinStationShadowTargetSetup(
  174. HANDLE hServer,
  175. ULONG LogonId
  176. )
  177. {
  178. return FALSE;
  179. }
  180. static
  181. BOOLEAN
  182. WINAPI
  183. WinStationFreeMemory(
  184. PVOID pBuffer
  185. )
  186. {
  187. return FALSE;
  188. }
  189. static
  190. BOOLEAN
  191. WINAPI
  192. WinStationEnumerateW(
  193. HANDLE hServer,
  194. PLOGONIDW *ppLogonId,
  195. PULONG pEntries
  196. )
  197. {
  198. return FALSE;
  199. }
  200. static
  201. BOOLEAN
  202. WINAPI
  203. WinStationEnumerate_IndexedW(
  204. HANDLE hServer,
  205. PULONG pEntries,
  206. PLOGONIDW pLogonId,
  207. PULONG pByteCount,
  208. PULONG pIndex
  209. )
  210. {
  211. SetLastError(ERROR_PROC_NOT_FOUND);
  212. return FALSE;
  213. }
  214. static
  215. BOOLEAN
  216. WINAPI
  217. WinStationGetTermSrvCountersValue(
  218. HANDLE hServer,
  219. ULONG dwEntries,
  220. PVOID pCounter
  221. )
  222. {
  223. return FALSE;
  224. }
  225. static
  226. BOOLEAN
  227. WinStationIsHelpAssistantSession(
  228. HANDLE hServer,
  229. ULONG LogonId
  230. )
  231. {
  232. return FALSE;
  233. }
  234. //
  235. // !! WARNING !! The entries below must be in alphabetical order, and are CASE SENSITIVE (eg lower case comes last!)
  236. //
  237. DEFINE_PROCNAME_ENTRIES(winsta)
  238. {
  239. DLPENTRY(WinStationCloseServer)
  240. DLPENTRY(WinStationConnectW)
  241. DLPENTRY(WinStationEnumerateW)
  242. DLPENTRY(WinStationEnumerate_IndexedW)
  243. DLPENTRY(WinStationFreeMemory)
  244. DLPENTRY(WinStationGetProcessSid)
  245. DLPENTRY(WinStationGetTermSrvCountersValue)
  246. DLPENTRY(WinStationIsHelpAssistantSession)
  247. DLPENTRY(WinStationOpenServerW)
  248. DLPENTRY(WinStationQueryInformationA)
  249. DLPENTRY(WinStationQueryInformationW)
  250. DLPENTRY(WinStationRegisterConsoleNotification)
  251. DLPENTRY(WinStationSendMessageW)
  252. DLPENTRY(WinStationSetInformationW)
  253. DLPENTRY(WinStationShadow)
  254. DLPENTRY(WinStationUnRegisterConsoleNotification)
  255. DLPENTRY(_WinStationNotifyLogoff)
  256. DLPENTRY(_WinStationShadowTarget)
  257. DLPENTRY(_WinStationShadowTargetSetup)
  258. };
  259. DEFINE_PROCNAME_MAP(winsta)