Getting Xinput inside a C++ class

hello i am making this simple test class to house the whole xinput api for my project but for now want to get one. i been trying of making a class than when u input the controller numbre and the left and right values the class sets the controller vibration motor to those values but i am getting and error with zeromemory can somebody help me here ?
here its the class header file

#include <XInput.h>// new xinput
//--
// Name: class Controller
// Desc: Handles game input
//--
class Controller
{
public:
static VOID SetVibration( INT i, FLOAT fLeft, FLOAT fRight );

};

and the class file

#include ".\controller.h"
#include <XInput.h>// xinput class

VOID Controller::SetVibration( INT i, FLOAT fLeft, FLOAT fRight ) // static
{
XINPUT_VIBRATION vibration;
ZeroMemory( &vibration, sizeof(XINPUT_VIBRATION) );
vibration.wLeftMotorSpeed = 32000; // use any value between 0-65535 here
vibration.wRightMotorSpeed = 16000; // use any value between 0-65535 here
XInputSetState( i, &vibration );
}

and here are the error it produces

Compiling...
controller.cpp
c:\Program Files\Microsoft Platform SDK\Include\WinNT.h(3857) : error C2146: syntax error : missing ';' before identifier 'ContextRecord'
c:\Program Files\Microsoft Platform SDK\Include\WinNT.h(3857) : error C2501: '_EXCEPTION_POINTERS::PCONTEXT' : missing storage-class or type specifiers
c:\Program Files\Microsoft Platform SDK\Include\WinNT.h(3857) : error C2501: '_EXCEPTION_POINTERS::ContextRecord' : missing storage-class or type specifiers
c:\Program Files\Microsoft Platform SDK\Include\WinNT.h(8319) : error C2065: 'PCONTEXT' : undeclared identifier
c:\Program Files\Microsoft Platform SDK\Include\WinNT.h(8320) : error C2146: syntax error : missing ')' before identifier 'ContextRecord'
c:\Program Files\Microsoft Platform SDK\Include\WinNT.h(8320) : warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Platform SDK\Include\WinNT.h(8320) : error C2182: 'RtlCaptureContext' : illegal use of type 'void'
c:\Program Files\Microsoft Platform SDK\Include\WinNT.h(8320) : error C2491: 'RtlCaptureContext' : definition of dllimport data not allowed
c:\Program Files\Microsoft Platform SDK\Include\WinNT.h(8320) : error C2059: syntax error : ')'
c:\Program Files\Microsoft Platform SDK\Include\WinNT.h(9594) : error C3861: '__readfsdword': identifier not found, even with argument-dependent lookup
d:\Anner files\programming\Tools\dxsdk_jun2006\Samples\C++\XInput\RumbleController\controller.cpp(10) : error C3861: 'ZeroMemory': identifier not found, even with argument-dependent lookup

[2769 byte] By [annerajb] at [2007-12-23]
# 1
My guess is that your problem is related to trying to build your project in the Samples directory. Use the Sample Browser to install the sample you're trying to modifying in your own directory outside the SDK install directory.
RossRidge at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: General...
# 2
Hi,

I've the same problem and I think this will help me. But can you tell me how to find the sample brower in visual express c++ ?

thanks

SuperYak at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: General...