IDirect3DSurface9::GetDC

A method of IDirect3DSurface9 that retrieves a device context.

Syntax
HRESULT GetDC( HDC* phdc );

Parameter
 phdc -  Pointer to place the device context in.

Return Values
It will return D3D_OK if it succeeds. It will return D3DERR_INVALIDCALL if the parameter is invalid.

Requirements
 Header -  d3d9.h

 Library -  d3d9.lib