func
CancelDC:BOOL 
    HDC: handle // handle to device context 
   
func
 ChangeDisplaySettings:int32
    LPDEVMODE:phandle  
     dwflags:handle

func
CreateCompatibleDC:handle
    HDC : handle 	// handle to memory device context 
  
func
CreateDC:handle
    lpszDriver:pchar	// pointer to string specifying driver name 
    lpszDevice:pchar,	// pointer to string specifying device name  
    lpszOutput:pchar,	// do not use; set to NULL 
    lpInitData:pointer 	// pointer to optional printer data 
 
func
CreateIC:handle
    lpszDriver:pchar,	// pointer to string specifying driver name 
    lpszDevice:pchar,	// pointer to string specifying device name 
    lpszOutput:pchar,	// pointer to string specifying port or file name  
    lpdvmInit :pointer	// pointer to optional initialization data 

func 
DeleteDC:BOOL 
    HDC :handle 	// handle to device context 
 
func 
 DeleteObject:BOOL
    hObject:handle 	// handle to graphic object  

func
DeviceCapabilities:DWORD 
    pDevice:pchar,	// pointer to a printer-name string 
    pPort:pchar,	// pointer to a port-name string 
    fwCapability:int16,	// device capability to query 
    pOutput:pchar o,	// pointer to the output 
    pDevMode:pointer 	// pointer to structure with device data  

func
 DrawEscape:int32
    HDC :handle 	// handle to device context 
    nEscape:int32,	// specifies escape function 
    cbInput:int32,	// size of structure for input 
    lpszInData :pchar	// pointer to structure for input 

func
EnumDisplaySettings:BOOL 
    lpszDeviceName:pchar,	// specifies the display device
    iModeNum:int32,	// specifies the graphics mode
    lpDevMode:pointer// points to structure to receive settings
 
 
func
EnumObjects:int32
    HDC :handle // handle to device context 
    nObjectType : int32,	// object-type identifier 
    lpObjectFunc:pointer,	// pointer to callback function 
    lParam:int32 	// pointer to application-supplied data  

func
 GetCurrentObject:handle
    HDC :handle,	// handle of device context 
    uObjectType:int32 	// object-type identifier 
 
 
func
GetDC:handle
    HWND :hWnd 	// handle of window  

func
GetDCEx:handle
    HWND :hWnd,	// handle of window 
    hrgnClip:handle,	// handle of clip region  
    flags :int32	// device-context creation flags 

func
 GetDCOrgEx:BOOL 
    HDC :handle,	// device-context handle 
    lpPoint :phandle o	// address of structure that receives translation origin  
 
 
func
GetDeviceCaps:int32
    HDC :handle,	// device-context handle 
    nIndex:int32 	// index of capability to query  


func
 GetGraphicsMode:int32
    HDC :handle 	// handle of device context 

func
  GetObject:handle
    HGDIOBJ :handle ,	// handle to graphics object of interest
     cbBuffer:int32,	// size of buffer for object information 
    lpvObject:phandle o 	// pointer to buffer for object information  
 
func 
GetObjectType:DWORD 
    HGDIOBJ: handle 	// handle of graphic object  


func 
GetStockObject:handle
    fnObject:int32 	// type of stock object  
 
func
 ReleaseDC:int32
    HWND :hWnd,	// handle of window 
    HDC :handle 	// handle of device context  

func
  ResetDC:handle
    HDC :handle,	// handle of device context 
 lpInitData:pointer 	// address of structure with device context information 


func
  RestoreDC:bool
    HDC :handle,	// handle of device context 
    nSavedDC :int32	// specifies state to be restored  
 
 
func
 SaveDC:int32
    HDC :handle 	// handle of device context 

func
SelectObject:handle
    HDC :handle,	// handle of device context 
hgdiobj:handle 	// handle of object  
 
func
SelectPalette:handle
hdc:handle
hpalette:handle