Microsoft DirectX 8.1 (Visual Basic)

DirectInputDevice8.Acquire

Obtains access to the input device.

object.Acquire()

Parts

object
Resolves to a DirectInputDevice8 object.

Error Codes

If the method fails, an error is raised and Err.Number may be one of the following error codes.:

DIERR_INVALIDPARAM
DIERR_OTHERAPPHASPRIO

Remarks

Before a device can be acquired, a data format must be set by using the DirectInputDevice8.SetDataFormat or DirectInputDevice8.SetCommonDataFormat method.

A device must be acquired before input data can be retrieved from it.

See Also

DirectInputDevice8.Unacquire