~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Wine Cross Reference
wine/dlls/wtsapi32/wtsapi32.c

Version: ~ [ wine-1.5.30 ] ~ [ wine-1.5.29 ] ~ [ wine-1.5.28 ] ~ [ wine-1.5.27 ] ~ [ wine-1.5.26 ] ~ [ wine-1.5.25 ] ~ [ wine-1.5.24 ] ~ [ wine-1.5.23 ] ~ [ wine-1.5.22 ] ~ [ wine-1.5.21 ] ~ [ wine-1.5.20 ] ~ [ wine-1.5.19 ] ~ [ wine-1.5.18 ] ~ [ wine-1.5.17 ] ~ [ wine-1.5.16 ] ~ [ wine-1.5.15 ] ~ [ wine-1.5.14 ] ~ [ wine-1.5.13 ] ~ [ wine-1.5.12 ] ~ [ wine-1.5.11 ] ~ [ wine-1.5.10 ] ~ [ wine-1.5.9 ] ~ [ wine-1.5.8 ] ~ [ wine-1.5.7 ] ~ [ wine-1.4.1 ] ~ [ wine-1.5.6 ] ~ [ wine-1.5.5 ] ~ [ wine-1.5.4 ] ~ [ wine-1.5.3 ] ~ [ wine-1.5.2 ] ~ [ wine-1.5.1 ] ~ [ wine-1.5.0 ] ~ [ wine-1.4 ] ~ [ wine-1.4-rc6 ] ~ [ wine-1.4-rc5 ] ~ [ wine-1.4-rc4 ] ~ [ wine-1.4-rc3 ] ~ [ wine-1.4-rc2 ] ~ [ wine-1.4-rc1 ] ~ [ wine-1.3.37 ] ~ [ wine-1.3.36 ] ~ [ wine-1.3.35 ] ~ [ wine-1.3.34 ] ~ [ wine-1.3.33 ] ~ [ wine-1.3.32 ] ~ [ wine-1.3.31 ] ~ [ wine-1.3.30 ] ~ [ wine-1.3.29 ] ~ [ wine-1.3.28 ] ~ [ wine-1.3.27 ] ~ [ wine-1.3.26 ] ~ [ wine-1.3.25 ] ~ [ wine-1.3.24 ] ~ [ wine-1.3.23 ] ~ [ wine-1.3.22 ] ~ [ wine-1.3.21 ] ~ [ wine-1.3.20 ] ~ [ wine-1.3.19 ] ~ [ wine-1.3.18 ] ~ [ wine-1.2.3 ] ~ [ wine-1.3.17 ] ~ [ wine-1.3.16 ] ~ [ wine-1.3.15 ] ~ [ wine-1.3.14 ] ~ [ wine-1.3.13 ] ~ [ wine-1.3.12 ] ~ [ wine-1.3.11 ] ~ [ wine-1.3.10 ] ~ [ wine-1.3.9 ] ~ [ wine-1.2.2 ] ~ [ wine-1.3.8 ] ~ [ wine-1.3.7 ] ~ [ wine-1.3.6 ] ~ [ wine-1.3.5 ] ~ [ wine-1.2.1 ] ~ [ wine-1.3.4 ] ~ [ wine-1.3.3 ] ~ [ wine-1.3.2 ] ~ [ wine-1.3.1 ] ~ [ wine-1.3.0 ] ~ [ wine-1.2 ] ~ [ wine-1.2-rc7 ] ~ [ wine-1.2-rc6 ] ~ [ wine-1.2-rc5 ] ~ [ wine-1.2-rc4 ] ~ [ wine-1.2-rc3 ] ~ [ wine-1.2-rc2 ] ~ [ wine-1.2-rc1 ] ~ [ wine-1.1.44 ] ~ [ wine-1.1.43 ] ~ [ wine-1.1.42 ] ~ [ wine-1.1.41 ] ~ [ wine-1.1.40 ] ~ [ wine-1.1.39 ] ~ [ wine-1.1.38 ] ~ [ wine-1.1.37 ] ~ [ wine-1.1.36 ] ~ [ wine-1.1.35 ] ~ [ wine-1.1.34 ] ~ [ wine-1.1.33 ] ~ [ wine-1.1.32 ] ~ [ wine-1.1.31 ] ~ [ wine-1.1.30 ] ~ [ wine-1.1.29 ] ~ [ wine-1.1.28 ] ~ [ wine-1.1.27 ] ~ [ wine-1.1.26 ] ~ [ wine-1.1.25 ] ~ [ wine-1.1.24 ] ~ [ wine-1.1.23 ] ~ [ wine-1.1.22 ] ~ [ wine-1.1.21 ] ~ [ wine-1.1.20 ] ~ [ wine-1.1.19 ] ~ [ wine-1.1.18 ] ~ [ wine-1.1.17 ] ~ [ wine-1.1.16 ] ~ [ wine-1.1.15 ] ~ [ wine-1.1.14 ] ~ [ wine-1.1.13 ] ~ [ wine-1.1.12 ] ~ [ wine-1.1.11 ] ~ [ wine-1.1.10 ] ~ [ wine-1.1.9 ] ~ [ wine-1.1.8 ] ~ [ wine-1.1.7 ] ~ [ wine-1.0.1 ] ~ [ wine-1.1.6 ] ~ [ wine-1.1.5 ] ~ [ wine-1.1.4 ] ~ [ wine-1.1.3 ] ~ [ wine-1.1.2 ] ~ [ wine-1.1.1 ] ~ [ wine-1.1.0 ] ~ [ wine-1.0 ] ~

  1 /* Copyright 2005 Ulrich Czekalla
  2  *
  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.
  7  *
  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.
 12  *
 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
 16  */
 17 
 18 #include "config.h"
 19 #include <stdarg.h>
 20 #include <stdlib.h>
 21 #include "windef.h"
 22 #include "winbase.h"
 23 #include "wtsapi32.h"
 24 #include "wine/debug.h"
 25 
 26 WINE_DEFAULT_DEBUG_CHANNEL(wtsapi);
 27 
 28 static HMODULE WTSAPI32_hModule;
 29 
 30 BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
 31 {
 32     TRACE("%p,%x,%p\n", hinstDLL, fdwReason, lpvReserved);
 33 
 34     switch (fdwReason) {
 35         case DLL_PROCESS_ATTACH:
 36         {
 37             DisableThreadLibraryCalls(hinstDLL);
 38             WTSAPI32_hModule = hinstDLL;
 39             break;
 40         }
 41         case DLL_PROCESS_DETACH:
 42         {
 43             break;
 44         }
 45     }
 46 
 47     return TRUE;
 48 }
 49 
 50 /************************************************************
 51  *                WTSCloseServer  (WTSAPI32.@)
 52  */
 53 void WINAPI WTSCloseServer(HANDLE hServer)
 54 {
 55     FIXME("Stub %p\n", hServer);
 56 }
 57 
 58 /************************************************************
 59  *                WTSDisconnectSession  (WTSAPI32.@)
 60  */
 61 BOOL WINAPI WTSDisconnectSession(HANDLE hServer, DWORD SessionId, BOOL bWait)
 62 {
 63     FIXME("Stub %p 0x%08x %d\n", hServer, SessionId, bWait);
 64     return TRUE;
 65 }
 66 
 67 /************************************************************
 68  *                WTSEnumerateProcessesA  (WTSAPI32.@)
 69  */
 70 BOOL WINAPI WTSEnumerateProcessesA(HANDLE hServer, DWORD Reserved, DWORD Version,
 71     PWTS_PROCESS_INFOA* ppProcessInfo, DWORD* pCount)
 72 {
 73     FIXME("Stub %p 0x%08x 0x%08x %p %p\n", hServer, Reserved, Version,
 74           ppProcessInfo, pCount);
 75 
 76     if (!ppProcessInfo || !pCount) return FALSE;
 77 
 78     *pCount = 0;
 79     *ppProcessInfo = NULL;
 80 
 81     return TRUE;
 82 }
 83 
 84 /************************************************************
 85  *                WTSEnumerateProcessesW  (WTSAPI32.@)
 86  */
 87 BOOL WINAPI WTSEnumerateProcessesW(HANDLE hServer, DWORD Reserved, DWORD Version,
 88     PWTS_PROCESS_INFOW* ppProcessInfo, DWORD* pCount)
 89 {
 90     FIXME("Stub %p 0x%08x 0x%08x %p %p\n", hServer, Reserved, Version,
 91           ppProcessInfo, pCount);
 92 
 93     if (!ppProcessInfo || !pCount) return FALSE;
 94 
 95     *pCount = 0;
 96     *ppProcessInfo = NULL;
 97 
 98     return TRUE;
 99 }
100 
101 /************************************************************
102  *                WTSEnumerateEnumerateSessionsA  (WTSAPI32.@)
103  */
104 BOOL WINAPI WTSEnumerateSessionsA(HANDLE hServer, DWORD Reserved, DWORD Version,
105     PWTS_SESSION_INFOA* ppSessionInfo, DWORD* pCount)
106 {
107     FIXME("Stub %p 0x%08x 0x%08x %p %p\n", hServer, Reserved, Version,
108           ppSessionInfo, pCount);
109 
110     if (!ppSessionInfo || !pCount) return FALSE;
111 
112     *pCount = 0;
113     *ppSessionInfo = NULL;
114 
115     return TRUE;
116 }
117 
118 /************************************************************
119  *                WTSEnumerateEnumerateSessionsW  (WTSAPI32.@)
120  */
121 BOOL WINAPI WTSEnumerateSessionsW(HANDLE hServer, DWORD Reserved, DWORD Version,
122     PWTS_SESSION_INFOW* ppSessionInfo, DWORD* pCount)
123 {
124     FIXME("Stub %p 0x%08x 0x%08x %p %p\n", hServer, Reserved, Version,
125           ppSessionInfo, pCount);
126 
127     if (!ppSessionInfo || !pCount) return FALSE;
128 
129     *pCount = 0;
130     *ppSessionInfo = NULL;
131 
132     return TRUE;
133 }
134 
135 /************************************************************
136  *                WTSFreeMemory (WTSAPI32.@)
137  */
138 void WINAPI WTSFreeMemory(PVOID pMemory)
139 {
140     FIXME("Stub %p\n", pMemory);
141     return;
142 }
143 
144 /************************************************************
145  *                WTSOpenServerA (WTSAPI32.@)
146  */
147 HANDLE WINAPI WTSOpenServerA(LPSTR pServerName)
148 {
149     FIXME("(%s) stub\n", debugstr_a(pServerName));
150     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
151     return NULL;
152 }
153 
154 /************************************************************
155  *                WTSOpenServerW (WTSAPI32.@)
156  */
157 HANDLE WINAPI WTSOpenServerW(LPWSTR pServerName)
158 {
159     FIXME("(%s) stub\n", debugstr_w(pServerName));
160     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
161     return NULL;
162 }
163 
164 /************************************************************
165  *                WTSQuerySessionInformationA  (WTSAPI32.@)
166  */
167 BOOL WINAPI WTSQuerySessionInformationA(
168     HANDLE hServer,
169     DWORD SessionId,
170     WTS_INFO_CLASS WTSInfoClass,
171     LPSTR* Buffer,
172     DWORD* BytesReturned)
173 {
174     /* FIXME: Forward request to winsta.dll::WinStationQueryInformationA */
175     FIXME("Stub %p 0x%08x %d %p %p\n", hServer, SessionId, WTSInfoClass,
176         Buffer, BytesReturned);
177 
178     return FALSE;
179 }
180 
181 /************************************************************
182  *                WTSQuerySessionInformationW  (WTSAPI32.@)
183  */
184 BOOL WINAPI WTSQuerySessionInformationW(
185     HANDLE hServer,
186     DWORD SessionId,
187     WTS_INFO_CLASS WTSInfoClass,
188     LPWSTR* Buffer,
189     DWORD* BytesReturned)
190 {
191     /* FIXME: Forward request to winsta.dll::WinStationQueryInformationW */
192     FIXME("Stub %p 0x%08x %d %p %p\n", hServer, SessionId, WTSInfoClass,
193         Buffer, BytesReturned);
194 
195     return FALSE;
196 }
197 
198 /************************************************************
199  *                WTSWaitSystemEvent (WTSAPI32.@)
200  */
201 BOOL WINAPI WTSWaitSystemEvent(HANDLE hServer, DWORD Mask, DWORD* Flags)
202 {
203     /* FIXME: Forward request to winsta.dll::WinStationWaitSystemEvent */
204     FIXME("Stub %p 0x%08x %p\n", hServer, Mask, Flags);
205     return FALSE;
206 }
207 
208 /************************************************************
209  *                WTSRegisterSessionNotification (WTSAPI32.@)
210  */
211 BOOL WINAPI WTSRegisterSessionNotification(HWND hWnd, DWORD dwFlags)
212 {
213     FIXME("Stub %p 0x%08x\n", hWnd, dwFlags);
214     return FALSE;
215 }
216 
217 /************************************************************
218  *                WTSUnRegisterSessionNotification (WTSAPI32.@)
219  */
220 BOOL WINAPI WTSUnRegisterSessionNotification(HWND hWnd)
221 {
222     FIXME("Stub %p\n", hWnd);
223     return FALSE;
224 }
225 
226 /************************************************************
227  *                WTSQueryUserToken (WTSAPI32.@)
228  */
229 BOOL WINAPI WTSQueryUserToken(ULONG session_id, PHANDLE token)
230 {
231     FIXME("%u %p\n", session_id, token);
232     return FALSE;
233 }
234 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.