Request for module Scarddlg.dll

cdrakecdrake Posts: 2
edited June 8, 2015 1:36PM in PInvoke.Net
I figured out the signatures for the structure OPENCARDNAME_EX
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
        public struct OPENCARDNAME_EX
        {
            public int dwStructSize;
            public IntPtr hSCardContext;
            public IntPtr hwndOwner;
            public uint dwFlags;
            [MarshalAs(UnmanagedType.LPStr)]
            public string lpstrTitle;
            [MarshalAs(UnmanagedType.LPStr)]
            public string lpstrSearchDesc;
            public IntPtr hIcon;
            public IntPtr pOpenCardSearchCriteria;
            public IntPtr lpfnConnect;
            public IntPtr pvUserData;
            public int dwShareMode;
            public int dwPrefferedProtocols;
            [MarshalAs(UnmanagedType.LPStr)]
            public string lpstrRdr;
            public int nMaxRdr;
            [MarshalAs(UnmanagedType.LPStr)]
            public string lpstrCard;
            public int nMaxCard;
            public int dwActiveProtocol;
            public IntPtr hCardHandle;
        }
And SCardUIDlgSelectCard
[DllImport("Scarddlg.dll")]
        public static extern int SCardUIDlgSelectCard(
            ref OPENCARDNAME_EX dlgStruct
        );

Comments

  • Thanks for your post!

    I've added the module and it's not available on the PInvoke wiki on the left-hand side.
    Product Support Engineer | Redgate Software
Sign In or Register to comment.