Click here to Skip to main content
15,888,803 members
Home / Discussions / C#
   

C#

 
GeneralRe: Browse files and folder control? Pin
Marlun3-May-04 2:51
Marlun3-May-04 2:51 
GeneralRe: Browse files and folder control? Pin
Heath Stewart3-May-04 3:08
protectorHeath Stewart3-May-04 3:08 
GeneralRe: Browse files and folder control? Pin
Marlun3-May-04 6:01
Marlun3-May-04 6:01 
AnswerRe: Browse files and folder control? Pin
Meysam Mahfouzi3-May-04 2:06
Meysam Mahfouzi3-May-04 2:06 
GeneralRe: Browse files and folder control? Pin
Marlun3-May-04 2:52
Marlun3-May-04 2:52 
GeneralCalling crypt32.dll functions from C# Pin
jamie__smith2-May-04 22:55
jamie__smith2-May-04 22:55 
GeneralRe: Calling crypt32.dll functions from C# Pin
Mazdak3-May-04 1:47
Mazdak3-May-04 1:47 
GeneralRe: Calling crypt32.dll functions from C# Pin
Heath Stewart3-May-04 2:25
protectorHeath Stewart3-May-04 2:25 
While Mazdak's reply (use the System.Security.Cryptography classes) would normally apply, I realize that the current .NET FCL does not include information for cert revocation lists and verify them.

If you need to call functions defined in the crypt32.dll library, you need to P/Invoke them, so a good working knowledge of how types map between unmanaged and managed code (like knowing that an unmanaged LONG is a managed int (System.Int32) is necessary.

While the P/Invoke method declaration is easy, there is a heck of a lot of structures to re-declare in managed code, and the marshaller does not support marshalling nested structs, so you're pretty much stuck. As Mazdak recommened, write a mixed-mode MC++ (Managed C++ extensions) that use the native APIs and provide a managed class wrapper - it'll be MUCH easier than the alternative!

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Calling crypt32.dll functions from C# Pin
jamie__smith3-May-04 3:33
jamie__smith3-May-04 3:33 
GeneralRe: Calling crypt32.dll functions from C# Pin
Heath Stewart3-May-04 3:46
protectorHeath Stewart3-May-04 3:46 
GeneralID3 algortithm Pin
Member 7511392-May-04 22:52
Member 7511392-May-04 22:52 
GeneralRe: ID3 algortithm Pin
Heath Stewart3-May-04 2:06
protectorHeath Stewart3-May-04 2:06 
Generalexplorer structure Pin
cristina_tudor2-May-04 22:05
cristina_tudor2-May-04 22:05 
GeneralRe: explorer structure Pin
Colin Angus Mackay2-May-04 22:29
Colin Angus Mackay2-May-04 22:29 
GeneralDesign database....... Pin
god4k2-May-04 21:27
god4k2-May-04 21:27 
GeneralRe: Design database....... Pin
Colin Angus Mackay2-May-04 21:38
Colin Angus Mackay2-May-04 21:38 
GeneralRe: Design database....... Pin
god4k3-May-04 1:02
god4k3-May-04 1:02 
GeneralRe: Design database....... Pin
Colin Angus Mackay3-May-04 1:28
Colin Angus Mackay3-May-04 1:28 
GeneralRe: Design database....... Pin
god4k3-May-04 17:19
god4k3-May-04 17:19 
Generalstatus bar color Pin
Dpriya2-May-04 20:56
Dpriya2-May-04 20:56 
GeneralRe: status bar color Pin
Heath Stewart3-May-04 2:00
protectorHeath Stewart3-May-04 2:00 
GeneralStoring Color To database Pin
sreejith ss nair2-May-04 20:49
sreejith ss nair2-May-04 20:49 
GeneralRe: Storing Color To database Pin
Colin Angus Mackay2-May-04 21:28
Colin Angus Mackay2-May-04 21:28 
GeneralRe: Storing Color To database Pin
Heath Stewart3-May-04 1:58
protectorHeath Stewart3-May-04 1:58 
GeneralListbox Hatch Pin
"joel"2-May-04 6:37
"joel"2-May-04 6:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.