[ros-dev] include file problem

Alex Ionescu ionucu at videotron.ca
Sun Aug 21 01:54:26 CEST 2005


Hartmut Birr wrote:

>Hi,
>
>I need for some modifications the definitions of the resource structures
>(CM_FULL_RESOURCE_DESCRIPTOR, ..) in usetup. The structures are defined
>in winddk.h. It seems that it isn't possible to include winndk.h if
>ntndk.h is already included. I get errors like this:
>
>...
>include/ndk/extypes.h:37:1: warning: "SEMAPHORE_QUERY_STATE" redefined
>In file included from w32api/include/ddk/ntddk.h:67,
>                 from subsys\system\usetup\usetup.h:38:
>w32api/include/ddk/winddk.h:342:1: warning: this is the location of the
>previous definition
>In file included from include/ndk/ntndk.h:43,
>                 from subsys\system\usetup\usetup.h:41:
>include/ndk/cmtypes.h:23: error: redeclaration of `enum
>_KEY_INFORMATION_CLASS'
>include/ndk/cmtypes.h:24: error: conflicting types for 'KeyBasicInformation'
>...
>
>Our headers are broken.
>
>- Hartmut
>  
>
Hi Hartmut,

The headers are not broken. usetup is not a kernel-mode application, it 
must not include the DDK. Please add the structures to cmtypes.h and 
protect them with
#ifdef NTOS_MODE_USER
...structures here...
#endif

Best regards,
Alex Ionescu


More information about the Ros-dev mailing list