Click here to Skip to main content
15,900,378 members
Home / Discussions / C#
   

C#

 
GeneralRe: IPv6 help Pin
Heath Stewart3-May-04 2:45
protectorHeath Stewart3-May-04 2:45 
GeneralRe: IPv6 help Pin
bouli3-May-04 2:51
bouli3-May-04 2:51 
GeneralRe: IPv6 help Pin
Heath Stewart3-May-04 3:06
protectorHeath Stewart3-May-04 3:06 
GeneralRe: IPv6 help Pin
Heath Stewart3-May-04 2:44
protectorHeath Stewart3-May-04 2:44 
GeneralRe: IPv6 help Pin
bouli3-May-04 3:18
bouli3-May-04 3:18 
GeneralRe: IPv6 help Pin
Heath Stewart3-May-04 3:23
protectorHeath Stewart3-May-04 3:23 
QuestionPrograming USB in c++? Pin
lyto3-May-04 1:37
lyto3-May-04 1:37 
AnswerRe: Programing USB in c++? Pin
Corinna John3-May-04 1:50
Corinna John3-May-04 1:50 
QuestionBrowse files and folder control? Pin
Marlun2-May-04 23:19
Marlun2-May-04 23:19 
AnswerRe: Browse files and folder control? Pin
Mazdak3-May-04 1:51
Mazdak3-May-04 1:51 
GeneralRe: Browse files and folder control? Pin
Heath Stewart3-May-04 2:27
protectorHeath Stewart3-May-04 2:27 
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 

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.