Package winappdbg :: Package win32 :: Module gdi32
[hide private]
[frames] | no frames]

Module gdi32

source code

Wrapper for gdi32.dll in ctypes.

Classes [hide private]
  RECT
  PRECT
  LPRECT
  POINT
  PPOINT
  LPPOINT
  BITMAP
  PBITMAP
  LPBITMAP
Functions [hide private]
 
GetDC(hWnd) source code
 
GetWindowDC(hWnd) source code
 
ReleaseDC(hWnd, hDC) source code
 
SelectObject(hdc, hgdiobj) source code
 
GetStockObject(fnObject) source code
 
GetObjectType(h) source code
 
GetObject(hgdiobj, cbBuffer=None, lpvObject=None) source code
 
GetBitmapBits(hbmp) source code
 
CreateBitmapIndirect(lpbm) source code
Variables [hide private]
  __revision__ = '$Id: gdi32.py 1299 2013-12-20 09:30:55Z qvasim...
  ERROR_NO_RECOVERY_PROGRAM = 1082
  ERROR_DBG_TERMINATE_PROCESS = 692
  ERROR_BUFFER_OVERFLOW = 111
  STANDARD_RIGHTS_WRITE = 131072
  STANDARD_RIGHTS_EXECUTE = 131072
  SYNCHRONIZE = 1048576
  ERROR_BAD_LENGTH = 24
  TRUE = 1
  ERROR_ENVVAR_NOT_FOUND = 203
  ERROR_ELEVATION_REQUIRED = 740
  ERROR_ALREADY_EXISTS = 183
  ERROR_DIFFERENT_SERVICE_ACCOUNT = 1079
  WIN32_VERBOSE_MODE = False
  ERROR_FAILED_SERVICE_CONTROLLER_CONNECT = 1063
  ERROR_NONE_MAPPED = 1332
  ERROR_NOT_SUPPORTED = 50
  ERROR_INVALID_HANDLE = 6
  ERROR_INVALID_FUNCTION = 1
  ERROR_DBG_REPLY_LATER = 689
  ERROR_MORE_DATA = 234
  ERROR_INVALID_PARAMETER = 87
  ANYSIZE_ARRAY = 1
  ERROR_FILE_EXISTS = 80
  ERROR_INVALID_DRIVE = 15
  ERROR_BAD_THREADID_ADDR = 159
  STANDARD_RIGHTS_ALL = 2031616
  ERROR_FILE_NOT_FOUND = 2
  STANDARD_RIGHTS_READ = 131072
  ERROR_DBG_CONTROL_BREAK = 696
  ERROR_WOW_ASSERTION = 670
  ERROR_NOT_ENOUGH_MEMORY = 8
  ERROR_DBG_EXCEPTION_NOT_HANDLED = 688
  ERROR_INVALID_NAME = 123
  ERROR_SERVICE_NOT_IN_EXE = 1083
  ERROR_SERVICE_NEVER_STARTED = 1077
  ERROR_INSUFFICIENT_BUFFER = 122
  MAX_MODULE_NAME32 = 255
  ERROR_HANDLE_DISK_FULL = 39
  ERROR_UNHANDLED_EXCEPTION = 574
  ERROR_INVALID_FLAG_NUMBER = 186
  ERROR_DBG_CONTINUE = 767
  ERROR_SERVICE_DEPENDENCY_FAIL = 1068
  ERROR_NOT_SAFEBOOT_SERVICE = 1084
  ERROR_ALREADY_RUNNING_LKG = 1074
  ERROR_THREAD_NOT_IN_PROCESS = 566
  ERROR_CIRCULAR_DEPENDENCY = 1059
  ERROR_CALL_NOT_IMPLEMENTED = 120
  ERROR_SERVICE_DOES_NOT_EXIST = 1060
  ERROR_DBG_PRINTEXCEPTION_C = 694
  ERROR_SERVICE_MARKED_FOR_DELETE = 1072
  MAX_PATH = 260
  WRITE_DAC = 262144
  ERROR_DBG_CONTROL_C = 693
  STANDARD_RIGHTS_REQUIRED = 983040
  ERROR_DATABASE_DOES_NOT_EXIST = 1065
  ERROR_DBG_TERMINATE_THREAD = 691
  ERROR_DEBUGGER_INACTIVE = 1284
  windll = WinDllHook()
  ERROR_PROC_NOT_FOUND = 127
  ERROR_ASSERTION_FAILURE = 668
  ERROR_INVALID_SERVICE_LOCK = 1071
  ERROR_DUPLICATE_SERVICE_NAME = 1078
  ERROR_SERVICE_LOGON_FAILED = 1069
  WRITE_OWNER = 524288
  ERROR_SERVICE_NOT_ACTIVE = 1062
  WinCallHook
  ERROR_BAD_PATHNAME = 161
  ERROR_PROCESS_ABORTED = 1067
  ERROR_PRIVILEGE_NOT_HELD = 1314
  ERROR_DBG_RIPEXCEPTION = 695
  ERROR_NOACCESS = 998
  ERROR_BAD_ARGUMENTS = 160
  ERROR_SERVICE_CANNOT_ACCEPT_CTRL = 1061
  ERROR_BOOT_ALREADY_ACCEPTED = 1076
  FALSE = 0
  INVALID_HANDLE_VALUE = 4294967295
  ERROR_DIR_NOT_EMPTY = 145
  WinFuncHook
  ERROR_DISK_FULL = 112
  WinDllHook
  ERROR_INVALID_ADDRESS = 487
  DELETE = 65536
  ERROR_FILENAME_EXCED_RANGE = 206
  ERROR_NO_MORE_FILES = 18
  ERROR_SERVICE_SPECIFIC_ERROR = 1066
  ERROR_DBG_COMMAND_EXCEPTION = 697
  ERROR_HANDLE_EOF = 38
  NULL = None
hash(x)
  ERROR_SERVICE_DEPENDENCY_DELETED = 1075
  ERROR_CANNOT_DETECT_PROCESS_ABORT = 1081
  ERROR_SEM_TIMEOUT = 121
  ERROR_ACCESS_DENIED = 5
  ERROR_PATH_NOT_FOUND = 3
  ERROR_EXCEPTION_IN_SERVICE = 1064
  ERROR_SUCCESS = 0
  SPECIFIC_RIGHTS_ALL = 65535
  RPC_S_SERVER_UNAVAILABLE = 1722
  ERROR_CANNOT_DETECT_DRIVER_FAILURE = 1080
  READ_CONTROL = 131072
  INFINITE = -1
  ERROR_DBG_EXCEPTION_HANDLED = 766
  ERROR_MOD_NOT_FOUND = 126
  ERROR_CONTROL_C_EXIT = 572
  WAIT_TIMEOUT = 258
  ERROR_PARTIAL_COPY = 299
  ERROR_SERVICE_EXISTS = 1073
  ERROR_NO_MORE_ITEMS = 259
  ERROR_DBG_UNABLE_TO_PROVIDE_HANDLE = 690
  ERROR_SERVICE_START_HANG = 1070
  OBJ_PEN = 1
  OBJ_BRUSH = 2
  OBJ_DC = 3
  OBJ_METADC = 4
  OBJ_PAL = 5
  OBJ_FONT = 6
  OBJ_BITMAP = 7
  OBJ_REGION = 8
  OBJ_METAFILE = 9
  OBJ_MEMDC = 10
  OBJ_EXTPEN = 11
  OBJ_ENHMETADC = 12
  OBJ_ENHMETAFILE = 13
  OBJ_COLORSPACE = 14
  GDI_OBJ_LAST = 14
  SRCCOPY = 13369376
  SRCPAINT = 15597702
  SRCAND = 8913094
  SRCINVERT = 6684742
  SRCERASE = 4457256
  NOTSRCCOPY = 3342344
  NOTSRCERASE = 1114278
  MERGECOPY = 12583114
  MERGEPAINT = 12255782
  PATCOPY = 15728673
  PATPAINT = 16452105
  PATINVERT = 5898313
  DSTINVERT = 5570569
  BLACKNESS = 66
  WHITENESS = 16711778
  NOMIRRORBITMAP = 2147483648
  CAPTUREBLT = 1073741824
  ERROR = 0
  NULLREGION = 1
  SIMPLEREGION = 2
  COMPLEXREGION = 3
  RGN_ERROR = 0
  RGN_AND = 1
  RGN_OR = 2
  RGN_XOR = 3
  RGN_DIFF = 4
  RGN_COPY = 5
  RGN_MIN = 1
  RGN_MAX = 5
  BLACKONWHITE = 1
  WHITEONBLACK = 2
  COLORONCOLOR = 3
  HALFTONE = 4
  MAXSTRETCHBLTMODE = 4
  STRETCH_ANDSCANS = 1
  STRETCH_ORSCANS = 2
  STRETCH_DELETESCANS = 3
  STRETCH_HALFTONE = 4
  ALTERNATE = 1
  WINDING = 2
  POLYFILL_LAST = 2
  LAYOUT_RTL = 1
  LAYOUT_BTT = 2
  LAYOUT_VBH = 4
  LAYOUT_ORIENTATIONMASK = 7
  LAYOUT_BITMAPORIENTATIONPRESERVED = 8
  WHITE_BRUSH = 0
  LTGRAY_BRUSH = 1
  GRAY_BRUSH = 2
  DKGRAY_BRUSH = 3
  BLACK_BRUSH = 4
  NULL_BRUSH = 5
  HOLLOW_BRUSH = 5
  WHITE_PEN = 6
  BLACK_PEN = 7
  NULL_PEN = 8
  OEM_FIXED_FONT = 10
  ANSI_FIXED_FONT = 11
  ANSI_VAR_FONT = 12
  SYSTEM_FONT = 13
  DEVICE_DEFAULT_FONT = 14
  DEFAULT_PALETTE = 15
  SYSTEM_FIXED_FONT = 16
  META_SETBKCOLOR = 513
  META_SETBKMODE = 258
  META_SETMAPMODE = 259
  META_SETROP2 = 260
  META_SETRELABS = 261
  META_SETPOLYFILLMODE = 262
  META_SETSTRETCHBLTMODE = 263
  META_SETTEXTCHAREXTRA = 264
  META_SETTEXTCOLOR = 521
  META_SETTEXTJUSTIFICATION = 522
  META_SETWINDOWORG = 523
  META_SETWINDOWEXT = 524
  META_SETVIEWPORTORG = 525
  META_SETVIEWPORTEXT = 526
  META_OFFSETWINDOWORG = 527
  META_SCALEWINDOWEXT = 1040
  META_OFFSETVIEWPORTORG = 529
  META_SCALEVIEWPORTEXT = 1042
  META_LINETO = 531
  META_MOVETO = 532
  META_EXCLUDECLIPRECT = 1045
  META_INTERSECTCLIPRECT = 1046
  META_ARC = 2071
  META_ELLIPSE = 1048
  META_FLOODFILL = 1049
  META_PIE = 2074
  META_RECTANGLE = 1051
  META_ROUNDRECT = 1564
  META_PATBLT = 1565
  META_SAVEDC = 30
  META_SETPIXEL = 1055
  META_OFFSETCLIPRGN = 544
  META_TEXTOUT = 1313
  META_BITBLT = 2338
  META_STRETCHBLT = 2851
  META_POLYGON = 804
  META_POLYLINE = 805
  META_ESCAPE = 1574
  META_RESTOREDC = 295
  META_FILLREGION = 552
  META_FRAMEREGION = 1065
  META_INVERTREGION = 298
  META_PAINTREGION = 299
  META_SELECTCLIPREGION = 300
  META_SELECTOBJECT = 301
  META_SETTEXTALIGN = 302
  META_CHORD = 2096
  META_SETMAPPERFLAGS = 561
  META_EXTTEXTOUT = 2610
  META_SETDIBTODEV = 3379
  META_SELECTPALETTE = 564
  META_REALIZEPALETTE = 53
  META_ANIMATEPALETTE = 1078
  META_SETPALENTRIES = 55
  META_POLYPOLYGON = 1336
  META_RESIZEPALETTE = 313
  META_DIBBITBLT = 2368
  META_DIBSTRETCHBLT = 2881
  META_DIBCREATEPATTERNBRUSH = 322
  META_STRETCHDIB = 3907
  META_EXTFLOODFILL = 1352
  META_SETLAYOUT = 329
  META_DELETEOBJECT = 496
  META_CREATEPALETTE = 247
  META_CREATEPATTERNBRUSH = 505
  META_CREATEPENINDIRECT = 762
  META_CREATEFONTINDIRECT = 763
  META_CREATEBRUSHINDIRECT = 764
  META_CREATEREGION = 1791
  NEWFRAME = 1
  ABORTDOC = 2
  NEXTBAND = 3
  SETCOLORTABLE = 4
  GETCOLORTABLE = 5
  FLUSHOUTPUT = 6
  DRAFTMODE = 7
  QUERYESCSUPPORT = 8
  SETABORTPROC = 9
  STARTDOC = 10
  ENDDOC = 11
  GETPHYSPAGESIZE = 12
  GETPRINTINGOFFSET = 13
  GETSCALINGFACTOR = 14
  MFCOMMENT = 15
  GETPENWIDTH = 16
  SETCOPYCOUNT = 17
  SELECTPAPERSOURCE = 18
  DEVICEDATA = 19
  PASSTHROUGH = 19
  GETTECHNOLGY = 20
  GETTECHNOLOGY = 20
  SETLINECAP = 21
  SETLINEJOIN = 22
  SETMITERLIMIT = 23
  BANDINFO = 24
  DRAWPATTERNRECT = 25
  GETVECTORPENSIZE = 26
  GETVECTORBRUSHSIZE = 27
  ENABLEDUPLEX = 28
  GETSETPAPERBINS = 29
  GETSETPRINTORIENT = 30
  ENUMPAPERBINS = 31
  SETDIBSCALING = 32
  EPSPRINTING = 33
  ENUMPAPERMETRICS = 34
  GETSETPAPERMETRICS = 35
  POSTSCRIPT_DATA = 37
  POSTSCRIPT_IGNORE = 38
  MOUSETRAILS = 39
  GETDEVICEUNITS = 42
  GETEXTENDEDTEXTMETRICS = 256
  GETEXTENTTABLE = 257
  GETPAIRKERNTABLE = 258
  GETTRACKKERNTABLE = 259
  EXTTEXTOUT = 512
  GETFACENAME = 513
  DOWNLOADFACE = 514
  ENABLERELATIVEWIDTHS = 768
  ENABLEPAIRKERNING = 769
  SETKERNTRACK = 770
  SETALLJUSTVALUES = 771
  SETCHARSET = 772
  STRETCHBLT = 2048
  METAFILE_DRIVER = 2049
  GETSETSCREENPARAMS = 3072
  QUERYDIBSUPPORT = 3073
  BEGIN_PATH = 4096
  CLIP_TO_PATH = 4097
  END_PATH = 4098
  EXT_DEVICE_CAPS = 4099
  RESTORE_CTM = 4100
  SAVE_CTM = 4101
  SET_ARC_DIRECTION = 4102
  SET_BACKGROUND_COLOR = 4103
  SET_POLY_MODE = 4104
  SET_SCREEN_ANGLE = 4105
  SET_SPREAD = 4106
  TRANSFORM_CTM = 4107
  SET_CLIP_BOX = 4108
  SET_BOUNDS = 4109
  SET_MIRROR_MODE = 4110
  OPENCHANNEL = 4110
  DOWNLOADHEADER = 4111
  CLOSECHANNEL = 4112
  POSTSCRIPT_PASSTHROUGH = 4115
  ENCAPSULATED_POSTSCRIPT = 4116
  POSTSCRIPT_IDENTIFY = 4117
  POSTSCRIPT_INJECTION = 4118
  CHECKJPEGFORMAT = 4119
  CHECKPNGFORMAT = 4120
  GET_PS_FEATURESETTING = 4121
  GDIPLUS_TS_QUERYVER = 4122
  GDIPLUS_TS_RECORD = 4123
  SPCLPASSTHROUGH2 = 4568
  _all = set(['ABORTDOC', 'ALTERNATE', 'ANSI_FIXED_FONT', 'ANSI_...
  __package__ = 'winappdbg.win32'
  _x = 'LAYOUT_ORIENTATIONMASK'
Variables Details [hide private]

__revision__

Value:
'$Id: gdi32.py 1299 2013-12-20 09:30:55Z qvasimodo $'

_all

Value:
set(['ABORTDOC',
     'ALTERNATE',
     'ANSI_FIXED_FONT',
     'ANSI_VAR_FONT',
     'BANDINFO',
     'BEGIN_PATH',
     'BITMAP',
     'BLACKNESS',
...