This method of the DirectDrawSurface Class creates a Graphical Device Interface-compatible handle of a device context for the surface.
public int getDC();
Returns the handle of a device context.