ASPN ActiveState Programmer Network
  ASPN
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups | Web Services
SEARCH
advanced | search help

Reference
ActivePython 2.2
Python for Win32 Extensions Help
Win32 API
Modules
dde
odbc
perfmon
pywintypes
servicemanager
win2kras
win32api
AbortSystemShutdown
Apply
Beep
BeginUpdateResource
ClipCursor
CloseHandle
CopyFile
DebugBreak
DeleteFile
DragFinish
DragQueryFile
DuplicateHandle
EndUpdateResource
EnumResourceLanguages
EnumResourceNames
EnumResourceTypes
ExitWindows
ExitWindowsEx
ExpandEnvironmentStrings
FindCloseChangeNotification
FindExecutable
FindFiles
FindFirstChangeNotification
FindNextChangeNotification
FormatMessage
FormatMessageW
FreeLibrary
GenerateConsoleCtrlEvent
GetAsyncKeyState
GetCommandLine
GetComputerName
GetConsoleTitle
GetCurrentProcess
GetCurrentProcessId
GetCurrentThread
GetCurrentThreadId
GetCursorPos
GetDiskFreeSpace
GetDiskFreeSpaceEx
GetDomainName
GetEnvironmentVariable
GetFileAttributes
GetFileVersionInfo
GetFocus
GetFullPathName
GetKeyState
GetLastError
GetLocalTime
GetLogicalDriveStrings
GetLogicalDrives
GetLongPathName
GetLongPathNameW
GetModuleFileName
GetModuleHandle
GetProcAddress
GetProfileSection
GetProfileVal
GetShortPathName
GetStdHandle
GetSysColor
GetSystemDefaultLCID
GetSystemDefaultLangID
GetSystemDirectory
GetSystemInfo
GetSystemMetrics
GetSystemTime
GetTempFileName
GetTempPath
GetThreadLocale
GetTickCount
GetTimeZoneInformation
GetUserDefaultLCID
GetUserDefaultLangID
GetUserName
GetUserNameEx
GetVersion
GetVersionEx
GetVolumeInformation
GetWindowLong
GetWindowsDirectory
HIBYTE
HIWORD
InitiateSystemShutdown
LOBYTE
LOWORD
LoadCursor
LoadLibrary
LoadLibraryEx
LoadResource
LoadString
MAKELANGID
MessageBeep
MessageBox
MoveFile
MoveFileEx
OpenProcess
OutputDebugString
PostMessage
PostQuitMessage
PostThreadMessage
RGB
RegCloseKey
RegConnectRegistry
RegCreateKey
RegDeleteKey
RegDeleteValue
RegEnumKey
RegEnumKey
RegEnumValue
RegFlushKey
RegGetKeySecurity
RegLoadKey
RegNotifyChangeKeyValue
RegOpenKey
RegOpenKeyEx
RegQueryInfoKey
RegQueryValue
RegQueryValueEx
RegSaveKey
RegSetKeySecurity
RegSetValue
RegSetValueEx
RegUnLoadKey
RegisterWindowMessage
SearchPath
SendMessage
SetClassLong
SetClassWord
SetConsoleTitle
SetCursor
SetCursorPos
SetErrorMode
SetFileAttributes
SetStdHandle
SetSystemTime
SetThreadLocale
SetWindowLong
SetWindowWord
ShellExecute
ShowCursor
Sleep
TerminateProcess
Unicode
UpdateResource
WinExec
WinHelp
WriteProfileSection
WriteProfileVal
keybd event
mouse event
win32clipboard
win32event
win32evtlog
win32file
win32gui
win32help
win32lz
win32net
win32pdh
win32pipe
win32print
win32process
win32ras
win32security
win32service
win32wnet
wincerapi

MyASPN >> Reference >> ActivePython 2.2 >> Python for Win32 Extensions Help >> Win32 API >> Modules

Module win32api

A module, encapsulating the Windows Win32 API.

Methods

AbortSystemShutdown
Aborts a system shutdown 

Apply
Calls a Python function, but traps Win32 exceptions. 

Beep
Generates a simple tone on the speaker. 

BeginUpdateResource
Begins an update cycle for a PE file. 

ClipCursor
Confines the cursor to a rectangular area on the screen. 

CloseHandle
Closes an open handle. 

CopyFile
Copy a file. 

DebugBreak
Breaks into the C debugger. 

DeleteFile
Deletes the specified file. 

DragQueryFile
Retrieve the file names for dropped files. 

DragFinish
Free memory associated with dropped files. 

DuplicateHandle
Duplicates a handle. 

EndUpdateResource
Ends a resource update cycle of a PE file. 

EnumResourceLanguages
List languages for specified resource 

EnumResourceNames
Enumerates all the resources of the specified type from the nominated file. 

EnumResourceTypes
Return list of all resource types contained in module 

ExpandEnvironmentStrings
Expands environment-variable strings and replaces them with their defined values. 

ExitWindows
Logs off the current user 

ExitWindowsEx
either logs off the current user, shuts down the system, or shuts down and restarts the system. 

FindFiles
Find files matching a file spec. 

FindFirstChangeNotification
Creates a change notification handle and sets up initial change notification filter conditions. 

FindNextChangeNotification
Requests that the operating system signal a change notification handle the next time it detects an appropriate change. 

FindCloseChangeNotification
Closes the change notification handle. 

FindExecutable
Find an executable associated with a document. 

FormatMessage
Return an error message string. 

FormatMessageW
Return an error message string (as a Unicode object). 

FreeLibrary
Decrements the reference count of the loaded dynamic-link library (DLL) module. 

GenerateConsoleCtrlEvent
Send a specified signal to a console process group that shares the console associated with the calling process. 

GetAsyncKeyState
Retrieves the asynch state of a virtual key code. 

GetCommandLine
Return the application's command line. 

GetComputerName
Returns the local computer name 

GetUserName
Returns the current user name. 

GetUserNameEx
Returns the current user name in format specified by Name* constants 

GetCursorPos
Returns the position of the cursor, in screen co-ordinates. 

GetCurrentThread
Returns a pseudohandle for the current thread. 

GetCurrentThreadId
Returns the thread ID for the current thread. 

GetCurrentProcessId
Returns the thread ID for the current thread. 

GetCurrentProcess
Returns a pseudohandle for the current process. 

GetConsoleTitle
Return the application's console title. 

GetDiskFreeSpace
Retrieves information about a disk. 

GetDiskFreeSpaceEx
Retrieves information about a disk. 

GetDomainName
Returns the current domain name 

GetEnvironmentVariable
Retrieves the value of an environment variable. 

GetFileAttributes
Retrieves the attributes for the named file. 

GetFileVersionInfo
Retrieves string version info 

GetFocus
Retrieves the handle of the keyboard focus window associated with the thread that called the method. 

GetFullPathName
Returns the full path of a (possibly relative) path 

GetKeyState
Retrives the last known key state for a key. 

GetLastError
Retrieves the last error code known by the system. 

GetLocalTime
Returns the current local time. 

GetLongPathName
Converts the specified path to its long form. 

GetLongPathNameW
Converts the specified path to its long form. 

GetLogicalDrives
Returns a bitmask representing the currently available disk drives. 

GetLogicalDriveStrings
Returns a list of strings for all the drives. 

GetModuleFileName
Retrieves the filename of the specified module. 

GetModuleHandle
Returns the handle of an already loaded DLL. 

GetProfileSection
Returns a list of entries in an INI file. 

GetProcAddress
Returns the address of the specified exported dynamic-link library (DLL) function. 

GetProfileVal
Returns a value from an INI file. 

GetShortPathName
Returns the 8.3 version of a pathname. 

GetStdHandle
Returns a handle for the standard input, standard output, or standard error device 

GetSysColor
Returns the system colors. 

GetSystemDefaultLangID
Retrieves the system default language identifier. 

GetSystemDefaultLCID
Retrieves the system default locale identifier. 

GetSystemDirectory
Returns the Windows system directory. 

GetSystemInfo
Retrieves information about the current system. 

GetSystemMetrics
Returns the specified system metrics. 

GetSystemTime
Returns the current system time. 

GetTempFileName
Creates a temporary file. 

GetTempPath
Returns the path designated as holding temporary files. 

GetThreadLocale
Returns the current thread's locale. 

GetTickCount
Returns the milliseconds since windows started. 

GetTimeZoneInformation
Returns the system time-zone information. 

GetVersion
Returns Windows version information. 

GetVersionEx
Returns Windows version information as a tuple. 

GetVolumeInformation
Returns information about a volume and file system attached to the system. 

GetWindowsDirectory
Returns the windows directory. 

GetWindowLong
Retrieves a long value at the specified offset into the extra window memory of the given window. 

GetUserDefaultLangID
Retrieves the user default language identifier. 

GetUserDefaultLCID
Retrieves the user default locale identifier. 

InitiateSystemShutdown
Initiates a shutdown and optional restart of the specified computer. 

keybd_event
Simulate a keyboard event 

mouse_event
Simulate a mouse event 

LoadCursor
Loads a cursor. 

LoadLibrary
Loads the specified DLL, and returns the handle. 

LoadLibraryEx
Loads the specified DLL, and returns the handle. 

LoadResource
Finds and loads a resource from a PE file. 

LoadString
Loads a string from a resource file. 

MessageBeep
Plays a predefined waveform sound. 

MessageBox
Display a message box. 

MoveFile
Moves or renames a file. 

MoveFileEx
Moves or renames a file. 

OpenProcess
Retrieves a handle to an existing process. 

OutputDebugString
Writes output to the Windows debugger. 

PostMessage
Post a message to a window. 

PostQuitMessage
Posts a quit message. 

PostThreadMessage
Post a message to a thread. 

RegCloseKey
Closes a registry key. 

RegConnectRegistry
Establishes a connection to a predefined registry handle on another computer. 

RegCreateKey
Creates the specified key, or opens the key if it already exists. 

RegDeleteKey
Deletes the specified key. 

RegDeleteValue
Removes a named value from the specified registry key. 

RegEnumKey
Enumerates subkeys of the specified open registry key. 

RegEnumKey
Enumerates subkeys of the specified open registry key. 

RegEnumValue
Enumerates values of the specified open registry key. 

RegFlushKey
Writes all the attributes of the specified key to the registry. 

RegGetKeySecurity
Retrieves the security on the specified registry key. 

RegLoadKey
Creates a subkey under HKEY_USER or HKEY_LOCAL_MACHINE and stores registration information from a specified file into that subkey. 

RegOpenKey
Alias for win32api::RegOpenKeyEx 

RegOpenKeyEx
Opens the specified key. 

RegQueryValue
Retrieves the value associated with the unnamed value for a specified key in the registry. 

RegQueryValueEx
Retrieves the type and data for a specified value name associated with an open registry key. 

RegQueryInfoKey
Returns information about the specified key. 

RegSaveKey
Saves the specified key, and all its subkeys to the specified file. 

RegSetKeySecurity
Sets the security on the specified registry key. 

RegSetValue
Associates a value with a specified key. Currently, only strings are supported. 

RegSetValueEx
Stores data in the value field of an open registry key. 

RegUnLoadKey
Unloads the specified registry key and its subkeys from the registry. The keys must have been loaded previously by a call to RegLoadKey. 

RegisterWindowMessage
Given a string, return a system wide unique message ID.