The IDirectInputEffect::Escape method sends a hardware-specific command to the driver.
HRESULT Escape(
LPDIEFFESCAPE pesc
);
Parameters
pesc
A DIEFFESCAPE structure that describes the command to be sent. On success, the cbOutBuffer member contains the number of bytes of the output buffer actually used.
Return Values
If the method succeeds, the return value is DI_OK.
If the method fails, the return value may be one of the following error values:
DIERR_NOTINITIALIZED |
DIERR_DEVICEFULL |
Other device-specific error codes are also possible. Ask the hardware manufacturer for details.
Remarks
Since each driver implements different escapes, it is the application's responsibility to ensure that it is sending the escape to the correct driver by comparing the value of the guidFFDriver member of the DIDEVICEINSTANCE structure against the value the application is expecting.
QuickInfo
Windows NT: Use version 5.0 or later.
Windows: Use Windows 95 OSR2 or later. Available as a redistributable for Windows 95.
Windows CE: Unsupported.
Header: Declared in dinput.h.
Import Library: Use dinput.lib.