quartz: Add videorenderer aggregation test.
[wine] / dlls / winscard / winscard.c
1 /*
2  * Copyright 2007 Mounir IDRASSI  (mounir.idrassi@idrix.fr, for IDRIX)
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17  */
18
19 #include "config.h"
20 #include <stdarg.h>
21 #include "windef.h"
22 #include "winbase.h"
23 #include "wine/debug.h"
24 #include "winscard.h"
25
26 WINE_DEFAULT_DEBUG_CHANNEL(winscard);
27
28 static HMODULE WINSCARD_hModule;
29
30 const SCARD_IO_REQUEST g_rgSCardT0Pci = { SCARD_PROTOCOL_T0, 8 };
31 const SCARD_IO_REQUEST g_rgSCardT1Pci = { SCARD_PROTOCOL_T1, 8 };
32 const SCARD_IO_REQUEST g_rgSCardRawPci = { SCARD_PROTOCOL_RAW, 8 };
33
34
35 BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
36 {
37     TRACE("%p,%x,%p\n", hinstDLL, fdwReason, lpvReserved);
38
39     switch (fdwReason)
40     {
41         case DLL_PROCESS_ATTACH:
42         {
43             DisableThreadLibraryCalls(hinstDLL);
44             WINSCARD_hModule = hinstDLL;
45             break;
46         }
47         case DLL_PROCESS_DETACH:
48             break;
49     }
50
51     return TRUE;
52 }
53
54 LONG WINAPI SCardEstablishContext(DWORD dwScope, LPCVOID pvReserved1,
55     LPCVOID pvReserved2, LPSCARDCONTEXT phContext)
56 {
57     FIXME("(%x,%p,%p,%p) stub\n", dwScope, pvReserved1, pvReserved2, phContext);
58     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
59     return SCARD_F_INTERNAL_ERROR;
60 }