Nighthawk wrote:
>
But first I am not able to use NativeWifi. I tried putting "Using
NativeWifi" in my C# code but it throws error right there.
I think I will need to add reference to my application. I don't know
which dll i need to import.
I have installed Windows SDK. Tried searching for Nativewifi.dll but
could not find it. There is a file Nativewifi.hxs but I don't know what
that is or how to use it.
Please help me get started.
Nighthawk,
Nativewifi.hxs is some sort of compiled helpfile (part of MSDN)
You'll need to look for ndisXXX.h files, they are installed as part of
the Mobile SDK. (Probably somewhere under Program Files). But maybe only
if you opted to include C++ development.
When you've found the headers you will have to import the functions (see
the ImportDll attribute) and translate the struct definitons into
equivalent C# code. There may exist tools for that, but if you need only
a few you might try it by hand. It will take some learning.
Personally I am impressed with the tools C# offers (like
[FieldOffset()]) but it will be of little help until you understand C
structs and the typical WinAPI types. Note that C or C++ hardly matters
here.
-HH-