Hi all: i am trying to send keyboard messages and mouse events to a client application(eg:acrobat.exe) that i opend from my program. I used CreateProcess to open the client application. To simulate mouse clicks and keyboard events on the client application window, i use the SendInput function. //*********************************************** INPUT input[1]; memset(input, 0, sizeof(INPUT)); input[0].type = INPUT_KEYBOARD; input[0].ki.wVk = 68; input[0].ki.dwFlags = KEYEVENTF_KEYUP; input[0].ki.time = GetTickCount(); SendInput(1, input, sizeof(INPUT)); //***********************************************
i have included windows.h and am using VC++ on WIN2K server. When i complie the program i get the below error. error C2065: 'INPUT' : undeclared identifier error C2065: 'input' : undeclared identifier error C2065: 'INPUT_KEYBOARD' : undeclared identifier . . . error C2065: 'SendInput' : undeclared identifier I have user32.lib in the link setting of VC++. Why is this problem throwing up. i even opend the winuser.h file to check if the structures and functions are present, and i found them there.. Im stumped, could somebody throw some light on my problem. Thanks, Preetham. --------------------------------------------------------------------- To unsubscribe, mail [EMAIL PROTECTED] with the line: 'unsubscribe vnc-list' in the message BODY See also: http://www.uk.research.att.com/vnc/intouch.html ---------------------------------------------------------------------