Using Win32.h constants

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.
 
S

Stu Smith

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
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top