Make all newly created surfces dirty, so that they are loaded properly
[wine/multimedia.git] / dlls / wtsapi32 / wtsapi32.c
blobc5134e17d82a9c89d1a95ffda1b61629df3e01a2
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
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"
26 WINE_DEFAULT_DEBUG_CHANNEL(wtsapi);
28 HMODULE WTSAPI32_hModule = 0;
30 BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
32 TRACE("%p,%lx,%p\n", hinstDLL, fdwReason, lpvReserved);
34 switch (fdwReason) {
35 case DLL_PROCESS_ATTACH:
37 DisableThreadLibraryCalls(hinstDLL);
38 WTSAPI32_hModule = hinstDLL;
39 break;
41 case DLL_PROCESS_DETACH:
43 break;
47 return TRUE;
50 /************************************************************
51 * WTSCloseServer (WTSAPI32.@)
53 void WINAPI WTSCloseServer(HANDLE hServer)
55 FIXME("Stub %p\n", hServer);
58 /************************************************************
59 * WTSDisconnectSession (WTSAPI32.@)
61 BOOL WINAPI WTSDisconnectSession(HANDLE hServer, DWORD SessionId, BOOL bWait)
63 FIXME("Stub %p 0x%08lx %d\n", hServer, SessionId, bWait);
64 return TRUE;
67 /************************************************************
68 * WTSEnumerateProcessesA (WTSAPI32.@)
70 BOOL WINAPI WTSEnumerateProcessesA(HANDLE hServer, DWORD Reserved, DWORD Version,
71 PWTS_PROCESS_INFOA* ppProcessInfo, DWORD* pCount)
73 FIXME("Stub %p 0x%08lx 0x%08lx %p %p\n", hServer, Reserved, Version,
74 ppProcessInfo, pCount);
76 if (!ppProcessInfo || !pCount) return FALSE;
78 *pCount = 0;
79 *ppProcessInfo = NULL;
81 return TRUE;
84 /************************************************************
85 * WTSEnumerateProcessesW (WTSAPI32.@)
87 BOOL WINAPI WTSEnumerateProcessesW(HANDLE hServer, DWORD Reserved, DWORD Version,
88 PWTS_PROCESS_INFOW* ppProcessInfo, DWORD* pCount)
90 FIXME("Stub %p 0x%08lx 0x%08lx %p %p\n", hServer, Reserved, Version,
91 ppProcessInfo, pCount);
93 if (!ppProcessInfo || !pCount) return FALSE;
95 *pCount = 0;
96 *ppProcessInfo = NULL;
98 return TRUE;
101 /************************************************************
102 * WTSEnumerateEnumerateSessionsA (WTSAPI32.@)
104 BOOL WINAPI WTSEnumerateSessionsA(HANDLE hServer, DWORD Reserved, DWORD Version,
105 PWTS_SESSION_INFOA* ppSessionInfo, DWORD* pCount)
107 FIXME("Stub %p 0x%08lx 0x%08lx %p %p\n", hServer, Reserved, Version,
108 ppSessionInfo, pCount);
110 if (!ppSessionInfo || !pCount) return FALSE;
112 *pCount = 0;
113 *ppSessionInfo = NULL;
115 return TRUE;
118 /************************************************************
119 * WTSEnumerateEnumerateSessionsW (WTSAPI32.@)
121 BOOL WINAPI WTSEnumerateSessionsW(HANDLE hServer, DWORD Reserved, DWORD Version,
122 PWTS_SESSION_INFOW* ppSessionInfo, DWORD* pCount)
124 FIXME("Stub %p 0x%08lx 0x%08lx %p %p\n", hServer, Reserved, Version,
125 ppSessionInfo, pCount);
127 if (!ppSessionInfo || !pCount) return FALSE;
129 *pCount = 0;
130 *ppSessionInfo = NULL;
132 return TRUE;
135 /************************************************************
136 * WTSFreeMemory (WTSAPI32.@)
138 void WINAPI WTSFreeMemory(PVOID pMemory)
140 FIXME("Stub %p\n", pMemory);
141 return;
144 /************************************************************
145 * WTSQuerySessionInformationA (WTSAPI32.@)
147 BOOL WINAPI WTSQuerySessionInformationA(
148 HANDLE hServer,
149 DWORD SessionId,
150 WTS_INFO_CLASS WTSInfoClass,
151 LPSTR* Buffer,
152 DWORD* BytesReturned)
154 /* FIXME: Forward request to winsta.dll::WinStationQueryInformationA */
155 FIXME("Stub %p 0x%08lx %d %p %p\n", hServer, SessionId, WTSInfoClass,
156 Buffer, BytesReturned);
158 return FALSE;
161 /************************************************************
162 * WTSQuerySessionInformationW (WTSAPI32.@)
164 BOOL WINAPI WTSQuerySessionInformationW(
165 HANDLE hServer,
166 DWORD SessionId,
167 WTS_INFO_CLASS WTSInfoClass,
168 LPWSTR* Buffer,
169 DWORD* BytesReturned)
171 /* FIXME: Forward request to winsta.dll::WinStationQueryInformationW */
172 FIXME("Stub %p 0x%08lx %d %p %p\n", hServer, SessionId, WTSInfoClass,
173 Buffer, BytesReturned);
175 return FALSE;
178 /************************************************************
179 * WTSWaitSystemEvent (WTSAPI32.@)
181 BOOL WINAPI WTSWaitSystemEvent(HANDLE hServer, DWORD Mask, DWORD* Flags)
183 /* FIXME: Forward request to winsta.dll::WinStationWaitSystemEvent */
184 FIXME("Stub %p 0x%08lx %p\n", hServer, Mask, Flags);
185 return FALSE;