Re: winscard: Implement some functions of winscard.dll
May 26, 2011
3:02 p.m.
Sergey Stepanov <serg_admin(a)rambler.ru> writes:
@@ -33,6 +35,24 @@ const SCARD_IO_REQUEST g_rgSCardT0Pci = { SCARD_PROTOCOL_T0, 8 }; const SCARD_IO_REQUEST g_rgSCardT1Pci = { SCARD_PROTOCOL_T1, 8 }; const SCARD_IO_REQUEST g_rgSCardRawPci = { SCARD_PROTOCOL_RAW, 8 };
+#define MAKE_FUNCPTR(f) static typeof(f) * p##f = NULL +MAKE_FUNCPTR(SCardEstablishContext); +MAKE_FUNCPTR(SCardReleaseContext); +#undef MAKE_FUNCPTR
This can't work. You need to use the Unix headers (with appropriate configure checks), declare pointers to the Unix functions, and convert any types that need it before calling them. -- Alexandre Julliard julliard(a)winehq.org
5418
Age (days ago)
5418
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard