Re: [3/7] dinput: Added enumerated devices to ConfigureDevices dialog

2011-09-01 Thread Marcus Meissner
On Tue, Aug 30, 2011 at 09:11:33PM -0300, Lucas Zawacki wrote: > > It doesn't make sense to pass the info as WM_INITDIALG parameter if it's > > going to be stored in global variables anyway. A better way would be to > > store this in the window info. > > > > Any pointers on what's the set of winap

Re: [3/7] dinput: Added enumerated devices to ConfigureDevices dialog

2011-08-30 Thread Octavian Voicu
On Wed, Aug 31, 2011 at 3:11 AM, Lucas Zawacki wrote: > Any pointers on what's the set of winapi functions used to store and > retrieve data in windows? I've searched MSDN for almost 30 minutes and > no luck. Try SetWindowLongPtr [1] / GetWindowLongPtr [2]. You probably want to use the W variants

Re: [3/7] dinput: Added enumerated devices to ConfigureDevices dialog

2011-08-30 Thread Lucas Zawacki
> It doesn't make sense to pass the info as WM_INITDIALG parameter if it's > going to be stored in global variables anyway. A better way would be to > store this in the window info. > Any pointers on what's the set of winapi functions used to store and retrieve data in windows? I've searched MSDN

Re: [3/7] dinput: Added enumerated devices to ConfigureDevices dialog

2011-08-26 Thread Alexandre Julliard
Lucas Fialho Zawacki writes: > +static INT_PTR CALLBACK ConfigureDevicesDlgProc(HWND dialog, UINT uMsg, > WPARAM wParam, LPARAM lParam) > +{ > +static LPDIACTIONFORMATW lpdiaf; > +static DIDevicesData devices_data; > +static ConfigureDevicesData *conf_data; > + > +switch(uMsg) >