winscard: Implement some functions of winscard.dll
Alexandre Julliard
julliard at winehq.org
Thu May 26 10:02:15 CDT 2011
Sergey Stepanov <serg_admin at 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 at winehq.org
More information about the wine-devel
mailing list