Hi all,

I am trying to include wzcsapi.h in a VS 2005 project. All I need to
do is make the WZCSetInterface and QueryInterface calls and use the
INTF_ENTRY struct defined in that header file. Unfortunately when I
try to compile the project I am getting errors such as:

C:\WINCE600\PUBLIC\COMMON\OAK\INC\wzcsapi.h(117) : error C2146: syntax
error : missing ';' before identifier 'pEapExtensionInfo'

I presume I am doing something wrong with the environment. There are a
few structures used in the wzcsapi.h that the compiler seems to be
unable to resolve a declaration for. i.e. EAP_EXTENSION_INFO.

Any ideas?

Thanks.

Re: wzcsapi.h in visual studio 2005 by Paul

Paul
Thu Nov 01 14:51:18 PDT 2007

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.

<temporaljr@gmail.com> wrote in message
news:1193952437.262932.182480@k79g2000hse.googlegroups.com...
> Hi all,
>
> I am trying to include wzcsapi.h in a VS 2005 project. All I need to
> do is make the WZCSetInterface and QueryInterface calls and use the
> INTF_ENTRY struct defined in that header file. Unfortunately when I
> try to compile the project I am getting errors such as:
>
> C:\WINCE600\PUBLIC\COMMON\OAK\INC\wzcsapi.h(117) : error C2146: syntax
> error : missing ';' before identifier 'pEapExtensionInfo'
>
> I presume I am doing something wrong with the environment. There are a
> few structures used in the wzcsapi.h that the compiler seems to be
> unable to resolve a declaration for. i.e. EAP_EXTENSION_INFO.
>
> Any ideas?
>
> Thanks.
>



Re: wzcsapi.h in visual studio 2005 by temporaljr

temporaljr
Fri Nov 02 08:33:37 PDT 2007

On Nov 1, 5:51 pm, "Paul G. Tobey [eMVP]" <p space tobey no spam AT no
instrument no spam DOT com> 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.
>
> <tempora...@gmail.com> wrote in message
>
> news:1193952437.262932.182480@k79g2000hse.googlegroups.com...
>
> > Hi all,
>
> > I am trying to include wzcsapi.h in a VS 2005 project. All I need to
> > do is make the WZCSetInterface and QueryInterface calls and use the
> > INTF_ENTRY struct defined in that header file. Unfortunately when I
> > try to compile the project I am getting errors such as:
>
> > C:\WINCE600\PUBLIC\COMMON\OAK\INC\wzcsapi.h(117) : error C2146: syntax
> > error : missing ';' before identifier 'pEapExtensionInfo'
>
> > I presume I am doing something wrong with the environment. There are a
> > few structures used in the wzcsapi.h that the compiler seems to be
> > unable to resolve a declaration for. i.e. EAP_EXTENSION_INFO.
>
> > Any ideas?
>
> > Thanks.

Yes that was the problem. For anyone else reading, the files I needed
to include were:

#include <sal.h>
#include <eaputil.h>

Thanks.


Re: wzcsapi.h in visual studio 2005 by Radi

Radi
Tue Dec 04 04:28:01 PST 2007

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.


Re: wzcsapi.h in visual studio 2005 by Paul

Paul
Tue Dec 04 07:07:27 PST 2007

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.
>



Re: wzcsapi.h in visual studio 2005 by Radi

Radi
Tue Dec 04 07:57:03 PST 2007

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.
> >
>
>
>

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.
>> >
>>
>>
>>