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 


NtUserSendInput...

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Thu Feb 05, 2009 6:57 pm    Post subject: NtUserSendInput... Reply with quote

typedef ULONG (__stdcall *NTUSERSENDINPUT)(UINT, LPINPUT, INT);

it keeps giving me an error about LPINPUT and INT are not formal? why?

I suck at C so dont complain/flame.
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Thu Feb 05, 2009 7:15 pm    Post subject: Reply with quote

Well, I assume this is for your driver right?

Well guess what, INT doesn't exist, nor does LPINPUT.

Define them.

_________________
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Thu Feb 05, 2009 7:33 pm    Post subject: Reply with quote

You know what, I'm just going to go ahead and say this, as I'm sure most of the people here are thinking it:

You do not know C. You are over your head. If you are programming drivers and keep spamming the forums up with useless syntax based questions you are not ready to leave usermode. Plain and simple. People have been feeding you source code and leading you by the nose, and you obviously aren't learning shit. For the love of God, program something easier.
Back to top
View user's profile Send private message
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Thu Feb 05, 2009 7:35 pm    Post subject: Reply with quote

ok Ill start learning C.

and everything works except NtUserSendInput. So After I program this driver im outa kernelmode...
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Thu Feb 05, 2009 7:38 pm    Post subject: Reply with quote

dnsi0 wrote:
ok Ill start learning C.

and everything works except NtUserSendInput. So After I program this driver im outa kernelmode...


I didn't say that to be an ass, but honestly.

Prime example of what I was talking about: http://forum.cheatengine.org/viewtopic.php?t=363374

(Mandatory Article)
Back to top
View user's profile Send private message
BanMe
Master Cheater
Reputation: 0

Joined: 29 Nov 2005
Posts: 375
Location: Farmington NH, USA

PostPosted: Thu Feb 05, 2009 8:14 pm    Post subject: Reply with quote

bah dont listen to flyte though his point is valid do not let that stop you..

the fact that the headers are different from usermode to kernel mode is a fact that escaped alot of people.. so dont let that get you down.

as lurk stated "define them" here's how Smile


Code:

#define INT int
#define UINT unsigned int
typedef struct tagMOUSEINPUT {
LONG dx;
LONG dy;
DWORD mouseData;
DWORD dwFlags;
DWORD time;
ULONG_PTR dwExtraInfo;
} MOUSEINPUT, *PMOUSEINPUT, FAR* LPMOUSEINPUT;

typedef struct tagKEYBDINPUT {
WORD wVk;
WORD wScan;
DWORD dwFlags;
DWORD time;
ULONG_PTR dwExtraInfo;
} KEYBDINPUT, *PKEYBDINPUT, FAR* LPKEYBDINPUT;

typedef struct tagHARDWAREINPUT {
DWORD uMsg;
WORD wParamL;
WORD wParamH;
} HARDWAREINPUT, *PHARDWAREINPUT, FAR* LPHARDWAREINPUT;

#define INPUT_MOUSE 0
#define INPUT_KEYBOARD 1
#define INPUT_HARDWARE 2

typedef struct tagINPUT {
DWORD type;

union
{
MOUSEINPUT mi;
KEYBDINPUT ki;
HARDWAREINPUT hi;
};
} INPUT, *PINPUT, FAR* LPINPUT;
/*
NTSYSAPI
ULONG
NTAPI
NtUserSendInput(
IN UINT cInputs, // number of input in the array
IN LPINPUT pInputs, // array of inputs
IN int cbSize); // sizeof(INPUT)
*/
Back to top
View user's profile Send private message MSN Messenger
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Fri Feb 06, 2009 2:56 pm    Post subject: Reply with quote

Thanks. Its fixed now.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming 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