Add support for more than one sound card.
[wine] / dlls / wtsapi32 / wtsapi32.c
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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  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 HMODULE WTSAPI32_hModule = 0;
29
30 BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
31 {
32     TRACE("%p,%lx,%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%08lx %d\n", hServer, SessionId, bWait);
64     return FALSE;
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%08lx 0x%08lx %p %p\n", hServer, Reserved, Version,
74           ppProcessInfo, pCount);
75     return FALSE;
76 }
77
78 /************************************************************
79  *                WTSEnumerateProcessesW  (WTSAPI32.@)
80  */
81 BOOL WINAPI WTSEnumerateProcessesW(HANDLE hServer, DWORD Reserved, DWORD Version,
82     PWTS_PROCESS_INFOW* ppProcessInfo, DWORD* pCount)
83 {
84     FIXME("Stub %p 0x%08lx 0x%08lx %p %p\n", hServer, Reserved, Version,
85           ppProcessInfo, pCount);
86     return FALSE;
87 }
88
89 /************************************************************
90  *                WTSEnumerateEnumerateSessionsA  (WTSAPI32.@)
91  */
92 BOOL WTSEnumerateSessionsA(HANDLE hServer, DWORD Reserved, DWORD Version,
93     PWTS_SESSION_INFOA* ppSessionInfo, DWORD* pCount)
94 {
95     FIXME("Stub %p 0x%08lx 0x%08lx %p %p\n", hServer, Reserved, Version,
96           ppSessionInfo, pCount);
97     return FALSE;
98 }
99
100 /************************************************************
101  *                WTSEnumerateEnumerateSessionsW  (WTSAPI32.@)
102  */
103 BOOL WTSEnumerateSessionsW(HANDLE hServer, DWORD Reserved, DWORD Version,
104     PWTS_SESSION_INFOW* ppSessionInfo, DWORD* pCount)
105 {
106     FIXME("Stub %p 0x%08lx 0x%08lx %p %p\n", hServer, Reserved, Version,
107           ppSessionInfo, pCount);
108     return FALSE;
109 }
110
111 /************************************************************
112  *                WTSQuerySessionInformationA  (WTSAPI32.@)
113  */
114 BOOL WINAPI WTSQuerySessionInformationA(
115     HANDLE hServer,
116     DWORD SessionId,
117     WTS_INFO_CLASS WTSInfoClass,
118     LPSTR* Buffer,
119     DWORD* BytesReturned)
120 {
121     /* FIXME: Forward request to winsta.dll::WinStationQueryInformationA */
122     FIXME("Stub %p 0x%08lx %d %p %p\n", hServer, SessionId, WTSInfoClass,
123         Buffer, BytesReturned);
124
125     return FALSE;
126 }
127
128 /************************************************************
129  *                WTSQuerySessionInformationW  (WTSAPI32.@)
130  */
131 BOOL WINAPI WTSQuerySessionInformationW(
132     HANDLE hServer,
133     DWORD SessionId,
134     WTS_INFO_CLASS WTSInfoClass,
135     LPWSTR* Buffer,
136     DWORD* BytesReturned)
137 {
138     /* FIXME: Forward request to winsta.dll::WinStationQueryInformationW */
139     FIXME("Stub %p 0x%08lx %d %p %p\n", hServer, SessionId, WTSInfoClass,
140         Buffer, BytesReturned);
141
142     return FALSE;
143 }
144
145 /************************************************************
146  *                WTSWaitSystemEvent (WTSAPI32.@)
147  */
148 BOOL WINAPI WTSWaitSystemEvent(HANDLE hServer, DWORD Mask, DWORD* Flags)
149 {
150     /* FIXME: Forward request to winsta.dll::WinStationWaitSystemEvent */
151     FIXME("Stub %p 0x%08lx %p\n", hServer, Mask, Flags);
152     return FALSE;
153 }