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

Module user32

source code

Wrapper for user32.dll in ctypes.

Classes [hide private]
  __WindowEnumerator
Window enumerator class.
  WNDENUMPROC
  WINDOWPLACEMENT
  PWINDOWPLACEMENT
  LPWINDOWPLACEMENT
  GUITHREADINFO
  PGUITHREADINFO
  LPGUITHREADINFO
  Point
Python wrapper over the POINT class.
  Rect
Python wrapper over the RECT class.
  WindowPlacement
Python wrapper over the WINDOWPLACEMENT class.
  __EnumWndProc
  __EnumThreadWndProc
  __EnumChildProc
Functions [hide private]
 
MAKE_WPARAM(wParam)
Convert arguments to the WPARAM type.
source code
 
MAKE_LPARAM(lParam)
Convert arguments to the LPARAM type.
source code
 
SetLastErrorEx(dwErrCode, dwType=0) source code
 
FindWindowA(lpClassName=None, lpWindowName=None) source code
 
FindWindowW(lpClassName=None, lpWindowName=None) source code
 
FindWindowExA(hwndParent=None, hwndChildAfter=None, lpClassName=None, lpWindowName=None) source code
 
FindWindowExW(hwndParent=None, hwndChildAfter=None, lpClassName=None, lpWindowName=None) source code
 
GetClassNameA(hWnd) source code
 
GetClassNameW(hWnd) source code
 
GetWindowTextA(hWnd) source code
 
GetWindowTextW(hWnd) source code
 
SetWindowTextA(hWnd, lpString=None) source code
 
SetWindowTextW(hWnd, lpString=None) source code
 
GetWindowLongA(hWnd, nIndex=0) source code
 
GetWindowLongW(hWnd, nIndex=0) source code
 
GetWindowLongPtrA(hWnd, nIndex=0) source code
 
GetWindowLongPtrW(hWnd, nIndex=0) source code
 
SetWindowLongA(hWnd, nIndex, dwNewLong) source code
 
SetWindowLongW(hWnd, nIndex, dwNewLong) source code
 
SetWindowLongPtrA(hWnd, nIndex, dwNewLong) source code
 
SetWindowLongPtrW(hWnd, nIndex, dwNewLong) source code
 
GetShellWindow() source code
 
GetWindowThreadProcessId(hWnd) source code
 
GetWindow(hWnd, uCmd) source code
 
GetParent(hWnd) source code
 
GetAncestor(hWnd, gaFlags=1) source code
 
EnableWindow(hWnd, bEnable=True) source code
 
ShowWindow(hWnd, nCmdShow=5) source code
 
ShowWindowAsync(hWnd, nCmdShow=5) source code
 
GetDesktopWindow() source code
 
GetForegroundWindow() source code
 
IsWindow(hWnd) source code
 
IsWindowVisible(hWnd) source code
 
IsWindowEnabled(hWnd) source code
 
IsZoomed(hWnd) source code
 
IsIconic(hWnd) source code
 
IsChild(hWnd) source code
 
WindowFromPoint(point) source code
 
ChildWindowFromPoint(hWndParent, point) source code
 
RealChildWindowFromPoint(hWndParent, ptParentClientCoords) source code
 
ScreenToClient(hWnd, lpPoint) source code
 
ClientToScreen(hWnd, lpPoint) source code
 
MapWindowPoints(hWndFrom, hWndTo, lpPoints) source code
 
SetForegroundWindow(hWnd) source code
 
GetWindowPlacement(hWnd) source code
 
SetWindowPlacement(hWnd, lpwndpl) source code
 
GetWindowRect(hWnd) source code
 
GetClientRect(hWnd) source code
 
MoveWindow(hWnd, X, Y, nWidth, nHeight, bRepaint=True) source code
 
GetGUIThreadInfo(idThread) source code
 
EnumWindows() source code
 
EnumThreadWindows(dwThreadId) source code
 
EnumChildWindows(hWndParent=None) source code
 
SendMessageA(hWnd, Msg, wParam=0, lParam=0) source code
 
SendMessageW(hWnd, Msg, wParam=0, lParam=0) source code
 
PostMessageA(hWnd, Msg, wParam=0, lParam=0) source code
 
PostMessageW(hWnd, Msg, wParam=0, lParam=0) source code
 
PostThreadMessageA(idThread, Msg, wParam=0, lParam=0) source code
 
PostThreadMessageW(idThread, Msg, wParam=0, lParam=0) source code
 
SendMessageTimeoutA(hWnd, Msg, wParam=0, lParam=0, fuFlags=0, uTimeout=0) source code
 
SendMessageTimeoutW(hWnd, Msg, wParam=0, lParam=0) source code
 
SendNotifyMessageA(hWnd, Msg, wParam=0, lParam=0) source code
 
SendNotifyMessageW(hWnd, Msg, wParam=0, lParam=0) source code
 
SendDlgItemMessageA(hDlg, nIDDlgItem, Msg, wParam=0, lParam=0) source code
 
SendDlgItemMessageW(hDlg, nIDDlgItem, Msg, wParam=0, lParam=0) source code
 
WaitForInputIdle(hProcess, dwMilliseconds=-1) source code
 
RegisterWindowMessageA(lpString) source code
 
RegisterWindowMessageW(lpString) source code
 
RegisterClipboardFormatA(lpString) source code
 
RegisterClipboardFormatW(lpString) source code
 
GetPropA(hWnd, lpString) source code
 
GetPropW(hWnd, lpString) source code
 
SetPropA(hWnd, lpString, hData) source code
 
SetPropW(hWnd, lpString, hData) source code
 
RemovePropA(hWnd, lpString) source code
 
RemovePropW(hWnd, lpString) source code
Variables [hide private]
  __revision__ = '$Id: user32.py 1299 2013-12-20 09:30:55Z qvasi...
  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
  bits = 32
  HWND_DESKTOP = 0
  HWND_TOP = 1
  HWND_BOTTOM = 1
  HWND_TOPMOST = -1
  HWND_NOTOPMOST = -2
  HWND_MESSAGE = -3
  GWL_WNDPROC = -4
  GWL_HINSTANCE = -6
  GWL_HWNDPARENT = -8
  GWL_ID = -12
  GWL_STYLE = -16
  GWL_EXSTYLE = -20
  GWL_USERDATA = -21
  GWLP_WNDPROC = -4
  GWLP_HINSTANCE = -6
  GWLP_HWNDPARENT = -8
  GWLP_STYLE = -16
  GWLP_EXSTYLE = -20
  GWLP_USERDATA = -21
  GWLP_ID = -12
  SW_HIDE = 0
  SW_SHOWNORMAL = 1
  SW_NORMAL = 1
  SW_SHOWMINIMIZED = 2
  SW_SHOWMAXIMIZED = 3
  SW_MAXIMIZE = 3
  SW_SHOWNOACTIVATE = 4
  SW_SHOW = 5
  SW_MINIMIZE = 6
  SW_SHOWMINNOACTIVE = 7
  SW_SHOWNA = 8
  SW_RESTORE = 9
  SW_SHOWDEFAULT = 10
  SW_FORCEMINIMIZE = 11
  SMTO_NORMAL = 0
  SMTO_BLOCK = 1
  SMTO_ABORTIFHUNG = 2
  SMTO_NOTIMEOUTIFNOTHUNG = 8
  SMTO_ERRORONEXIT = 32
  WPF_SETMINPOSITION = 1
  WPF_RESTORETOMAXIMIZED = 2
  WPF_ASYNCWINDOWPLACEMENT = 4
  GA_PARENT = 1
  GA_ROOT = 2
  GA_ROOTOWNER = 3
  GW_HWNDFIRST = 0
  GW_HWNDLAST = 1
  GW_HWNDNEXT = 2
  GW_HWNDPREV = 3
  GW_OWNER = 4
  GW_CHILD = 5
  GW_ENABLEDPOPUP = 6
  WM_USER = 1024
  WM_APP = 2048
  WM_NULL = 0
  WM_CREATE = 1
  WM_DESTROY = 2
  WM_MOVE = 3
  WM_SIZE = 5
  WM_ACTIVATE = 6
  WA_INACTIVE = 0
  WA_ACTIVE = 1
  WA_CLICKACTIVE = 2
  WM_SETFOCUS = 7
  WM_KILLFOCUS = 8
  WM_ENABLE = 10
  WM_SETREDRAW = 11
  WM_SETTEXT = 12
  WM_GETTEXT = 13
  WM_GETTEXTLENGTH = 14
  WM_PAINT = 15
  WM_CLOSE = 16
  WM_QUERYENDSESSION = 17
  WM_QUIT = 18
  WM_QUERYOPEN = 19
  WM_ERASEBKGND = 20
  WM_SYSCOLORCHANGE = 21
  WM_ENDSESSION = 22
  WM_SHOWWINDOW = 24
  WM_WININICHANGE = 26
  WM_SETTINGCHANGE = 26
  WM_DEVMODECHANGE = 27
  WM_ACTIVATEAPP = 28
  WM_FONTCHANGE = 29
  WM_TIMECHANGE = 30
  WM_CANCELMODE = 31
  WM_SETCURSOR = 32
  WM_MOUSEACTIVATE = 33
  WM_CHILDACTIVATE = 34
  WM_QUEUESYNC = 35
  WM_GETMINMAXINFO = 36
  WM_PAINTICON = 38
  WM_ICONERASEBKGND = 39
  WM_NEXTDLGCTL = 40
  WM_SPOOLERSTATUS = 42
  WM_DRAWITEM = 43
  WM_MEASUREITEM = 44
  WM_DELETEITEM = 45
  WM_VKEYTOITEM = 46
  WM_CHARTOITEM = 47
  WM_SETFONT = 48
  WM_GETFONT = 49
  WM_SETHOTKEY = 50
  WM_GETHOTKEY = 51
  WM_QUERYDRAGICON = 55
  WM_COMPAREITEM = 57
  WM_GETOBJECT = 61
  WM_COMPACTING = 65
  WM_OTHERWINDOWCREATED = 66
  WM_OTHERWINDOWDESTROYED = 67
  WM_COMMNOTIFY = 68
  CN_RECEIVE = 1
  CN_TRANSMIT = 2
  CN_EVENT = 4
  WM_WINDOWPOSCHANGING = 70
  WM_WINDOWPOSCHANGED = 71
  WM_POWER = 72
  PWR_OK = 1
  PWR_FAIL = -1
  PWR_SUSPENDREQUEST = 1
  PWR_SUSPENDRESUME = 2
  PWR_CRITICALRESUME = 3
  WM_COPYDATA = 74
  WM_CANCELJOURNAL = 75
  WM_NOTIFY = 78
  WM_INPUTLANGCHANGEREQUEST = 80
  WM_INPUTLANGCHANGE = 81
  WM_TCARD = 82
  WM_HELP = 83
  WM_USERCHANGED = 84
  WM_NOTIFYFORMAT = 85
  WM_CONTEXTMENU = 123
  WM_STYLECHANGING = 124
  WM_STYLECHANGED = 125
  WM_DISPLAYCHANGE = 126
  WM_GETICON = 127
  WM_SETICON = 128
  WM_NCCREATE = 129
  WM_NCDESTROY = 130
  WM_NCCALCSIZE = 131
  WM_NCHITTEST = 132
  WM_NCPAINT = 133
  WM_NCACTIVATE = 134
  WM_GETDLGCODE = 135
  WM_SYNCPAINT = 136
  WM_NCMOUSEMOVE = 160
  WM_NCLBUTTONDOWN = 161
  WM_NCLBUTTONUP = 162
  WM_NCLBUTTONDBLCLK = 163
  WM_NCRBUTTONDOWN = 164
  WM_NCRBUTTONUP = 165
  WM_NCRBUTTONDBLCLK = 166
  WM_NCMBUTTONDOWN = 167
  WM_NCMBUTTONUP = 168
  WM_NCMBUTTONDBLCLK = 169
  WM_KEYFIRST = 256
  WM_KEYDOWN = 256
  WM_KEYUP = 257
  WM_CHAR = 258
  WM_DEADCHAR = 259
  WM_SYSKEYDOWN = 260
  WM_SYSKEYUP = 261
  WM_SYSCHAR = 262
  WM_SYSDEADCHAR = 263
  WM_KEYLAST = 264
  WM_INITDIALOG = 272
  WM_COMMAND = 273
  WM_SYSCOMMAND = 274
  WM_TIMER = 275
  WM_HSCROLL = 276
  WM_VSCROLL = 277
  WM_INITMENU = 278
  WM_INITMENUPOPUP = 279
  WM_MENUSELECT = 287
  WM_MENUCHAR = 288
  WM_ENTERIDLE = 289
  WM_CTLCOLORMSGBOX = 306
  WM_CTLCOLOREDIT = 307
  WM_CTLCOLORLISTBOX = 308
  WM_CTLCOLORBTN = 309
  WM_CTLCOLORDLG = 310
  WM_CTLCOLORSCROLLBAR = 311
  WM_CTLCOLORSTATIC = 312
  WM_MOUSEFIRST = 512
  WM_MOUSEMOVE = 512
  WM_LBUTTONDOWN = 513
  WM_LBUTTONUP = 514
  WM_LBUTTONDBLCLK = 515
  WM_RBUTTONDOWN = 516
  WM_RBUTTONUP = 517
  WM_RBUTTONDBLCLK = 518
  WM_MBUTTONDOWN = 519
  WM_MBUTTONUP = 520
  WM_MBUTTONDBLCLK = 521
  WM_MOUSELAST = 521
  WM_PARENTNOTIFY = 528
  WM_ENTERMENULOOP = 529
  WM_EXITMENULOOP = 530
  WM_MDICREATE = 544
  WM_MDIDESTROY = 545
  WM_MDIACTIVATE = 546
  WM_MDIRESTORE = 547
  WM_MDINEXT = 548
  WM_MDIMAXIMIZE = 549
  WM_MDITILE = 550
  WM_MDICASCADE = 551
  WM_MDIICONARRANGE = 552
  WM_MDIGETACTIVE = 553
  WM_MDISETMENU = 560
  WM_DROPFILES = 563
  WM_MDIREFRESHMENU = 564
  WM_CUT = 768
  WM_COPY = 769
  WM_PASTE = 770
  WM_CLEAR = 771
  WM_UNDO = 772
  WM_RENDERFORMAT = 773
  WM_RENDERALLFORMATS = 774
  WM_DESTROYCLIPBOARD = 775
  WM_DRAWCLIPBOARD = 776
  WM_PAINTCLIPBOARD = 777
  WM_VSCROLLCLIPBOARD = 778
  WM_SIZECLIPBOARD = 779
  WM_ASKCBFORMATNAME = 780
  WM_CHANGECBCHAIN = 781
  WM_HSCROLLCLIPBOARD = 782
  WM_QUERYNEWPALETTE = 783
  WM_PALETTEISCHANGING = 784
  WM_PALETTECHANGED = 785
  WM_HOTKEY = 786
  WM_PRINT = 791
  WM_PRINTCLIENT = 792
  WM_PENWINFIRST = 896
  WM_PENWINLAST = 911
  FindWindow = GuessStringType(FindWindowA, FindWindowW)
  FindWindowEx = GuessStringType(FindWindowExA, FindWindowExW)
  GetClassName = GuessStringType(GetClassNameA, GetClassNameW)
  GetWindowText = GuessStringType(GetWindowTextA, GetWindowTextW)
  SetWindowText = GuessStringType(SetWindowTextA, SetWindowTextW)
  GetWindowLong = DefaultStringType(GetWindowLongA, GetWindowLongW)
  GetWindowLongPtr = DefaultStringType(GetWindowLongA, GetWindow...
  SetWindowLong = DefaultStringType(SetWindowLongA, SetWindowLongW)
  SetWindowLongPtr = DefaultStringType(SetWindowLongA, SetWindow...
  SendMessage = GuessStringType(SendMessageA, SendMessageW)
  PostMessage = GuessStringType(PostMessageA, PostMessageW)
  PostThreadMessage = GuessStringType(PostThreadMessageA, PostTh...
  SendMessageTimeout = GuessStringType(SendMessageTimeoutA, Send...
  SendNotifyMessage = GuessStringType(SendNotifyMessageA, SendNo...
  SendDlgItemMessage = GuessStringType(SendDlgItemMessageA, Send...
  RegisterWindowMessage = GuessStringType(RegisterWindowMessageA...
  RegisterClipboardFormat = GuessStringType(RegisterClipboardFor...
  GetProp = GuessStringType(GetPropA, GetPropW)
  SetProp = GuessStringType(SetPropA, SetPropW)
  RemoveProp = GuessStringType(RemovePropA, RemovePropW)
  _all = set(['CN_EVENT', 'CN_RECEIVE', 'CN_TRANSMIT', 'ChildWin...
  __package__ = 'winappdbg.win32'
  _x = 'WM_NCLBUTTONUP'
Function Details [hide private]

MAKE_WPARAM(wParam)

source code 

Convert arguments to the WPARAM type. Used automatically by SendMessage, PostMessage, etc. You shouldn't need to call this function.

MAKE_LPARAM(lParam)

source code 

Convert arguments to the LPARAM type. Used automatically by SendMessage, PostMessage, etc. You shouldn't need to call this function.


Variables Details [hide private]

__revision__

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

GetWindowLongPtr

Value:
DefaultStringType(GetWindowLongA, GetWindowLongW)

SetWindowLongPtr

Value:
DefaultStringType(SetWindowLongA, SetWindowLongW)

PostThreadMessage

Value:
GuessStringType(PostThreadMessageA, PostThreadMessageW)

SendMessageTimeout

Value:
GuessStringType(SendMessageTimeoutA, SendMessageTimeoutW)

SendNotifyMessage

Value:
GuessStringType(SendNotifyMessageA, SendNotifyMessageW)

SendDlgItemMessage

Value:
GuessStringType(SendDlgItemMessageA, SendDlgItemMessageW)

RegisterWindowMessage

Value:
GuessStringType(RegisterWindowMessageA, RegisterWindowMessageW)

RegisterClipboardFormat

Value:
GuessStringType(RegisterClipboardFormatA, RegisterClipboardFormatW)

_all

Value:
set(['CN_EVENT',
     'CN_RECEIVE',
     'CN_TRANSMIT',
     'ChildWindowFromPoint',
     'ClientToScreen',
     'EnableWindow',
     'EnumChildWindows',
     'EnumThreadWindows',
...