Including header file in C#
-
PWLX_NOTIFICATION_INFO for winlogin notification package is defined in Winwlx.h file. how i will use it in C#, where i can't include header files ???:confused: @!$h@
-
PWLX_NOTIFICATION_INFO for winlogin notification package is defined in Winwlx.h file. how i will use it in C#, where i can't include header files ???:confused: @!$h@
Wrong language - C and C++ allow you to include header files. Find the header file, find the text you are looking for ("PWLX_NOTIFICATION_INFO") and find out what it equates to. In C# write something like:
const uint PWLX_NOTIFICATION_INFO = 0x80001234;
or what ever the value might be. Then repeat for as many values in the set as there are.
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar Coming soon: The Second EuroCPian Event
-
PWLX_NOTIFICATION_INFO for winlogin notification package is defined in Winwlx.h file. how i will use it in C#, where i can't include header files ???:confused: @!$h@
Aisha Ikram wrote: PWLX_NOTIFICATION_INFO for winlogin notification package is defined in Winwlx.h file. how i will use it in C#, where i can't include header files ??? Use P/Invoke to call the relevant APIs, and as Colin pointed out, declare your own constants. See also http://www.pinvoke.net[^] (and update it if you have anything new).
Ian Darling "If we've learned anything from history, it's that those who feed trolls are condemned to repetitive conversations. Or something like that." - Eric Lippert