Request for module Scarddlg.dll

Announcements and discussion for PInvoke

Request for module Scarddlg.dll

Postby cdrake » Fri Jun 05, 2015 2:09 pm

I figured out the signatures for the structure OPENCARDNAME_EX
Code: Select all
[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
Code: Select all
[DllImport("Scarddlg.dll")]
        public static extern int SCardUIDlgSelectCard(
            ref OPENCARDNAME_EX dlgStruct
        );
cdrake
 
Posts: 1
Joined: Fri Jun 05, 2015 1:51 pm

Re: Request for module Scarddlg.dll

Postby jessica.ramos » Mon Jun 08, 2015 5:36 pm

Thanks for your post!

I've added the module and it's not available on the PInvoke wiki on the left-hand side.
Jessica Ramos
Technical Support
Red Gate Software Ltd.
jessica.ramos
 
Posts: 544
Joined: Mon Apr 23, 2012 12:13 pm


Return to PInvoke.Net

Who is online

Users browsing this forum: No registered users and 1 guest