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

C#

 
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 
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 
A lot of this just comes with experience with both unmanaged and managed languages. You can read Platform Invoke Data Types[^] in the .NET Framework SDK, but you need to read through that whole Interoperating with Unmanaged Code[^] section to really understand it (and experience, again).

Like I said before, the CertVerifyRevocation accepts one struct but this struct, in turn, uses many levels of nested structs, which the marshallers that the CLR implements/uses does not support. One solution would be to flatten the structures, but you must make sure that each struct's cbSize (as it's typically called - just the size of the struct in bytes) is still set so that only that amount of memory is read as the struct.

 

Microsoft MVP, Visual C#
My Articles
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 
GeneralRe: Listbox Hatch Pin
Heath Stewart2-May-04 6:46
protectorHeath Stewart2-May-04 6:46 
GeneralRe: Listbox Hatch Pin
"joel"2-May-04 20:27
"joel"2-May-04 20:27 

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.