ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

wtsapi32.c
Go to the documentation of this file.
00001 /* Copyright 2005 Ulrich Czekalla
00002  *
00003  * This library is free software; you can redistribute it and/or
00004  * modify it under the terms of the GNU Lesser General Public
00005  * License as published by the Free Software Foundation; either
00006  * version 2.1 of the License, or (at your option) any later version.
00007  *
00008  * This library is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011  * Lesser General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU Lesser General Public
00014  * License along with this library; if not, write to the Free Software
00015  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
00016  */
00017 
00018 #include "config.h"
00019 #include <stdarg.h>
00020 #include <stdlib.h>
00021 #include "windef.h"
00022 #include "winbase.h"
00023 #include "wtsapi32.h"
00024 #include "wine/debug.h"
00025 
00026 WINE_DEFAULT_DEBUG_CHANNEL(wtsapi);
00027 
00028 static HMODULE WTSAPI32_hModule;
00029 
00030 BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
00031 {
00032     TRACE("%p,%x,%p\n", hinstDLL, fdwReason, lpvReserved);
00033 
00034     switch (fdwReason) {
00035         case DLL_PROCESS_ATTACH:
00036         {
00037             DisableThreadLibraryCalls(hinstDLL);
00038             WTSAPI32_hModule = hinstDLL;
00039             break;
00040         }
00041         case DLL_PROCESS_DETACH:
00042         {
00043             break;
00044         }
00045     }
00046 
00047     return TRUE;
00048 }
00049 
00050 /************************************************************
00051  *                WTSCloseServer  (WTSAPI32.@)
00052  */
00053 void WINAPI WTSCloseServer(HANDLE hServer)
00054 {
00055     FIXME("Stub %p\n", hServer);
00056 }
00057 
00058 /************************************************************
00059  *                WTSConnectSessionA  (WTSAPI32.@)
00060  */
00061 BOOL WINAPI WTSConnectSessionA(ULONG LogonId, ULONG TargetLogonId, PSTR pPassword, BOOL bWait)
00062 {
00063    FIXME("Stub %d %d (%s) %d\n", LogonId, TargetLogonId, debugstr_a(pPassword), bWait);
00064    return TRUE;
00065 }
00066 
00067 /************************************************************
00068  *                WTSConnectSessionW  (WTSAPI32.@)
00069  */
00070 BOOL WINAPI WTSConnectSessionW(ULONG LogonId, ULONG TargetLogonId, PWSTR pPassword, BOOL bWait)
00071 {
00072    FIXME("Stub %d %d (%s) %d\n", LogonId, TargetLogonId, debugstr_w(pPassword), bWait);
00073    return TRUE;
00074 }
00075 
00076 /************************************************************
00077  *                WTSDisconnectSession  (WTSAPI32.@)
00078  */
00079 BOOL WINAPI WTSDisconnectSession(HANDLE hServer, DWORD SessionId, BOOL bWait)
00080 {
00081     FIXME("Stub %p 0x%08x %d\n", hServer, SessionId, bWait);
00082     return TRUE;
00083 }
00084 
00085 /************************************************************
00086  *                WTSEnumerateProcessesA  (WTSAPI32.@)
00087  */
00088 BOOL WINAPI WTSEnumerateProcessesA(HANDLE hServer, DWORD Reserved, DWORD Version,
00089     PWTS_PROCESS_INFOA* ppProcessInfo, DWORD* pCount)
00090 {
00091     FIXME("Stub %p 0x%08x 0x%08x %p %p\n", hServer, Reserved, Version,
00092           ppProcessInfo, pCount);
00093 
00094     if (!ppProcessInfo || !pCount) return FALSE;
00095 
00096     *pCount = 0;
00097     *ppProcessInfo = NULL;
00098 
00099     return TRUE;
00100 }
00101 
00102 /************************************************************
00103  *                WTSEnumerateProcessesW  (WTSAPI32.@)
00104  */
00105 BOOL WINAPI WTSEnumerateProcessesW(HANDLE hServer, DWORD Reserved, DWORD Version,
00106     PWTS_PROCESS_INFOW* ppProcessInfo, DWORD* pCount)
00107 {
00108     FIXME("Stub %p 0x%08x 0x%08x %p %p\n", hServer, Reserved, Version,
00109           ppProcessInfo, pCount);
00110 
00111     if (!ppProcessInfo || !pCount) return FALSE;
00112 
00113     *pCount = 0;
00114     *ppProcessInfo = NULL;
00115 
00116     return TRUE;
00117 }
00118 
00119 /************************************************************
00120  *                WTSEnumerateServersA  (WTSAPI32.@)
00121  */
00122 BOOL WINAPI WTSEnumerateServersA(LPSTR pDomainName, DWORD Reserved, DWORD Version, PWTS_SERVER_INFOA *ppServerInfo, DWORD *pCount)
00123 {
00124     FIXME("Stub %s 0x%08x 0x%08x %p %p\n", debugstr_a(pDomainName), Reserved, Version, ppServerInfo, pCount);
00125     return FALSE;
00126 }
00127 
00128 /************************************************************
00129  *                WTSEnumerateServersW  (WTSAPI32.@)
00130  */
00131 BOOL WINAPI WTSEnumerateServersW(LPWSTR pDomainName, DWORD Reserved, DWORD Version, PWTS_SERVER_INFOW *ppServerInfo, DWORD *pCount)
00132 {
00133     FIXME("Stub %s 0x%08x 0x%08x %p %p\n", debugstr_w(pDomainName), Reserved, Version, ppServerInfo, pCount);
00134     return FALSE;
00135 }
00136 
00137 
00138 /************************************************************
00139  *                WTSEnumerateEnumerateSessionsA  (WTSAPI32.@)
00140  */
00141 BOOL WINAPI WTSEnumerateSessionsA(HANDLE hServer, DWORD Reserved, DWORD Version,
00142     PWTS_SESSION_INFOA* ppSessionInfo, DWORD* pCount)
00143 {
00144     FIXME("Stub %p 0x%08x 0x%08x %p %p\n", hServer, Reserved, Version,
00145           ppSessionInfo, pCount);
00146 
00147     if (!ppSessionInfo || !pCount) return FALSE;
00148 
00149     *pCount = 0;
00150     *ppSessionInfo = NULL;
00151 
00152     return TRUE;
00153 }
00154 
00155 /************************************************************
00156  *                WTSEnumerateEnumerateSessionsW  (WTSAPI32.@)
00157  */
00158 BOOL WINAPI WTSEnumerateSessionsW(HANDLE hServer, DWORD Reserved, DWORD Version,
00159     PWTS_SESSION_INFOW* ppSessionInfo, DWORD* pCount)
00160 {
00161     FIXME("Stub %p 0x%08x 0x%08x %p %p\n", hServer, Reserved, Version,
00162           ppSessionInfo, pCount);
00163 
00164     if (!ppSessionInfo || !pCount) return FALSE;
00165 
00166     *pCount = 0;
00167     *ppSessionInfo = NULL;
00168 
00169     return TRUE;
00170 }
00171 
00172 /************************************************************
00173  *                WTSFreeMemory (WTSAPI32.@)
00174  */
00175 void WINAPI WTSFreeMemory(PVOID pMemory)
00176 {
00177     FIXME("Stub %p\n", pMemory);
00178 }
00179 
00180 /************************************************************
00181  *                WTSLogoffSession (WTSAPI32.@)
00182  */
00183 BOOL WINAPI WTSLogoffSession(HANDLE hserver, DWORD session_id, BOOL bwait)
00184 {
00185     FIXME("(%p, 0x%x, %d): stub\n", hserver, session_id, bwait);
00186     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
00187     return FALSE;
00188 }
00189 
00190 /************************************************************
00191  *                WTSOpenServerA (WTSAPI32.@)
00192  */
00193 HANDLE WINAPI WTSOpenServerA(LPSTR pServerName)
00194 {
00195     FIXME("(%s) stub\n", debugstr_a(pServerName));
00196     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
00197     return NULL;
00198 }
00199 
00200 /************************************************************
00201  *                WTSOpenServerW (WTSAPI32.@)
00202  */
00203 HANDLE WINAPI WTSOpenServerW(LPWSTR pServerName)
00204 {
00205     FIXME("(%s) stub\n", debugstr_w(pServerName));
00206     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
00207     return NULL;
00208 }
00209 
00210 /************************************************************
00211  *                WTSQuerySessionInformationA  (WTSAPI32.@)
00212  */
00213 BOOL WINAPI WTSQuerySessionInformationA(
00214     HANDLE hServer,
00215     DWORD SessionId,
00216     WTS_INFO_CLASS WTSInfoClass,
00217     LPSTR* Buffer,
00218     DWORD* BytesReturned)
00219 {
00220     /* FIXME: Forward request to winsta.dll::WinStationQueryInformationA */
00221     FIXME("Stub %p 0x%08x %d %p %p\n", hServer, SessionId, WTSInfoClass,
00222         Buffer, BytesReturned);
00223 
00224     return FALSE;
00225 }
00226 
00227 /************************************************************
00228  *                WTSQuerySessionInformationW  (WTSAPI32.@)
00229  */
00230 BOOL WINAPI WTSQuerySessionInformationW(
00231     HANDLE hServer,
00232     DWORD SessionId,
00233     WTS_INFO_CLASS WTSInfoClass,
00234     LPWSTR* Buffer,
00235     DWORD* BytesReturned)
00236 {
00237     /* FIXME: Forward request to winsta.dll::WinStationQueryInformationW */
00238     FIXME("Stub %p 0x%08x %d %p %p\n", hServer, SessionId, WTSInfoClass,
00239         Buffer, BytesReturned);
00240 
00241     return FALSE;
00242 }
00243 
00244 /************************************************************
00245  *                WTSQueryUserToken (WTSAPI32.@)
00246  */
00247 BOOL WINAPI WTSQueryUserToken(ULONG session_id, PHANDLE token)
00248 {
00249     FIXME("%u %p\n", session_id, token);
00250     return FALSE;
00251 }
00252 
00253 /************************************************************
00254  *                WTSQueryUserConfigA (WTSAPI32.@)
00255  */
00256 BOOL WINAPI WTSQueryUserConfigA(LPSTR pServerName, LPSTR pUserName, WTS_CONFIG_CLASS WTSConfigClass, LPSTR *ppBuffer, DWORD *pBytesReturned)
00257 {
00258    FIXME("Stub (%s) (%s) 0x%08x %p %p\n", debugstr_a(pServerName), debugstr_a(pUserName), WTSConfigClass,
00259         ppBuffer, pBytesReturned);
00260    return FALSE;
00261 }
00262 
00263 /************************************************************
00264  *                WTSQueryUserConfigW (WTSAPI32.@)
00265  */
00266 BOOL WINAPI WTSQueryUserConfigW(LPWSTR pServerName, LPWSTR pUserName, WTS_CONFIG_CLASS WTSConfigClass, LPWSTR *ppBuffer, DWORD *pBytesReturned)
00267 {
00268    FIXME("Stub (%s) (%s) 0x%08x %p %p\n", debugstr_w(pServerName), debugstr_w(pUserName), WTSConfigClass,
00269         ppBuffer, pBytesReturned);
00270    return FALSE;
00271 }
00272 
00273 
00274 /************************************************************
00275  *                WTSRegisterSessionNotification (WTSAPI32.@)
00276  */
00277 BOOL WINAPI WTSRegisterSessionNotification(HWND hWnd, DWORD dwFlags)
00278 {
00279     FIXME("Stub %p 0x%08x\n", hWnd, dwFlags);
00280     return TRUE;
00281 }
00282 
00283 /************************************************************
00284  *                WTSRegisterSessionNotification (WTSAPI32.@)
00285  */
00286 BOOL WINAPI WTSRegisterSessionNotificationEx(HANDLE hServer, HWND hWnd, DWORD dwFlags)
00287 {
00288     FIXME("Stub %p %p 0x%08x\n", hServer, hWnd, dwFlags);
00289     return FALSE;
00290 }
00291 
00292 
00293 /************************************************************
00294  *                WTSSendMessageA (WTSAPI32.@)
00295  */
00296 BOOL WINAPI WTSSendMessageA(HANDLE hServer, DWORD SessionId, LPSTR pTitle, DWORD TitleLength, LPSTR pMessage,
00297    DWORD MessageLength, DWORD Style, DWORD Timeout, DWORD *pResponse, BOOL bWait)
00298 {
00299    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);
00300    return FALSE;
00301 }
00302 
00303 /************************************************************
00304  *                WTSSendMessageW (WTSAPI32.@)
00305  */
00306 BOOL WINAPI WTSSendMessageW(HANDLE hServer, DWORD SessionId, LPWSTR pTitle, DWORD TitleLength, LPWSTR pMessage,
00307    DWORD MessageLength, DWORD Style, DWORD Timeout, DWORD *pResponse, BOOL bWait)
00308 {
00309    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);
00310    return FALSE;
00311 }
00312 
00313 /************************************************************
00314  *                WTSSetUserConfigA (WTSAPI32.@)
00315  */
00316 BOOL WINAPI WTSSetUserConfigA(LPSTR pServerName, LPSTR pUserName, WTS_CONFIG_CLASS WTSConfigClass, LPSTR pBuffer, DWORD DataLength)
00317 {
00318    FIXME("Stub (%s) (%s) 0x%08x %p %d\n", debugstr_a(pServerName), debugstr_a(pUserName), WTSConfigClass,pBuffer, DataLength);
00319    return FALSE;
00320 }
00321 
00322 /************************************************************
00323  *                WTSSetUserConfigW (WTSAPI32.@)
00324  */
00325 BOOL WINAPI WTSSetUserConfigW(LPWSTR pServerName, LPWSTR pUserName, WTS_CONFIG_CLASS WTSConfigClass, LPWSTR pBuffer, DWORD DataLength)
00326 {
00327    FIXME("Stub (%s) (%s) 0x%08x %p %d\n", debugstr_w(pServerName), debugstr_w(pUserName), WTSConfigClass,pBuffer, DataLength);
00328    return FALSE;
00329 }
00330 
00331 /************************************************************
00332  *                WTSShutdownSystem (WTSAPI32.@)
00333  */
00334 BOOL WINAPI WTSShutdownSystem(HANDLE hServer, DWORD ShutdownFlag)
00335 {
00336    FIXME("Stub %p 0x%08x\n", hServer,ShutdownFlag);
00337    return FALSE;
00338 }
00339 
00340 /************************************************************
00341  *                WTSStartRemoteControlSessionA (WTSAPI32.@)
00342  */
00343 BOOL WINAPI WTSStartRemoteControlSessionA(LPSTR pTargetServerName, ULONG TargetLogonId, BYTE HotkeyVk, USHORT HotkeyModifiers)
00344 {
00345    FIXME("Stub (%s) %d %d %d\n", debugstr_a(pTargetServerName), TargetLogonId, HotkeyVk, HotkeyModifiers);
00346    return FALSE;
00347 }
00348 
00349 /************************************************************
00350  *                WTSStartRemoteControlSessionW (WTSAPI32.@)
00351  */
00352 BOOL WINAPI WTSStartRemoteControlSessionW(LPWSTR pTargetServerName, ULONG TargetLogonId, BYTE HotkeyVk, USHORT HotkeyModifiers)
00353 {
00354    FIXME("Stub (%s) %d %d %d\n", debugstr_w(pTargetServerName), TargetLogonId, HotkeyVk, HotkeyModifiers);
00355    return FALSE;
00356 }
00357 
00358 /************************************************************
00359  *                WTSStopRemoteControlSession (WTSAPI32.@)
00360  */
00361 BOOL WINAPI WTSStopRemoteControlSession(ULONG LogonId)
00362 {
00363    FIXME("Stub %d\n",  LogonId);
00364    return FALSE;
00365 }
00366 
00367 /************************************************************
00368  *                WTSTerminateProcess (WTSAPI32.@)
00369  */
00370 BOOL WINAPI WTSTerminateProcess(HANDLE hServer, DWORD ProcessId, DWORD ExitCode)
00371 {
00372    FIXME("Stub %p %d %d\n", hServer, ProcessId, ExitCode);
00373    return FALSE;
00374 }
00375 
00376 /************************************************************
00377  *                WTSUnRegisterSessionNotification (WTSAPI32.@)
00378  */
00379 BOOL WINAPI WTSUnRegisterSessionNotification(HWND hWnd)
00380 {
00381     FIXME("Stub %p\n", hWnd);
00382     return FALSE;
00383 }
00384 
00385 /************************************************************
00386  *                WTSUnRegisterSessionNotification (WTSAPI32.@)
00387  */
00388 BOOL WINAPI WTSUnRegisterSessionNotificationEx(HANDLE hServer, HWND hWnd)
00389 {
00390     FIXME("Stub %p %p\n", hServer, hWnd);
00391     return FALSE;
00392 }
00393 
00394 
00395 /************************************************************
00396  *                WTSVirtualChannelClose (WTSAPI32.@)
00397  */
00398 BOOL WINAPI WTSVirtualChannelClose(HANDLE hChannelHandle)
00399 {
00400    FIXME("Stub %p\n", hChannelHandle);
00401    return FALSE;
00402 }
00403 
00404 /************************************************************
00405  *                WTSVirtualChannelOpen (WTSAPI32.@)
00406  */
00407 HANDLE WINAPI WTSVirtualChannelOpen(HANDLE hServer, DWORD SessionId, LPSTR pVirtualName)
00408 {
00409    FIXME("Stub %p %d (%s)\n", hServer, SessionId, debugstr_a(pVirtualName));
00410    return NULL;
00411 }
00412 
00413 /************************************************************
00414  *                WTSVirtualChannelOpen (WTSAPI32.@)
00415  */
00416 HANDLE WINAPI WTSVirtualChannelOpenEx(DWORD SessionId, LPSTR pVirtualName, DWORD flags)
00417 {
00418    FIXME("Stub %d (%s) %d\n",  SessionId, debugstr_a(pVirtualName), flags);
00419    return NULL;
00420 }
00421 
00422 /************************************************************
00423  *                WTSVirtualChannelPurgeInput (WTSAPI32.@)
00424  */
00425 BOOL WINAPI WTSVirtualChannelPurgeInput(HANDLE hChannelHandle)
00426 {
00427    FIXME("Stub %p\n", hChannelHandle);
00428    return FALSE;
00429 }
00430 
00431 /************************************************************
00432  *                WTSVirtualChannelPurgeOutput (WTSAPI32.@)
00433  */
00434 BOOL WINAPI WTSVirtualChannelPurgeOutput(HANDLE hChannelHandle)
00435 {
00436    FIXME("Stub %p\n", hChannelHandle);
00437    return FALSE;
00438 }
00439 
00440 
00441 /************************************************************
00442  *                WTSVirtualChannelQuery (WTSAPI32.@)
00443  */
00444 BOOL WINAPI WTSVirtualChannelQuery(HANDLE hChannelHandle, WTS_VIRTUAL_CLASS WtsVirtualClass, PVOID *ppBuffer, DWORD *pBytesReturned)
00445 {
00446    FIXME("Stub %p %d %p %p\n", hChannelHandle, WtsVirtualClass, ppBuffer, pBytesReturned);
00447    return FALSE;
00448 }
00449 
00450 /************************************************************
00451  *                WTSVirtualChannelRead (WTSAPI32.@)
00452  */
00453 BOOL WINAPI WTSVirtualChannelRead(HANDLE hChannelHandle, ULONG TimeOut, PCHAR Buffer, ULONG BufferSize, PULONG pBytesRead)
00454 {
00455    FIXME("Stub %p %d %p %d %p\n", hChannelHandle, TimeOut, Buffer, BufferSize, pBytesRead);
00456    return FALSE;
00457 }
00458 
00459 /************************************************************
00460  *                WTSVirtualChannelWrite (WTSAPI32.@)
00461  */
00462 BOOL WINAPI WTSVirtualChannelWrite(HANDLE hChannelHandle, PCHAR Buffer, ULONG Length, PULONG pBytesWritten)
00463 {
00464    FIXME("Stub %p %p %d %p\n", hChannelHandle, Buffer, Length, pBytesWritten);
00465    return FALSE;
00466 }
00467 
00468 /************************************************************
00469  *                WTSWaitSystemEvent (WTSAPI32.@)
00470  */
00471 BOOL WINAPI WTSWaitSystemEvent(HANDLE hServer, DWORD Mask, DWORD* Flags)
00472 {
00473     /* FIXME: Forward request to winsta.dll::WinStationWaitSystemEvent */
00474     FIXME("Stub %p 0x%08x %p\n", hServer, Mask, Flags);
00475     return FALSE;
00476 }

Generated on Sat May 26 2012 04:25:41 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.