Export (0) Print
Expand All

IDirect3DDeviceManager9::UnlockDevice method

Unlocks the Direct3D device. Call this method to release the device after calling IDirect3DDeviceManager9::LockDevice.

Syntax


HRESULT UnlockDevice(
  [in]  HANDLE hDevice,
  [in]  BOOL fSaveState
);

Parameters

hDevice [in]

Handle to the Direct3D device. To get the device handle, call IDirect3DDeviceManager9::OpenDeviceHandle.

fSaveState [in]

If TRUE, the method saves the Direct3D device state in a state block. Internally, the method uses the Direct3D IDirect3DStateBlock9 interface to save the device state. The next time you call LockDevice with the same device handle, the state block is restored.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return codeDescription
S_OK

The method succeeded.

E_INVALIDARG

The specified device handle is not locked, or is not a valid handle.

 

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Dxva2api.h

See also

IDirect3DDeviceManager9
Direct3D Device Manager

 

 

Community Additions

ADD
Show:
© 2015 Microsoft