Re: wzcsapi.h in visual studio 2005 by Paul
Paul
Tue Dec 04 08:43:37 PST 2007
Yes, your SDK provider will have to customize the SDK to give you the
necessary headers and libraries (or you get to figure out which files to
include, if that's you), and since this version of the C compiler (VS2005),
does not match the version used to generate the OS (PB5), it's quite
possible that there will be problems for files that were not intended by MS
for export.
NDIS_802_11_AUTHENTICATION_ENCRYPTION is in ntddndis.h which wzcsapi.h
includes itself, best I can see.
I was able to compile wzctool with no problems in VS2005. I had to add the
ddk include folder (so you'd have to add at least some of those files to
your SDK), and the oak include folder (ditto), to the include folder list in
the project. And you'd have to adjust the precompiled header settings,
since the program wasn't designed to use precompiled headers. There's also a
problem near line 267 where a variable declared inside a for() statement is
used outside it (so you need to make that variable a local of the enclosing
scope instead of declaring it in for()). Other than that, no problems...
Paul T.
"Radi" <Radi@discussions.microsoft.com> wrote in message
news:306BB5A4-16E9-48F5-8113-7EAA44FF7E5D@microsoft.com...
> Ok, but the question was about a project in Visual Studio 2005 not
> Platform
> Builder. There are some problems.
> Neither wzcsapi.h nor eapol.h are part of the StandardSDK_500 or the SDK
> build for the corresponding WinCE500 nk.bin. Taking the header files and
> wzcsapi.lib from the Platform Builder folder to use in the Visual Studio
> Project causes multiple errors like __out_bcount_opt not defined in eap.h
> which is a dependancy from eapol.h
> Furthermore NDIS_802_11_AUTHENTICATION_ENCRYPTION in wzcsapi.h is still
> undefined even with all these #includes...
>
>
>
> "Paul G. Tobey [eMVP]" wrote:
>
>> The easiest way to figure out what might be missing would be to look at
>> an
>> example program that uses wzcsapi.h and compiles successfully. I'd
>> suggest
>> wzctool.
>>
>> \wince600\PUBLIC\COMMON\OAK\DRIVERS\NETSAMP\WZCTOOL
>>
>> It includes the following headers in this order:
>>
>> #include <windows.h>
>> #include <stdio.h>
>> #include <stdarg.h>
>> #include <eapol.h>
>> #include <wzcsapi.h>
>> #include <ntddndis.h>
>>
>> Paul T.
>>
>> "Radi" <Radi@discussions.microsoft.com> wrote in message
>> news:84BA9F82-65B2-4E24-8DA1-45B67CBC8F69@microsoft.com...
>> > Obviously it does not include all necessary header files, but what ARE
>> > the
>> > necessary header files under WinCE? Documentation says WZCSetInterface
>> > requires wzcsapi.h and wzcsapi.lib which are present and wzcsapi.h
>> > doesn't
>> > work at all due to this error. Including sal.h and eaputil.h doesn't
>> > work
>> > either as eaputil.h does not exists...
>> >
>> >
>> >
>> > "Paul G. Tobey [eMVP]" wrote:
>> >
>> >> It probably just doesn't include every other header file it needs in
>> >> that
>> >> particular .h file. You have to include all of the others that it
>> >> wants
>> >> the
>> >> definitions from before you include that one.
>> >>
>> >> Paul T.
>> >
>>
>>
>>