Wrapper for shell32.dll in ctypes.
|
__revision__ = ' $Id: shell32.py 1299 2013-12-20 09:30:55Z qvas ...
|
|
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
|
|
SEE_MASK_DEFAULT = 0
|
|
SEE_MASK_CLASSNAME = 1
|
|
SEE_MASK_CLASSKEY = 3
|
|
SEE_MASK_IDLIST = 4
|
|
SEE_MASK_INVOKEIDLIST = 12
|
|
SEE_MASK_ICON = 16
|
|
SEE_MASK_HOTKEY = 32
|
|
SEE_MASK_NOCLOSEPROCESS = 64
|
|
SEE_MASK_CONNECTNETDRV = 128
|
|
SEE_MASK_NOASYNC = 256
|
|
SEE_MASK_DOENVSUBST = 512
|
|
SEE_MASK_FLAG_NO_UI = 1024
|
|
SEE_MASK_UNICODE = 16384
|
|
SEE_MASK_NO_CONSOLE = 32768
|
|
SEE_MASK_ASYNCOK = 1048576
|
|
SEE_MASK_HMONITOR = 2097152
|
|
SEE_MASK_NOZONECHECKS = 8388608
|
|
SEE_MASK_WAITFORINPUTIDLE = 33554432
|
|
SEE_MASK_FLAG_LOG_USAGE = 67108864
|
|
SE_ERR_FNF = 2
|
|
SE_ERR_PNF = 3
|
|
SE_ERR_ACCESSDENIED = 5
|
|
SE_ERR_OOM = 8
|
|
SE_ERR_DLLNOTFOUND = 32
|
|
SE_ERR_SHARE = 26
|
|
SE_ERR_ASSOCINCOMPLETE = 27
|
|
SE_ERR_DDETIMEOUT = 28
|
|
SE_ERR_DDEFAIL = 29
|
|
SE_ERR_DDEBUSY = 30
|
|
SE_ERR_NOASSOC = 31
|
|
SHGFP_TYPE_CURRENT = 0
|
|
SHGFP_TYPE_DEFAULT = 1
|
|
CSIDL_DESKTOP = 0
|
|
CSIDL_INTERNET = 1
|
|
CSIDL_PROGRAMS = 2
|
|
CSIDL_CONTROLS = 3
|
|
CSIDL_PRINTERS = 4
|
|
CSIDL_PERSONAL = 5
|
|
CSIDL_FAVORITES = 6
|
|
CSIDL_STARTUP = 7
|
|
CSIDL_RECENT = 8
|
|
CSIDL_SENDTO = 9
|
|
CSIDL_BITBUCKET = 10
|
|
CSIDL_STARTMENU = 11
|
|
CSIDL_MYDOCUMENTS = 5
|
|
CSIDL_MYMUSIC = 13
|
|
CSIDL_MYVIDEO = 14
|
|
CSIDL_DESKTOPDIRECTORY = 16
|
|
CSIDL_DRIVES = 17
|
|
CSIDL_NETWORK = 18
|
|
CSIDL_NETHOOD = 19
|
|
CSIDL_FONTS = 20
|
|
CSIDL_TEMPLATES = 21
|
|
CSIDL_COMMON_STARTMENU = 22
|
|
CSIDL_COMMON_PROGRAMS = 23
|
|
CSIDL_COMMON_STARTUP = 24
|
|
CSIDL_COMMON_DESKTOPDIRECTORY = 25
|
|
CSIDL_APPDATA = 26
|
|
CSIDL_PRINTHOOD = 27
|
|
CSIDL_LOCAL_APPDATA = 28
|
|
CSIDL_ALTSTARTUP = 29
|
|
CSIDL_COMMON_ALTSTARTUP = 30
|
|
CSIDL_COMMON_FAVORITES = 31
|
|
CSIDL_INTERNET_CACHE = 32
|
|
CSIDL_COOKIES = 33
|
|
CSIDL_HISTORY = 34
|
|
CSIDL_COMMON_APPDATA = 35
|
|
CSIDL_WINDOWS = 36
|
|
CSIDL_SYSTEM = 37
|
|
CSIDL_PROGRAM_FILES = 38
|
|
CSIDL_MYPICTURES = 39
|
|
CSIDL_PROFILE = 40
|
|
CSIDL_SYSTEMX86 = 41
|
|
CSIDL_PROGRAM_FILESX86 = 42
|
|
CSIDL_PROGRAM_FILES_COMMON = 43
|
|
CSIDL_PROGRAM_FILES_COMMONX86 = 44
|
|
CSIDL_COMMON_TEMPLATES = 45
|
|
CSIDL_COMMON_DOCUMENTS = 46
|
|
CSIDL_COMMON_ADMINTOOLS = 47
|
|
CSIDL_ADMINTOOLS = 48
|
|
CSIDL_CONNECTIONS = 49
|
|
CSIDL_COMMON_MUSIC = 53
|
|
CSIDL_COMMON_PICTURES = 54
|
|
CSIDL_COMMON_VIDEO = 55
|
|
CSIDL_RESOURCES = 56
|
|
CSIDL_RESOURCES_LOCALIZED = 57
|
|
CSIDL_COMMON_OEM_LINKS = 58
|
|
CSIDL_CDBURN_AREA = 59
|
|
CSIDL_COMPUTERSNEARME = 61
|
|
CSIDL_PROFILES = 62
|
|
CSIDL_FOLDER_MASK = 255
|
|
CSIDL_FLAG_PER_USER_INIT = 2048
|
|
CSIDL_FLAG_NO_ALIAS = 4096
|
|
CSIDL_FLAG_DONT_VERIFY = 16384
|
|
CSIDL_FLAG_CREATE = 32768
|
|
CSIDL_FLAG_MASK = 65280
|
|
CommandLineToArgv = GuessStringType(CommandLineToArgvA, Comman...
|
|
ShellExecute = GuessStringType(ShellExecuteA, ShellExecuteW)
|
|
FindExecutable = GuessStringType(FindExecutableA, FindExecutab...
|
|
SHGetFolderPath = DefaultStringType(SHGetFolderPathA, SHGetFol...
|
|
_all = set([ ' CSIDL_ADMINTOOLS ' , ' CSIDL_ALTSTARTUP ' , ' CSIDL_APP ...
|
|
__package__ = ' winappdbg.win32 '
|
|
_x = ' CSIDL_STARTMENU '
|