Using Win32.h constants

  • Thread starter Thread starter Rookie
  • Start date Start date
R

Rookie

Hi,

Can someone suggest a way to use some of the constants defined in Win32.h
eg. FILE_MAP_ALL_ACCESS ?

Is there a way to include a .h file in C# code?

It would be great if someone could provide links to articles/tutorials on
this topic. Thank you.
 
Rookie said:
Hi,

Can someone suggest a way to use some of the constants defined in Win32.h
eg. FILE_MAP_ALL_ACCESS ?

Is there a way to include a .h file in C# code?

It would be great if someone could provide links to articles/tutorials on
this topic. Thank you.

Have a look at http://www.pinvoke.net/

There is also a rather handy plugin on this site that integrates with VS.NET
and allows you to drop these sorts of things direct into the code.

(Unfortunately your example doesn't exist in the P/Invoke database... yet).

Stu
 
you can't include a C header file. you need to find out the actual value of
that constant, which should be declared in win32.h anyway.
 
Back
Top