function GetDC( var DeviceContext: HDC ): Boolean;
Calls the interface GetDC method to create a GDI-compatible HDC for the surface. Returns False if it gets a DDERR_WASSTILLDRAWING error code or True if it succeds (DD_OK). See IDirectDrawSurface3::GetDC for more information.