it's almost that. but it needs some changes. first you put the prototypes after the defines and typedefs, they may be needed for the prototypes. second you don't put variable names in the protypes, it should be something like:
DWORD WINAPI XInputGetState(DWORD, XINPUT_STATE*);
see the xinput.h file from the windows SDK for more details. :)
btw you could make a patch to include all the prototypes and defines of the header too. regards. ----------------------------------------
Date: Sun, 28 Dec 2008 23:41:57 +0700 From: andrewfenn@gmail.com To: wine-devel@winehq.org Subject: Re: xinput: Add stub XInputEnable
On Sun, Dec 28, 2008 at 9:39 PM, Henri Verbeet wrote:
Also, don't forget to add the prototype to the header, I noticed they're missing for all the other xinput functions as well.
I think I have added the prototypes correctly to the header file. Could you have a quick look at my patch and tell me if I am doing that right?
_________________________________________________________________ Drag n’ drop—Get easy photo sharing with Windows Live™ Photos.