Quantcast
Viewing all articles
Browse latest Browse all 7

Win32 API from C# PInvoke

I am accessing the Win32 API in my application using C#, however, I'm a little confused on a few things in the documentation. I was hoping to use this thread to clear up a little bit of my confusion. For starters, in the DHCPAPI_PARAMS (http://msdn.microsoft.com/en-us/library/windows/desktop/aa363271%28v=vs.85%29.aspx) struct there is an OptionID where you pass in an unsigned 32-bit integer which will specify what information you want to request. However, on that page there is no information stating what my options are. Is this located somewhere else? I know what information I want from I just need to know what to pass.

Next up, if you look at the documentation for the DhcpCApiInitialize (http://msdn.microsoft.com/en-us/library/windows/apps/aa363273.aspx) you will find that it also takes in an unsigned 32-bit integer. There is no information on that page either specifying what I need to pass in to tell it the version. Am I missing something on these pages?

Viewing all articles
Browse latest Browse all 7

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>