示例#1
0
 internal static IntPtr SCardSetAttrib(
     [In] IntPtr hCard,
     [In] IntPtr dwAttrId,
     [In, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 3)]
     byte[] pbAttr,
     [In] IntPtr cbAttrLen)
 {
     if (_osUnixPlatform == OSUnixPlatform.Linux)
     {
         return(LinuxNativeMethods.SCardSetAttrib(hCard, dwAttrId, pbAttr, cbAttrLen));
     }
     else if (_osUnixPlatform == OSUnixPlatform.OSX)
     {
         return(OSXNativeMethods.SCardSetAttrib(hCard, dwAttrId, pbAttr, cbAttrLen));
     }
     else
     {
         throw new NotImplementedException();
     }
 }