Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[question] ntifs.h Error(s)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Source
View previous topic :: View next topic  
Author Message
chrissean
Cheater
Reputation: 0

Joined: 03 May 2008
Posts: 28

PostPosted: Fri May 30, 2008 12:41 am    Post subject: [question] ntifs.h Error(s) Reply with quote

I get this wen i try to compile *.sys with WDDk 6001

Code:

C:\WinDDK\6001.18001>cd C:\cheatengine\DBKKernel

C:\cheatengine\DBKKernel>ce
changing to dos-16 file structure
        1 file(s) copied.
BUILD: Compile and Link for x86
BUILD: Start time: Sun Jun 29 01:00:45 2008
BUILD: Examining c:\cheate~1\dbkker~1 directory for files to compile.
BUILD: Compiling and Linking c:\cheate~1\dbkker~1 directory
_NT_TARGET_VERSION SET TO WIN2K
Compiling - dbkdrvr.c
errors in directory c:\cheate~1\dbkker~1
c:\cheatengine\dbkkernel\ntifs.h(3077) : error C2011: '_FILE_FS_FULL_SIZE_INFORM
ATION' : 'struct' type redefinition
c:\cheatengine\dbkkernel\ntifs.h(3085) : error C2011: '_FILE_FS_LABEL_INFORMATIO
N' : 'struct' type redefinition
c:\cheatengine\dbkkernel\ntifs.h(3099) : error C2011: '_FILE_FS_SIZE_INFORMATION
' : 'struct' type redefinition
c:\cheatengine\dbkkernel\ntifs.h(3106) : error C2011: '_FILE_FS_VOLUME_INFORMATI
ON' : 'struct' type redefinition
c:\cheatengine\dbkkernel\ntifs.h(7134) : error C2371: 'KeRevertToUserAffinityThr
ead' : redefinition; different basic types
c:\cheatengine\dbkkernel\ntifs.h(8048) : error C4028: formal parameter 1 differe
nt from declaration
Compiling - dbkfunc.c
c:\cheatengine\dbkkernel\ntifs.h(3077) : error C2011: '_FILE_FS_FULL_SIZE_INFORM
ATION' : 'struct' type redefinition
c:\cheatengine\dbkkernel\ntifs.h(3085) : error C2011: '_FILE_FS_LABEL_INFORMATIO
N' : 'struct' type redefinition
c:\cheatengine\dbkkernel\ntifs.h(3099) : error C2011: '_FILE_FS_SIZE_INFORMATION
' : 'struct' type redefinition
c:\cheatengine\dbkkernel\ntifs.h(3106) : error C2011: '_FILE_FS_VOLUME_INFORMATI
ON' : 'struct' type redefinition
c:\cheatengine\dbkkernel\ntifs.h(7134) : error C2371: 'KeRevertToUserAffinityThr
ead' : redefinition; different basic types
c:\cheatengine\dbkkernel\ntifs.h(8048) : error C4028: formal parameter 1 differe
nt from declaration
Compiling - rootkit.c
c:\cheatengine\dbkkernel\ntifs.h(3077) : error C2011: '_FILE_FS_FULL_SIZE_INFORM
ATION' : 'struct' type redefinition
c:\cheatengine\dbkkernel\ntifs.h(3085) : error C2011: '_FILE_FS_LABEL_INFORMATIO
N' : 'struct' type redefinition
c:\cheatengine\dbkkernel\ntifs.h(3099) : error C2011: '_FILE_FS_SIZE_INFORMATION
' : 'struct' type redefinition
c:\cheatengine\dbkkernel\ntifs.h(3106) : error C2011: '_FILE_FS_VOLUME_INFORMATI
ON' : 'struct' type redefinition
c:\cheatengine\dbkkernel\ntifs.h(7134) : error C2371: 'KeRevertToUserAffinityThr
ead' : redefinition; different basic types
c:\cheatengine\dbkkernel\ntifs.h(8048) : error C4028: formal parameter 1 differe
nt from declaration
Compiling - processlist.c
c:\cheatengine\dbkkernel\ntifs.h(3077) : error C2011: '_FILE_FS_FULL_SIZE_INFORM
ATION' : 'struct' type redefinition
c:\cheatengine\dbkkernel\ntifs.h(3085) : error C2011: '_FILE_FS_LABEL_INFORMATIO
N' : 'struct' type redefinition
c:\cheatengine\dbkkernel\ntifs.h(3099) : error C2011: '_FILE_FS_SIZE_INFORMATION
' : 'struct' type redefinition
c:\cheatengine\dbkkernel\ntifs.h(3106) : error C2011: '_FILE_FS_VOLUME_INFORMATI
ON' : 'struct' type redefinition
c:\cheatengine\dbkkernel\ntifs.h(7134) : error C2371: 'KeRevertToUserAffinityThr
ead' : redefinition; different basic types
c:\cheatengine\dbkkernel\ntifs.h(8048) : error C4028: formal parameter 1 differe
nt from declaration
Compiling - memscan.c
c:\cheatengine\dbkkernel\ntifs.h(3077) : error C2011: '_FILE_FS_FULL_SIZE_INFORM
ATION' : 'struct' type redefinition
c:\cheatengine\dbkkernel\ntifs.h(3085) : error C2011: '_FILE_FS_LABEL_INFORMATIO
N' : 'struct' type redefinition
c:\cheatengine\dbkkernel\ntifs.h(3099) : error C2011: '_FILE_FS_SIZE_INFORMATION
' : 'struct' type redefinition
c:\cheatengine\dbkkernel\ntifs.h(3106) : error C2011: '_FILE_FS_VOLUME_INFORMATI
ON' : 'struct' type redefinition
c:\cheatengine\dbkkernel\ntifs.h(7134) : error C2371: 'KeRevertToUserAffinityThr
ead' : redefinition; different basic types
c:\cheatengine\dbkkernel\ntifs.h(8048) : error C4028: formal parameter 1 differe
nt from declaration
Compiling - threads.c
c:\cheatengine\dbkkernel\ntifs.h(3077) : error C2011: '_FILE_FS_FULL_SIZE_INFORM
ATION' : 'struct' type redefinition
c:\cheatengine\dbkkernel\ntifs.h(3085) : error C2011: '_FILE_FS_LABEL_INFORMATIO
N' : 'struct' type redefinition
c:\cheatengine\dbkkernel\ntifs.h(3099) : error C2011: '_FILE_FS_SIZE_INFORMATION
' : 'struct' type redefinition
c:\cheatengine\dbkkernel\ntifs.h(3106) : error C2011: '_FILE_FS_VOLUME_INFORMATI
ON' : 'struct' type redefinition
c:\cheatengine\dbkkernel\ntifs.h(7134) : error C2371: 'KeRevertToUserAffinityThr
ead' : redefinition; different basic types
c:\cheatengine\dbkkernel\ntifs.h(8048) : error C4028: formal parameter 1 differe
nt from declaration
Compiling - vmxhelper.c
c:\cheatengine\dbkkernel\ntifs.h(3077) : error C2011: '_FILE_FS_FULL_SIZE_INFORM
ATION' : 'struct' type redefinition
c:\cheatengine\dbkkernel\ntifs.h(3085) : error C2011: '_FILE_FS_LABEL_INFORMATIO
N' : 'struct' type redefinition
c:\cheatengine\dbkkernel\ntifs.h(3099) : error C2011: '_FILE_FS_SIZE_INFORMATION
' : 'struct' type redefinition
c:\cheatengine\dbkkernel\ntifs.h(3106) : error C2011: '_FILE_FS_VOLUME_INFORMATI
ON' : 'struct' type redefinition
c:\cheatengine\dbkkernel\ntifs.h(7134) : error C2371: 'KeRevertToUserAffinityThr
ead' : redefinition; different basic types
c:\cheatengine\dbkkernel\ntifs.h(8048) : error C4028: formal parameter 1 differe
nt from declaration
Compiling - newkernel.c
c:\cheatengine\dbkkernel\ntifs.h(3077) : error C2011: '_FILE_FS_FULL_SIZE_INFORM
ATION' : 'struct' type redefinition
c:\cheatengine\dbkkernel\ntifs.h(3085) : error C2011: '_FILE_FS_LABEL_INFORMATIO
N' : 'struct' type redefinition
c:\cheatengine\dbkkernel\ntifs.h(3099) : error C2011: '_FILE_FS_SIZE_INFORMATION
' : 'struct' type redefinition
c:\cheatengine\dbkkernel\ntifs.h(3106) : error C2011: '_FILE_FS_VOLUME_INFORMATI
ON' : 'struct' type redefinition
c:\cheatengine\dbkkernel\ntifs.h(7134) : error C2371: 'KeRevertToUserAffinityThr
ead' : redefinition; different basic types
c:\cheatengine\dbkkernel\ntifs.h(8048) : error C4028: formal parameter 1 differe
nt from declaration
Compiling - generating code...
Linking Executable - objfre_w2k_x86\i386\b0n3d.sys
link : error LNK1181: cannot open input file 'c:\cheate~1\dbkker~1\objfre_w2k_x8
6\i386\dbkdrvr.obj'
BUILD: Finish time: Sun Jun 29 01:00:48 2008
BUILD: Done

    10 files compiled - 48 Errors
    1 executable built - 1 Error
.\objfre_w2K_x86\i386\*.sys
The system cannot find the file specified.
        0 file(s) copied.

C:\CHEATE~1\DBKKER~1>


i'm not well educated on how to fix this, so if u could post a tutorial on how to fix it,or upload a new ntifs.h for me i would be greatfull.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Fri May 30, 2008 7:53 am    Post subject: Reply with quote

Just comment out the lines that it says are redefinitions.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
chrissean
Cheater
Reputation: 0

Joined: 03 May 2008
Posts: 28

PostPosted: Fri May 30, 2008 2:53 pm    Post subject: Reply with quote

aight, thnx. whut about the lines that say
Code:
formal parameter 1 difference from delcaration


ty for the help
Back to top
View user's profile Send private message
sute
How do I cheat?
Reputation: 0

Joined: 21 Sep 2010
Posts: 3

PostPosted: Wed Sep 22, 2010 12:12 pm    Post subject: Reply with quote

I can't find the way fixing: formal parameter 1 difference from declaration

I've got same errors as you but i fixed all except that formal parameter thing :S

EDIT:i somehow fixed formal parameter 1 difference from declaration this way:I opened ASR(actual search & replace).
Path: C:\WinDDK
Searched for:C4028
Found:warning.h

i opened warning.h with notepad searched for C4028 with notepad.

heres part of the code:

// Ignoring these warnings can cause blatantly incorrect code generation.
// Since not all projects are -W4 -WX, treat as errors explicitly
#pragma warning(error:4028) // C4028: formal parameter different from declaration
#pragma warning(error:4029) // C4029: declared formal parameter list different from definition

-->typed disable instead of error at (error:4028)-->(disable:4028)

// Ignoring these warnings can cause blatantly incorrect code generation.
// Since not all projects are -W4 -WX, treat as errors explicitly
#pragma warning(disable:4028) // C4028: formal parameter different from declaration
#pragma warning(error:4029) // C4029: declared formal parameter list different from definition

BUT there is one more thing.as it says: ignoring these warnings can cause blatantly incorrect code generation. so is my code now incorrect :O?
is there any other way to fix that parameter thing? im little stupid Razz.


My .sys file is now compiled but after compiling i got bunch of OACR Warnings
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Source All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites