win32api

A module, encapsulating the Windows Win32 API.

Functions

EnumResourceLanguages(hModule, lpType, lpName) List languages of a resource module.
EnumResourceNames(hModule, resType) Enumerates all the resources of the specified type within a module.
EnumResourceTypes(hModule) Enumerates resource types within a module.
FreeLibrary(hModule) Free the loaded dynamic-link library (DLL) module.
GetTickCount()
LoadLibraryEx(fileName, handle, flags) Loads the specified DLL, and returns the handle.
LoadResource(hModule, type, name[, language]) Find and Load a resource component.


win32ctypes.pywin32.win32api.EnumResourceLanguages(hModule, lpType, lpName)[source]

List languages of a resource module.

Parameters:hModule (handle) – Handle to the resource module.
lpType : str : int
The type of resource to enumerate. If lpType is a string starting with ‘#’ is should be followed by the decimal number that define the integer resource type identifier.
lpName : str : int
The name of resource to enumerate. If lpType is a string starting with ‘#’ is should be followed by the decimal number that define the integer resource type identifier.
Returns:resource_languages (list) – List of the resource language ids.

See also

win32ctypes.pywin32.win32api.EnumResourceNames(hModule, resType)[source]

Enumerates all the resources of the specified type within a module.

Parameters:hModule (handle) – The handle to the module.
resType : str : int
The type of resource to enumerate. If resType is a string starting with ‘#’ is should be followed by the decimal number that define the integer resource type identifier.
Returns:resource_names (list) – The list of resource names (unicode strings) of the specific resource type in the module.

See also

win32ctypes.pywin32.win32api.EnumResourceTypes(hModule)[source]

Enumerates resource types within a module.

Parameters:hModule (handle) – The handle to the module.
Returns:resource_types (list) – The list of resource types in the module.

See also

win32ctypes.pywin32.win32api.FreeLibrary(hModule)[source]

Free the loaded dynamic-link library (DLL) module.

If necessary, decrements its reference count.

Parameters:hModule – The handle to the library as returned by the LoadLibrary function.
win32ctypes.pywin32.win32api.GetTickCount()[source]
win32ctypes.pywin32.win32api.LoadLibraryEx(fileName, handle, flags)[source]

Loads the specified DLL, and returns the handle.

Parameters:
  • fileName (unicode) – The filename of the module to load.
  • handle – Reserved, always zero.
  • flags – The action to be taken when loading the module.
Returns:

hModule – The handle of the loaded module

See also

win32ctypes.pywin32.win32api.LoadResource(hModule, type, name, language=0)[source]

Find and Load a resource component.

Parameters:handle – The handle of the module containing the resource. Use None for currrent process executable.
type : str : int
The type of resource to load.
name :
The name or Id of the resource to load.
language : int
Language to use, default is LANG_NEUTRAL.
Returns:hModule – Handle of the loaded source.

See also

Previous topic

PyWin32 Compatibility Layer

Next topic

win32cred

This Page