111,092
社区成员




C++原型
BOOL __stdcall Open (HANDLE *handle,DWORD CardId);
C#对应类型
[DllImport("USB.dll", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
public static extern bool Open(ref IntPtr intptr, Byte CardId);
[DllImport("USB.dll", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
[return : MarshalAs( UnmanagedType.Bool)]//4 字节布尔值(true != 0、false = 0)。这是 Win32 BOOL 类型。
public static extern bool Open(IntPtr intptr, uint CardId);