internal static IntPtr SCardReconnect( [In] IntPtr hCard, [In] IntPtr dwShareMode, [In] IntPtr dwPreferredProtocols, [In] IntPtr dwInitialization, [Out] out IntPtr pdwActiveProtocol) { if (_osUnixPlatform == OSUnixPlatform.Linux) { return(LinuxNativeMethods.SCardReconnect(hCard, dwShareMode, dwPreferredProtocols, dwInitialization, out pdwActiveProtocol)); } else if (_osUnixPlatform == OSUnixPlatform.OSX) { return(OSXNativeMethods.SCardReconnect(hCard, dwShareMode, dwPreferredProtocols, dwInitialization, out pdwActiveProtocol)); } else { throw new NotImplementedException(); } }