This method of the DirectDrawSurface Class releases the handle of a device context previously obtained by using the getDC method.
public void releaseDC(int hdc);