Extern Win32 API and structures

  • Thread starter Thread starter Ondrej Sevecek
  • Start date Start date
O

Ondrej Sevecek

Hello,
I want to use some Win32 API call which itself uses some structure types a
input/output parameters. I would use "extern" and "DllImport" manually, but
this would expose a lot of work for me - struct redefinitions.
Is there any simple method to import structure types from C++ .H files
into C# code or is there some predefined class containing the whole Win32
API stubs so I wouldn't have to define them myself?

Ondra.
 
Back
Top