access winapi constants using c# 
Author Message
 access winapi constants using c#

hi i'd like to know how to acces constants from the windows api using C#.
for example the WM_* messsage numbers and so on. i know they are located in
header files but how can c# acess a header file?


Mon, 28 Mar 2005 15:42:53 GMT  
 access winapi constants using c#

Quote:
>hi i'd like to know how to acces constants from the windows api using c#.
>for example the WM_* messsage numbers and so on. i know they are located in
>header files but how can c# acess a header file?

C# doesn't support header files, so you have to manually extract the
message definitions, and translate them to C# consts or enums.

Mattias

===

http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.



Mon, 28 Mar 2005 16:13:35 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. using constants and memory constants

2. WinAPI to access the Windows Explorer Search Engine

3. Accessing WINAPI Registry funcs from MFC

4. Accessing WINAPI Registry funcs from MFC

5. DLL using WINAPI 16 Bit DS!=SS Problem

6. Finding files in subdirectories using WINAPI

7. DLL using WINAPI 16 Bit DS!=SS Problem

8. Menus using WINAPI under Visual C++ 4.2

9. Time for accessing array elements - linear or constant ?

10. constant array access??

11. Accessing Excel constants from an Excel.Application?

12. How to access constant classes across several projects.

 

 
Powered by phpBB® Forum Software