1 /* Copyright 2005 Ulrich Czekalla
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public
5 * License as published by the Free Software Foundation; either
6 * version 2.1 of the License, or (at your option) any later version.
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with this library; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
24 #include "wine/debug.h"
26 WINE_DEFAULT_DEBUG_CHANNEL(wtsapi
);
29 /************************************************************
30 * WTSCloseServer (WTSAPI32.@)
32 void WINAPI
WTSCloseServer(HANDLE hServer
)
34 FIXME("Stub %p\n", hServer
);
37 /************************************************************
38 * WTSConnectSessionA (WTSAPI32.@)
40 BOOL WINAPI
WTSConnectSessionA(ULONG LogonId
, ULONG TargetLogonId
, PSTR pPassword
, BOOL bWait
)
42 FIXME("Stub %d %d (%s) %d\n", LogonId
, TargetLogonId
, debugstr_a(pPassword
), bWait
);
46 /************************************************************
47 * WTSConnectSessionW (WTSAPI32.@)
49 BOOL WINAPI
WTSConnectSessionW(ULONG LogonId
, ULONG TargetLogonId
, PWSTR pPassword
, BOOL bWait
)
51 FIXME("Stub %d %d (%s) %d\n", LogonId
, TargetLogonId
, debugstr_w(pPassword
), bWait
);
55 /************************************************************
56 * WTSDisconnectSession (WTSAPI32.@)
58 BOOL WINAPI
WTSDisconnectSession(HANDLE hServer
, DWORD SessionId
, BOOL bWait
)
60 FIXME("Stub %p 0x%08x %d\n", hServer
, SessionId
, bWait
);
64 /************************************************************
65 * WTSEnableChildSessions (WTSAPI32.@)
67 BOOL WINAPI
WTSEnableChildSessions(BOOL enable
)
69 FIXME("Stub %d\n", enable
);
73 /************************************************************
74 * WTSEnumerateProcessesA (WTSAPI32.@)
76 BOOL WINAPI
WTSEnumerateProcessesA(HANDLE hServer
, DWORD Reserved
, DWORD Version
,
77 PWTS_PROCESS_INFOA
* ppProcessInfo
, DWORD
* pCount
)
79 FIXME("Stub %p 0x%08x 0x%08x %p %p\n", hServer
, Reserved
, Version
,
80 ppProcessInfo
, pCount
);
82 if (!ppProcessInfo
|| !pCount
) return FALSE
;
85 *ppProcessInfo
= NULL
;
90 /************************************************************
91 * WTSEnumerateProcessesW (WTSAPI32.@)
93 BOOL WINAPI
WTSEnumerateProcessesW(HANDLE hServer
, DWORD Reserved
, DWORD Version
,
94 PWTS_PROCESS_INFOW
* ppProcessInfo
, DWORD
* pCount
)
96 FIXME("Stub %p 0x%08x 0x%08x %p %p\n", hServer
, Reserved
, Version
,
97 ppProcessInfo
, pCount
);
99 if (!ppProcessInfo
|| !pCount
|| Reserved
!= 0 || Version
!= 1)
101 SetLastError(ERROR_INVALID_PARAMETER
);
106 *ppProcessInfo
= NULL
;
111 /************************************************************
112 * WTSEnumerateServersA (WTSAPI32.@)
114 BOOL WINAPI
WTSEnumerateServersA(LPSTR pDomainName
, DWORD Reserved
, DWORD Version
, PWTS_SERVER_INFOA
*ppServerInfo
, DWORD
*pCount
)
116 FIXME("Stub %s 0x%08x 0x%08x %p %p\n", debugstr_a(pDomainName
), Reserved
, Version
, ppServerInfo
, pCount
);
120 /************************************************************
121 * WTSEnumerateServersW (WTSAPI32.@)
123 BOOL WINAPI
WTSEnumerateServersW(LPWSTR pDomainName
, DWORD Reserved
, DWORD Version
, PWTS_SERVER_INFOW
*ppServerInfo
, DWORD
*pCount
)
125 FIXME("Stub %s 0x%08x 0x%08x %p %p\n", debugstr_w(pDomainName
), Reserved
, Version
, ppServerInfo
, pCount
);
130 /************************************************************
131 * WTSEnumerateEnumerateSessionsA (WTSAPI32.@)
133 BOOL WINAPI
WTSEnumerateSessionsA(HANDLE hServer
, DWORD Reserved
, DWORD Version
,
134 PWTS_SESSION_INFOA
* ppSessionInfo
, DWORD
* pCount
)
138 if (!once
++) FIXME("Stub %p 0x%08x 0x%08x %p %p\n", hServer
, Reserved
, Version
,
139 ppSessionInfo
, pCount
);
141 if (!ppSessionInfo
|| !pCount
) return FALSE
;
144 *ppSessionInfo
= NULL
;
149 /************************************************************
150 * WTSEnumerateEnumerateSessionsW (WTSAPI32.@)
152 BOOL WINAPI
WTSEnumerateSessionsW(HANDLE hServer
, DWORD Reserved
, DWORD Version
,
153 PWTS_SESSION_INFOW
* ppSessionInfo
, DWORD
* pCount
)
155 FIXME("Stub %p 0x%08x 0x%08x %p %p\n", hServer
, Reserved
, Version
,
156 ppSessionInfo
, pCount
);
158 if (!ppSessionInfo
|| !pCount
) return FALSE
;
161 *ppSessionInfo
= NULL
;
166 /************************************************************
167 * WTSFreeMemory (WTSAPI32.@)
169 void WINAPI
WTSFreeMemory(PVOID pMemory
)
173 if (!once
++) FIXME("Stub %p\n", pMemory
);
176 /************************************************************
177 * WTSLogoffSession (WTSAPI32.@)
179 BOOL WINAPI
WTSLogoffSession(HANDLE hserver
, DWORD session_id
, BOOL bwait
)
181 FIXME("(%p, 0x%x, %d): stub\n", hserver
, session_id
, bwait
);
182 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
186 /************************************************************
187 * WTSOpenServerA (WTSAPI32.@)
189 HANDLE WINAPI
WTSOpenServerA(LPSTR pServerName
)
191 FIXME("(%s) stub\n", debugstr_a(pServerName
));
192 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
196 /************************************************************
197 * WTSOpenServerW (WTSAPI32.@)
199 HANDLE WINAPI
WTSOpenServerW(LPWSTR pServerName
)
201 FIXME("(%s) stub\n", debugstr_w(pServerName
));
202 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
206 /************************************************************
207 * WTSQuerySessionInformationA (WTSAPI32.@)
209 BOOL WINAPI
WTSQuerySessionInformationA(
212 WTS_INFO_CLASS WTSInfoClass
,
214 DWORD
* BytesReturned
)
216 /* FIXME: Forward request to winsta.dll::WinStationQueryInformationA */
217 FIXME("Stub %p 0x%08x %d %p %p\n", hServer
, SessionId
, WTSInfoClass
,
218 Buffer
, BytesReturned
);
223 /************************************************************
224 * WTSQuerySessionInformationW (WTSAPI32.@)
226 BOOL WINAPI
WTSQuerySessionInformationW(
229 WTS_INFO_CLASS WTSInfoClass
,
231 DWORD
* BytesReturned
)
233 /* FIXME: Forward request to winsta.dll::WinStationQueryInformationW */
234 FIXME("Stub %p 0x%08x %d %p %p\n", hServer
, SessionId
, WTSInfoClass
,
235 Buffer
, BytesReturned
);
240 /************************************************************
241 * WTSQueryUserToken (WTSAPI32.@)
243 BOOL WINAPI
WTSQueryUserToken(ULONG session_id
, PHANDLE token
)
245 FIXME("%u %p\n", session_id
, token
);
249 /************************************************************
250 * WTSQueryUserConfigA (WTSAPI32.@)
252 BOOL WINAPI
WTSQueryUserConfigA(LPSTR pServerName
, LPSTR pUserName
, WTS_CONFIG_CLASS WTSConfigClass
, LPSTR
*ppBuffer
, DWORD
*pBytesReturned
)
254 FIXME("Stub (%s) (%s) 0x%08x %p %p\n", debugstr_a(pServerName
), debugstr_a(pUserName
), WTSConfigClass
,
255 ppBuffer
, pBytesReturned
);
259 /************************************************************
260 * WTSQueryUserConfigW (WTSAPI32.@)
262 BOOL WINAPI
WTSQueryUserConfigW(LPWSTR pServerName
, LPWSTR pUserName
, WTS_CONFIG_CLASS WTSConfigClass
, LPWSTR
*ppBuffer
, DWORD
*pBytesReturned
)
264 FIXME("Stub (%s) (%s) 0x%08x %p %p\n", debugstr_w(pServerName
), debugstr_w(pUserName
), WTSConfigClass
,
265 ppBuffer
, pBytesReturned
);
270 /************************************************************
271 * WTSRegisterSessionNotification (WTSAPI32.@)
273 BOOL WINAPI
WTSRegisterSessionNotification(HWND hWnd
, DWORD dwFlags
)
275 FIXME("Stub %p 0x%08x\n", hWnd
, dwFlags
);
279 /************************************************************
280 * WTSRegisterSessionNotification (WTSAPI32.@)
282 BOOL WINAPI
WTSRegisterSessionNotificationEx(HANDLE hServer
, HWND hWnd
, DWORD dwFlags
)
284 FIXME("Stub %p %p 0x%08x\n", hServer
, hWnd
, dwFlags
);
289 /************************************************************
290 * WTSSendMessageA (WTSAPI32.@)
292 BOOL WINAPI
WTSSendMessageA(HANDLE hServer
, DWORD SessionId
, LPSTR pTitle
, DWORD TitleLength
, LPSTR pMessage
,
293 DWORD MessageLength
, DWORD Style
, DWORD Timeout
, DWORD
*pResponse
, BOOL bWait
)
295 FIXME("Stub %p 0x%08x (%s) %d (%s) %d 0x%08x %d %p %d\n", hServer
, SessionId
, debugstr_a(pTitle
), TitleLength
, debugstr_a(pMessage
), MessageLength
, Style
, Timeout
, pResponse
, bWait
);
299 /************************************************************
300 * WTSSendMessageW (WTSAPI32.@)
302 BOOL WINAPI
WTSSendMessageW(HANDLE hServer
, DWORD SessionId
, LPWSTR pTitle
, DWORD TitleLength
, LPWSTR pMessage
,
303 DWORD MessageLength
, DWORD Style
, DWORD Timeout
, DWORD
*pResponse
, BOOL bWait
)
305 FIXME("Stub %p 0x%08x (%s) %d (%s) %d 0x%08x %d %p %d\n", hServer
, SessionId
, debugstr_w(pTitle
), TitleLength
, debugstr_w(pMessage
), MessageLength
, Style
, Timeout
, pResponse
, bWait
);
309 /************************************************************
310 * WTSSetUserConfigA (WTSAPI32.@)
312 BOOL WINAPI
WTSSetUserConfigA(LPSTR pServerName
, LPSTR pUserName
, WTS_CONFIG_CLASS WTSConfigClass
, LPSTR pBuffer
, DWORD DataLength
)
314 FIXME("Stub (%s) (%s) 0x%08x %p %d\n", debugstr_a(pServerName
), debugstr_a(pUserName
), WTSConfigClass
,pBuffer
, DataLength
);
318 /************************************************************
319 * WTSSetUserConfigW (WTSAPI32.@)
321 BOOL WINAPI
WTSSetUserConfigW(LPWSTR pServerName
, LPWSTR pUserName
, WTS_CONFIG_CLASS WTSConfigClass
, LPWSTR pBuffer
, DWORD DataLength
)
323 FIXME("Stub (%s) (%s) 0x%08x %p %d\n", debugstr_w(pServerName
), debugstr_w(pUserName
), WTSConfigClass
,pBuffer
, DataLength
);
327 /************************************************************
328 * WTSShutdownSystem (WTSAPI32.@)
330 BOOL WINAPI
WTSShutdownSystem(HANDLE hServer
, DWORD ShutdownFlag
)
332 FIXME("Stub %p 0x%08x\n", hServer
,ShutdownFlag
);
336 /************************************************************
337 * WTSStartRemoteControlSessionA (WTSAPI32.@)
339 BOOL WINAPI
WTSStartRemoteControlSessionA(LPSTR pTargetServerName
, ULONG TargetLogonId
, BYTE HotkeyVk
, USHORT HotkeyModifiers
)
341 FIXME("Stub (%s) %d %d %d\n", debugstr_a(pTargetServerName
), TargetLogonId
, HotkeyVk
, HotkeyModifiers
);
345 /************************************************************
346 * WTSStartRemoteControlSessionW (WTSAPI32.@)
348 BOOL WINAPI
WTSStartRemoteControlSessionW(LPWSTR pTargetServerName
, ULONG TargetLogonId
, BYTE HotkeyVk
, USHORT HotkeyModifiers
)
350 FIXME("Stub (%s) %d %d %d\n", debugstr_w(pTargetServerName
), TargetLogonId
, HotkeyVk
, HotkeyModifiers
);
354 /************************************************************
355 * WTSStopRemoteControlSession (WTSAPI32.@)
357 BOOL WINAPI
WTSStopRemoteControlSession(ULONG LogonId
)
359 FIXME("Stub %d\n", LogonId
);
363 /************************************************************
364 * WTSTerminateProcess (WTSAPI32.@)
366 BOOL WINAPI
WTSTerminateProcess(HANDLE hServer
, DWORD ProcessId
, DWORD ExitCode
)
368 FIXME("Stub %p %d %d\n", hServer
, ProcessId
, ExitCode
);
372 /************************************************************
373 * WTSUnRegisterSessionNotification (WTSAPI32.@)
375 BOOL WINAPI
WTSUnRegisterSessionNotification(HWND hWnd
)
377 FIXME("Stub %p\n", hWnd
);
381 /************************************************************
382 * WTSUnRegisterSessionNotification (WTSAPI32.@)
384 BOOL WINAPI
WTSUnRegisterSessionNotificationEx(HANDLE hServer
, HWND hWnd
)
386 FIXME("Stub %p %p\n", hServer
, hWnd
);
391 /************************************************************
392 * WTSVirtualChannelClose (WTSAPI32.@)
394 BOOL WINAPI
WTSVirtualChannelClose(HANDLE hChannelHandle
)
396 FIXME("Stub %p\n", hChannelHandle
);
400 /************************************************************
401 * WTSVirtualChannelOpen (WTSAPI32.@)
403 HANDLE WINAPI
WTSVirtualChannelOpen(HANDLE hServer
, DWORD SessionId
, LPSTR pVirtualName
)
405 FIXME("Stub %p %d (%s)\n", hServer
, SessionId
, debugstr_a(pVirtualName
));
409 /************************************************************
410 * WTSVirtualChannelOpen (WTSAPI32.@)
412 HANDLE WINAPI
WTSVirtualChannelOpenEx(DWORD SessionId
, LPSTR pVirtualName
, DWORD flags
)
414 FIXME("Stub %d (%s) %d\n", SessionId
, debugstr_a(pVirtualName
), flags
);
418 /************************************************************
419 * WTSVirtualChannelPurgeInput (WTSAPI32.@)
421 BOOL WINAPI
WTSVirtualChannelPurgeInput(HANDLE hChannelHandle
)
423 FIXME("Stub %p\n", hChannelHandle
);
427 /************************************************************
428 * WTSVirtualChannelPurgeOutput (WTSAPI32.@)
430 BOOL WINAPI
WTSVirtualChannelPurgeOutput(HANDLE hChannelHandle
)
432 FIXME("Stub %p\n", hChannelHandle
);
437 /************************************************************
438 * WTSVirtualChannelQuery (WTSAPI32.@)
440 BOOL WINAPI
WTSVirtualChannelQuery(HANDLE hChannelHandle
, WTS_VIRTUAL_CLASS WtsVirtualClass
, PVOID
*ppBuffer
, DWORD
*pBytesReturned
)
442 FIXME("Stub %p %d %p %p\n", hChannelHandle
, WtsVirtualClass
, ppBuffer
, pBytesReturned
);
446 /************************************************************
447 * WTSVirtualChannelRead (WTSAPI32.@)
449 BOOL WINAPI
WTSVirtualChannelRead(HANDLE hChannelHandle
, ULONG TimeOut
, PCHAR Buffer
, ULONG BufferSize
, PULONG pBytesRead
)
451 FIXME("Stub %p %d %p %d %p\n", hChannelHandle
, TimeOut
, Buffer
, BufferSize
, pBytesRead
);
455 /************************************************************
456 * WTSVirtualChannelWrite (WTSAPI32.@)
458 BOOL WINAPI
WTSVirtualChannelWrite(HANDLE hChannelHandle
, PCHAR Buffer
, ULONG Length
, PULONG pBytesWritten
)
460 FIXME("Stub %p %p %d %p\n", hChannelHandle
, Buffer
, Length
, pBytesWritten
);
464 /************************************************************
465 * WTSWaitSystemEvent (WTSAPI32.@)
467 BOOL WINAPI
WTSWaitSystemEvent(HANDLE hServer
, DWORD Mask
, DWORD
* Flags
)
469 /* FIXME: Forward request to winsta.dll::WinStationWaitSystemEvent */
470 FIXME("Stub %p 0x%08x %p\n", hServer
, Mask
, Flags
);