Urgent help needed in Ring 0 file operations

Hello All,

I just tried to use the walter oney’s IfsMgr.h for the ring0 functions in windows 98.
That is given along with the FILEIO sample in his WDM book.
It compiles fine when used in the C++ project [the sample FILEIO in which the files
are used is a c++ project]

I just tried to use the same file in the C project. There it gives the below mentioned
errors. I don’t know what that error means.


Compiling resources…
Compiling…
ATAPI.C
Fileio98.c

C:\vcdmport\ifsmgr.h(289) : error C2373: ‘IFSMgr_DosToWin32Time’ : redefinition; different type modifiers
C:\vcdmport\ifs.h(1341) : see declaration of ‘IFSMgr_DosToWin32Time’

C:\vcdmport\ifsmgr.h(564) : error C2373: ‘UniToBCS’ : redefinition; different type modifiers
C:\vcdmport\ifs.h(1240) : see declaration of ‘UniToBCS’

C:\vcdmport\ifsmgr.h(569) : error C2373: ‘BCSToUni’ : redefinition; different type modifiers
C:\vcdmport\ifs.h(1270) : see declaration of ‘BCSToUni’

C:\vcdmport\ifsmgr.h(584) : error C2373: ‘UniCharToOEM’ : redefinition; different type modifiers
C:\vcdmport\ifs.h(1304) : see declaration of ‘UniCharToOEM’

Error executing cl.exe.


The error C2373 is described in MSDN as follows

****

Compiler Error C2373
‘identifier’ : redefinition; different type modifiers

The specified identifier was already defined with a different type modifier.

The following is an example of this error:

void __pascal func( void );
void __cdecl func( void ); // error

****

Any solutions?

Even if there are some other ways to perform Ring 0 operations, let me know.

TIA.

-Sathish.

Hello All,

I just tried to use the walter oney’s IfsMgr.h for the ring0 functions in
windows 98.
That is given along with the FILEIO sample in his WDM book.
It compiles fine when used in the C++ project [the sample FILEIO in which
the files
are used is a c++ project]

I just tried to use the same file in the C project. There it gives the below
mentioned
errors. I don’t know what that error means.


Compiling resources…
Compiling…
ATAPI.C
Fileio98.c

C:\vcdmport\ifsmgr.h(289) : error C2373: ‘IFSMgr_DosToWin32Time’ :
redefinition; different type modifiers
C:\vcdmport\ifs.h(1341) : see declaration of ‘IFSMgr_DosToWin32Time’

C:\vcdmport\ifsmgr.h(564) : error C2373: ‘UniToBCS’ : redefinition;
different type modifiers
C:\vcdmport\ifs.h(1240) : see declaration of ‘UniToBCS’

C:\vcdmport\ifsmgr.h(569) : error C2373: ‘BCSToUni’ : redefinition;
different type modifiers
C:\vcdmport\ifs.h(1270) : see declaration of ‘BCSToUni’

C:\vcdmport\ifsmgr.h(584) : error C2373: ‘UniCharToOEM’ : redefinition;
different type modifiers
C:\vcdmport\ifs.h(1304) : see declaration of ‘UniCharToOEM’

Error executing cl.exe.


The error C2373 is described in MSDN as follows

****

Compiler Error C2373
‘identifier’ : redefinition; different type modifiers

The specified identifier was already defined with a different type modifier.

The following is an example of this error:

void __pascal func( void );
void __cdecl func( void ); // error

****

Any solutions?

Even if there are some other ways to perform Ring 0 operations, let me know.

TIA.

-Sathish.

This means, that both header files ifsmgr.h and ifs.h contains different
definitions of
same functions.

Try to include only ifsmgr.h into your project.

“Sathish Kumar” wrote in message news:xxxxx@ntfsd…
>
> Hello All,
>
> I just tried to use the walter oney’s IfsMgr.h for the ring0 functions in
> windows 98.
> That is given along with the FILEIO sample in his WDM book.
> It compiles fine when used in the C++ project [the sample FILEIO in which
> the files
> are used is a c++ project]
>
> I just tried to use the same file in the C project. There it gives the
below
> mentioned
> errors. I don’t know what that error means.
>
>
>
>
> Compiling resources…
> Compiling…
> ATAPI.C
> Fileio98.c
>
> C:\vcdmport\ifsmgr.h(289) : error C2373: ‘IFSMgr_DosToWin32Time’ :
> redefinition; different type modifiers
> C:\vcdmport\ifs.h(1341) : see declaration of
‘IFSMgr_DosToWin32Time’
>
> C:\vcdmport\ifsmgr.h(564) : error C2373: ‘UniToBCS’ : redefinition;
> different type modifiers
> C:\vcdmport\ifs.h(1240) : see declaration of ‘UniToBCS’
>
> C:\vcdmport\ifsmgr.h(569) : error C2373: ‘BCSToUni’ : redefinition;
> different type modifiers
> C:\vcdmport\ifs.h(1270) : see declaration of ‘BCSToUni’
>
> C:\vcdmport\ifsmgr.h(584) : error C2373: ‘UniCharToOEM’ : redefinition;
> different type modifiers
> C:\vcdmport\ifs.h(1304) : see declaration of ‘UniCharToOEM’
>
> Error executing cl.exe.
>
>

>
> The error C2373 is described in MSDN as follows
>
>
>
> Compiler Error C2373
> ‘identifier’ : redefinition; different type modifiers
>
> The specified identifier was already defined with a different type
modifier.
>
> The following is an example of this error:
>
> void __pascal func( void );
> void__cdecl func( void ); // error
>
>

>
>
>
> Any solutions?
>
> Even if there are some other ways to perform Ring 0 operations, let me
know.
>
> TIA.
>
> -Sathish.
>
>
>
>
>