kernel32 Topic
Windows Kernel APIs
The Win32 base APIs, such as memory management, input/output (I/O) operations, process and thread creation, and synchronization functions.
Functions
-
ActivateActCtx(
int hActCtx, Pointer< kernel32IntPtr> lpCookie) → int - The ActivateActCtx function activates the specified activation context. It does this by pushing the specified activation context to the top of the activation stack. The specified activation context is thus associated with the current thread and any appropriate side-by-side API functions. [...]
-
AddRefActCtx(
int hActCtx) → void kernel32 - The AddRefActCtx function increments the reference count of the specified activation context. [...]
-
AllocConsole(
) → int kernel32 - Allocates a new console for the calling process. [...]
-
AttachConsole(
int dwProcessId) → int kernel32 - Attaches the calling process to the console of the specified process. [...]
-
Beep(
int dwFreq, int dwDuration) → int kernel32 - Generates simple tones on the speaker. The function is synchronous; it performs an alertable wait and does not return control to its caller until the sound finishes. [...]
-
BeginUpdateResource(
Pointer< kernel32Utf16> pFileName, int bDeleteExistingResources) → int - Retrieves a handle that can be used by the UpdateResource function to add, delete, or replace resources in a binary module. [...]
-
CheckRemoteDebuggerPresent(
int hProcess, Pointer< kernel32Int32> pbDebuggerPresent) → int - Determines whether the specified process is being debugged. [...]
-
CloseHandle(
int hObject) → int kernel32 - Closes an open object handle. [...]
-
ClosePseudoConsole(
int hPC) → void kernel32 - Closes a pseudoconsole from the given handle. [...]
-
ContinueDebugEvent(
int dwProcessId, int dwThreadId, int dwContinueStatus) → int kernel32 - Enables a debugger to continue a thread that previously reported a debugging event. [...]
-
CreateActCtx(
Pointer< kernel32ACTCTX> pActCtx) → int - The CreateActCtx function creates an activation context. [...]
-
CreateConsoleScreenBuffer(
int dwDesiredAccess, Pointer< kernel32SECURITY_ATTRIBUTES> lpSecurityAttributes, int dwFlags, Pointer<NativeType> lpScreenBufferData) → int - Creates a console screen buffer. [...]
-
CreateDirectory(
Pointer< kernel32Utf16> lpPathName, Pointer<SECURITY_ATTRIBUTES> lpSecurityAttributes) → int - Creates a new directory. If the underlying file system supports security on files and directories, the function applies a specified security descriptor to the new directory. [...]
-
CreateFile(
Pointer< kernel32Utf16> lpFileName, int dwDesiredAccess, Pointer<SECURITY_ATTRIBUTES> lpSecurityAttributes, int dwCreationDisposition, int dwFlagsAndAttributes, int hTemplateFile) → int - Creates or opens a file or I/O device. The most commonly used I/O devices are as follows: file, file stream, directory, physical disk, volume, console buffer, tape drive, communications resource, mailslot, and pipe. The function returns a handle that can be used to access the file or device for various types of I/O depending on the file or device and the flags and attributes specified. [...]
-
CreatePipe(
Pointer< kernel32IntPtr> hReadPipe, Pointer<IntPtr> hWritePipe, Pointer<SECURITY_ATTRIBUTES> lpPipeAttributes, int nSize) → int - Creates an anonymous pipe, and returns handles to the read and write ends of the pipe. [...]
-
CreateProcess(
Pointer< kernel32Utf16> lpApplicationName, Pointer<Utf16> lpCommandLine, Pointer<SECURITY_ATTRIBUTES> lpProcessAttributes, Pointer<SECURITY_ATTRIBUTES> lpThreadAttributes, int bInheritHandles, int dwCreationFlags, Pointer<NativeType> lpEnvironment, Pointer<Utf16> lpCurrentDirectory, Pointer<STARTUPINFO> lpStartupInfo, Pointer<PROCESS_INFORMATION> lpProcessInformation) → int - Creates a new process and its primary thread. The new process runs in the security context of the calling process. [...]
-
CreatePseudoConsole(
COORD size, int hInput, int hOutput, int dwFlags, Pointer< kernel32IntPtr> phPC) → int - Creates a new pseudoconsole object for the calling process. [...]
-
DeactivateActCtx(
int dwFlags, int ulCookie) → int kernel32 - The DeactivateActCtx function deactivates the activation context corresponding to the specified cookie. [...]
-
DebugBreak(
) → void kernel32 - Causes a breakpoint exception to occur in the current process. This allows the calling thread to signal the debugger to handle the exception. [...]
-
DebugBreakProcess(
int Process) → int kernel32 - Causes a breakpoint exception to occur in the specified process. This allows the calling thread to signal the debugger to handle the exception. [...]
-
DebugSetProcessKillOnExit(
int KillOnExit) → int kernel32 - Sets the action to be performed when the calling thread exits. [...]
-
DeleteFile(
Pointer< kernel32Utf16> lpFileName) → int - Deletes an existing file. [...]
-
EndUpdateResource(
int hUpdate, int fDiscard) → int kernel32 - Commits or discards changes made prior to a call to UpdateResource. [...]
-
EnumResourceNames(
int hModule, Pointer< kernel32Utf16> lpType, Pointer<NativeFunction< lpEnumFunc, int lParam) → intEnumResNameProc> > - Enumerates resources of a specified type within a binary module. For Windows Vista and later, this is typically a language-neutral Portable Executable (LN file), and the enumeration will also include resources from the corresponding language-specific resource files (.mui files) that contain localizable language resources. It is also possible for hModule to specify an .mui file, in which case only that file is searched for resources. [...]
-
EnumResourceTypes(
int hModule, Pointer< kernel32NativeFunction< lpEnumFunc, int lParam) → intEnumResTypeProc> > - Enumerates resource types within a binary module. Starting with Windows Vista, this is typically a language-neutral Portable Executable (LN file), and the enumeration also includes resources from one of the corresponding language-specific resource files (.mui files)—if one exists—that contain localizable language resources. It is also possible to use hModule to specify a .mui file, in which case only that file is searched for resource types. [...]
-
ExitProcess(
int uExitCode) → void kernel32 - Ends the calling process and all its threads. [...]
-
FillConsoleOutputAttribute(
int hConsoleOutput, int wAttribute, int nLength, COORD dwWriteCoord, Pointer< kernel32Uint32> lpNumberOfAttrsWritten) → int - Sets the character attributes for a specified number of character cells, beginning at the specified coordinates in a screen buffer. [...]
-
FillConsoleOutputCharacter(
int hConsoleOutput, int cCharacter, int nLength, COORD dwWriteCoord, Pointer< kernel32Uint32> lpNumberOfCharsWritten) → int - Writes a character to the console screen buffer a specified number of times, beginning at the specified coordinates. [...]
-
FindClose(
int hFindFile) → int kernel32 - Closes a file search handle opened by the FindFirstFile, FindFirstFileEx, FindFirstFileNameW, FindFirstFileNameTransactedW, FindFirstFileTransacted, FindFirstStreamTransactedW, or FindFirstStreamW functions. [...]
-
FindCloseChangeNotification(
int hChangeHandle) → int kernel32 - Stops change notification handle monitoring. [...]
-
FindFirstChangeNotification(
Pointer< kernel32Utf16> lpPathName, int bWatchSubtree, int dwNotifyFilter) → int - Creates a change notification handle and sets up initial change notification filter conditions. A wait on a notification handle succeeds when a change matching the filter conditions occurs in the specified directory or subtree. The function does not report changes to the specified directory itself. [...]
-
FindFirstFile(
Pointer< kernel32Utf16> lpFileName, Pointer<WIN32_FIND_DATA> lpFindFileData) → int - Searches a directory for a file or subdirectory with a name that matches a specific name (or partial name if wildcards are used). [...]
-
FindFirstVolume(
Pointer< kernel32Utf16> lpszVolumeName, int cchBufferLength) → int - Retrieves the name of a volume on a computer. FindFirstVolume is used to begin scanning the volumes of a computer. [...]
-
FindNextChangeNotification(
int hChangeHandle) → int kernel32 - Requests that the operating system signal a change notification handle the next time it detects an appropriate change. [...]
-
FindNextFile(
int hFindFile, Pointer< kernel32WIN32_FIND_DATA> lpFindFileData) → int - Continues a file search from a previous call to the FindFirstFile, FindFirstFileEx, or FindFirstFileTransacted functions. [...]
-
FindNextVolume(
int hFindVolume, Pointer< kernel32Utf16> lpszVolumeName, int cchBufferLength) → int - Continues a volume search started by a call to the FindFirstVolume function. FindNextVolume finds one volume per call. [...]
-
FindResource(
int hModule, Pointer< kernel32Utf16> lpName, Pointer<Utf16> lpType) → int - Determines the location of a resource with the specified type and name in the specified module. [...]
-
FindResourceEx(
int hModule, Pointer< kernel32Utf16> lpType, Pointer<Utf16> lpName, int wLanguage) → int - Determines the location of the resource with the specified type, name, and language in the specified module. [...]
-
FindVolumeClose(
int hFindVolume) → int kernel32 - Closes the specified volume search handle. The FindFirstVolume and FindNextVolume functions use this search handle to locate volumes. [...]
-
FlushConsoleInputBuffer(
int hConsoleInput) → int kernel32 - Flushes the console input buffer. All input records currently in the input buffer are discarded. [...]
-
FormatMessage(
int dwFlags, Pointer< kernel32NativeType> lpSource, int dwMessageId, int dwLanguageId, Pointer<Utf16> lpBuffer, int nSize, Pointer<NativeType> Arguments) → int - Formats a message string. The function requires a message definition as input. The message definition can come from a buffer passed into the function. It can come from a message table resource in an already-loaded module. Or the caller can ask the function to search the system's message table resource(s) for the message definition. The function finds the message definition in a message table resource based on a message identifier and a language identifier. The function copies the formatted message text to an output buffer, processing any embedded insert sequences if requested. [...]
-
FreeConsole(
) → int kernel32 - Detaches the calling process from its console. [...]
-
FreeLibrary(
int hLibModule) → int kernel32 - Frees the loaded dynamic-link library (DLL) module and, if necessary, decrements its reference count. When the reference count reaches zero, the module is unloaded from the address space of the calling process and the handle is no longer valid. [...]
-
GetComputerNameEx(
int NameType, Pointer< kernel32Utf16> lpBuffer, Pointer<Uint32> nSize) → int - Retrieves a NetBIOS or DNS name associated with the local computer. The names are established at system startup, when the system reads them from the registry. [...]
-
GetConsoleCursorInfo(
int hConsoleOutput, Pointer< kernel32CONSOLE_CURSOR_INFO> lpConsoleCursorInfo) → int - Retrieves information about the size and visibility of the cursor for the specified console screen buffer. [...]
-
GetConsoleMode(
int hConsoleHandle, Pointer< kernel32Uint32> lpMode) → int - Retrieves the current input mode of a console's input buffer or the current output mode of a console screen buffer. [...]
-
GetConsoleScreenBufferInfo(
int hConsoleOutput, Pointer< kernel32CONSOLE_SCREEN_BUFFER_INFO> lpConsoleScreenBufferInfo) → int - Retrieves information about the specified console screen buffer. [...]
-
GetConsoleSelectionInfo(
Pointer< kernel32CONSOLE_SELECTION_INFO> lpConsoleSelectionInfo) → int - Retrieves information about the current console selection. [...]
-
GetConsoleTitle(
Pointer< kernel32Utf16> lpConsoleTitle, int nSize) → int - Retrieves the title for the current console window. [...]
-
GetConsoleWindow(
) → int kernel32 - Retrieves the window handle used by the console associated with the calling process. [...]
-
GetCurrentActCtx(
Pointer< kernel32IntPtr> lphActCtx) → int - The GetCurrentActCtx function returns the handle to the active activation context of the calling thread. [...]
-
GetCurrentProcess(
) → int kernel32 - Retrieves a pseudo handle for the current process. [...]
-
GetFileAttributesEx(
Pointer< kernel32Utf16> lpFileName, int fInfoLevelId, Pointer<NativeType> lpFileInformation) → int - Retrieves attributes for a specified file or directory. [...]
-
GetIntegratedDisplaySize(
Pointer< kernel32Double> sizeInInches) → int - Retrieves the best estimate of the diagonal size of the built-in screen, in inches. [...]
-
GetLargestConsoleWindowSize(
int hConsoleOutput) → COORD kernel32 - Retrieves the size of the largest possible console window, based on the current font and the size of the display. [...]
-
GetLastError(
) → int kernel32 - Retrieves the calling thread's last-error code value. The last-error code is maintained on a per-thread basis. Multiple threads do not overwrite each other's last-error code. [...]
-
GetLocaleInfoEx(
Pointer< kernel32Utf16> lpLocaleName, int LCType, Pointer<Utf16> lpLCData, int cchData) → int - Retrieves information about a locale specified by name. [...]
-
GetLocalTime(
Pointer< kernel32SYSTEMTIME> lpSystemTime) → void - Retrieves the current local date and time. [...]
-
GetLogicalDriveStrings(
int nBufferLength, Pointer< kernel32Utf16> lpBuffer) → int - Fills a buffer with strings that specify valid drives in the system. [...]
-
GetModuleFileName(
int hModule, Pointer< kernel32Utf16> lpFilename, int nSize) → int - Retrieves the fully qualified path for the file that contains the specified module. The module must have been loaded by the current process. [...]
-
GetModuleHandle(
Pointer< kernel32Utf16> lpModuleName) → int - Retrieves a module handle for the specified module. The module must have been loaded by the calling process. [...]
-
GetNativeSystemInfo(
Pointer< kernel32SYSTEM_INFO> lpSystemInfo) → void - Retrieves information about the current system to an application running under WOW64. If the function is called from a 64-bit application, or on a 64-bit system that does not have an Intel64 or x64 processor (such as ARM64), it is equivalent to the GetSystemInfo function. [...]
-
GetPhysicallyInstalledSystemMemory(
Pointer< kernel32Uint64> TotalMemoryInKilobytes) → int - Retrieves the amount of RAM that is physically installed on the computer. [...]
-
GetProcAddress(
int hModule, Pointer< kernel32Uint8> lpProcName) → int - Retrieves the address of an exported function or variable from the specified dynamic-link library (DLL). [...]
-
GetProcessHeap(
) → int kernel32 - Retrieves a handle to the default heap of the calling process. This handle can then be used in subsequent calls to the heap functions. [...]
-
GetProductInfo(
int dwOSMajorVersion, int dwOSMinorVersion, int dwSpMajorVersion, int dwSpMinorVersion, Pointer< kernel32Uint32> pdwReturnedProductType) → int - Retrieves the product type for the operating system on the local computer, and maps the type to the product types supported by the specified operating system. [...]
-
GetStdHandle(
int nStdHandle) → int kernel32 - Retrieves a handle to the specified standard device (standard input, standard output, or standard error). [...]
-
GetSystemDefaultLangID(
) → int kernel32 - Returns the language identifier for the system locale. [...]
-
GetSystemDefaultLocaleName(
Pointer< kernel32Utf16> lpLocaleName, int cchLocaleName) → int - Retrieves the system default locale name. [...]
-
GetSystemDirectory(
Pointer< kernel32Utf16> lpBuffer, int uSize) → int - Retrieves the path of the system directory. The system directory contains system files such as dynamic-link libraries and drivers. [...]
-
GetSystemInfo(
Pointer< kernel32SYSTEM_INFO> lpSystemInfo) → void - Retrieves information about the current system. To retrieve accurate information for an application running on WOW64, call the GetNativeSystemInfo function. [...]
-
GetSystemPowerStatus(
Pointer< kernel32SYSTEM_POWER_STATUS> lpSystemPowerStatus) → int - Retrieves the power status of the system. The status indicates whether the system is running on AC or DC power, whether the battery is currently charging, how much battery life remains, and if battery saver is on or off. [...]
-
GetSystemTime(
Pointer< kernel32SYSTEMTIME> lpSystemTime) → void - Retrieves the current local date and time. [...]
-
GetTempPath(
int nBufferLength, Pointer< kernel32Utf16> lpBuffer) → int - Retrieves the path of the directory designated for temporary files. [...]
-
GetThreadLocale(
) → int kernel32 - Returns the locale identifier of the current locale for the calling thread. [...]
-
GetThreadUILanguage(
) → int kernel32 - Returns the language identifier of the first user interface language for the current thread. [...]
-
GetUserDefaultLangID(
) → int kernel32 - Returns the language identifier of the Region Format setting for the current user. [...]
-
GetUserDefaultLocaleName(
Pointer< kernel32Utf16> lpLocaleName, int cchLocaleName) → int - Retrieves the user default locale name. [...]
-
GetVersionEx(
Pointer< kernel32OSVERSIONINFO> lpVersionInformation) → int - With the release of Windows 8.1, the behavior of the GetVersionEx API has changed in the value it will return for the operating system version. The value returned by the GetVersionEx function now depends on how the application is manifested. Applications not manifested for Windows 8.1 or Windows 10 will return the Windows 8 OS version value (6.2). Once an application is manifested for a given operating system version, GetVersionEx will always return the version that the application is manifested for in future releases. [...]
-
GetVolumePathNamesForVolumeName(
Pointer< kernel32Utf16> lpszVolumeName, Pointer<Utf16> lpszVolumePathNames, int cchBufferLength, Pointer<Uint32> lpcchReturnLength) → int - Retrieves a list of drive letters and mounted folder paths for the specified volume. [...]
-
GlobalAlloc(
int uFlags, int dwBytes) → int kernel32 - Allocates the specified number of bytes from the heap. [...]
-
GlobalFree(
int hMem) → int kernel32 - Frees the specified global memory object and invalidates its handle. [...]
-
GlobalLock(
int hMem) → Pointer< kernel32NativeType> - Locks a global memory object and returns a pointer to the first byte of the object's memory block. [...]
-
GlobalUnlock(
int hMem) → int kernel32 - Decrements the lock count associated with a memory object that was allocated with GMEM_MOVEABLE. This function has no effect on memory objects allocated with GMEM_FIXED. [...]
-
HeapAlloc(
int hHeap, int dwFlags, int dwBytes) → Pointer< kernel32NativeType> - Allocates a block of memory from a heap. The allocated memory is not movable. [...]
-
HeapFree(
int hHeap, int dwFlags, Pointer< kernel32NativeType> lpMem) → int - Frees a memory block allocated from a heap by the HeapAlloc or HeapReAlloc function. [...]
-
InitializeProcThreadAttributeList(
Pointer< kernel32NativeType> lpAttributeList, int dwAttributeCount, int dwFlags, Pointer<IntPtr> lpSize) → int - Initializes the specified list of attributes for process and thread creation. [...]
-
IsDebuggerPresent(
) → int kernel32 - Determines whether the calling process is being debugged by a user-mode debugger. [...]
-
IsValidLocaleName(
Pointer< kernel32Utf16> lpLocaleName) → int - Determines if the specified locale name is valid for a locale that is installed or supported on the operating system. [...]
-
IsWow64Process2(
int hProcess, Pointer< kernel32Uint16> pProcessMachine, Pointer<Uint16> pNativeMachine) → int - Determines whether the specified process is running under WOW64. Also returns additional machine process and architecture information. [...]
-
LoadLibrary(
Pointer< kernel32Utf16> lpLibFileName) → int - Loads the specified module into the address space of the calling process. The specified module may cause other modules to be loaded. [...]
-
LoadResource(
int hModule, int hResInfo) → int kernel32 - Retrieves a handle that can be used to obtain a pointer to the first byte of the specified resource in memory. [...]
-
LockResource(
int hResData) → Pointer< kernel32NativeType> - Retrieves a pointer to the specified resource in memory. [...]
-
MoveFile(
Pointer< kernel32Utf16> lpExistingFileName, Pointer<Utf16> lpNewFileName) → int - Moves an existing file or a directory, including its children. [...]
-
OpenProcess(
int dwDesiredAccess, int bInheritHandle, int dwProcessId) → int kernel32 - Opens an existing local process object. [...]
-
OutputDebugString(
Pointer< kernel32Utf16> lpOutputString) → void - Sends a string to the debugger for display. [...]
-
QueryDosDevice(
Pointer< kernel32Utf16> lpDeviceName, Pointer<Utf16> lpTargetPath, int ucchMax) → int - Retrieves information about MS-DOS device names. The function can obtain the current mapping for a particular MS-DOS device name. The function can also obtain a list of all existing MS-DOS device names. [...]
-
QueryPerformanceCounter(
Pointer< kernel32Int64> lpPerformanceCount) → int - Retrieves the current value of the performance counter, which is a high resolution (<1us) time stamp that can be used for time-interval measurements. [...]
-
QueryPerformanceFrequency(
Pointer< kernel32Int64> lpFrequency) → int - Retrieves the frequency of the performance counter. The frequency of the performance counter is fixed at system boot and is consistent across all processors. Therefore, the frequency need only be queried upon application initialization, and the result can be cached. [...]
-
ReadConsole(
int hConsoleInput, Pointer< kernel32NativeType> lpBuffer, int nNumberOfCharsToRead, Pointer<Uint32> lpNumberOfCharsRead, Pointer<NativeType> pInputControl) → int - Reads character input from the console input buffer and removes it from the buffer. [...]
-
ReadFile(
int hFile, Pointer< kernel32NativeType> lpBuffer, int nNumberOfBytesToRead, Pointer<Uint32> lpNumberOfBytesRead, Pointer<OVERLAPPED> lpOverlapped) → int - Reads data from the specified file or input/output (I/O) device. Reads occur at the position specified by the file pointer if supported by the device. [...]
-
ReadProcessMemory(
int hProcess, Pointer< kernel32NativeType> lpBaseAddress, Pointer<NativeType> lpBuffer, int nSize, Pointer<IntPtr> lpNumberOfBytesRead) → int - ReadProcessMemory copies the data in the specified address range from the address space of the specified process into the specified buffer of the current process. Any process that has a handle with PROCESS_VM_READ access can call the function. [...]
-
ReleaseActCtx(
int hActCtx) → void kernel32 - The ReleaseActCtx function decrements the reference count of the specified activation context. [...]
-
RemoveDirectory(
Pointer< kernel32Utf16> lpPathName) → int - Deletes an existing empty directory. [...]
-
ResizePseudoConsole(
int hPC, COORD size) → int kernel32 - Resizes the internal buffers for a pseudoconsole to the given size. [...]
-
ScrollConsoleScreenBuffer(
int hConsoleOutput, Pointer< kernel32SMALL_RECT> lpScrollRectangle, Pointer<SMALL_RECT> lpClipRectangle, COORD dwDestinationOrigin, Pointer<CHAR_INFO> lpFill) → int - Moves a block of data in a screen buffer. The effects of the move can be limited by specifying a clipping rectangle, so the contents of the console screen buffer outside the clipping rectangle are unchanged. [...]
-
SetConsoleCtrlHandler(
Pointer< kernel32NativeFunction< HandlerRoutine, int Add) → intHandlerProc> > - Adds or removes an application-defined HandlerRoutine function from the list of handler functions for the calling process. [...]
-
SetConsoleCursorInfo(
int hConsoleOutput, Pointer< kernel32CONSOLE_CURSOR_INFO> lpConsoleCursorInfo) → int - Sets the size and visibility of the cursor for the specified console screen buffer. [...]
-
SetConsoleCursorPosition(
int hConsoleOutput, COORD dwCursorPosition) → int kernel32 - Sets the cursor position in the specified console screen buffer. [...]
-
SetConsoleDisplayMode(
int hConsoleOutput, int dwFlags, Pointer< kernel32COORD> lpNewScreenBufferDimensions) → int - Sets the display mode of the specified console screen buffer. [...]
-
SetConsoleMode(
int hConsoleHandle, int dwMode) → int kernel32 - Sets the input mode of a console's input buffer or the output mode of a console screen buffer. [...]
-
SetConsoleTextAttribute(
int hConsoleOutput, int wAttributes) → int kernel32 - Sets the attributes of characters written to the console screen buffer by the WriteFile or WriteConsole function, or echoed by the ReadFile or ReadConsole function. This function affects text written after the function call. [...]
-
SetConsoleWindowInfo(
int hConsoleOutput, int bAbsolute, Pointer< kernel32SMALL_RECT> lpConsoleWindow) → int - Sets the current size and position of a console screen buffer's window. [...]
-
SetCurrentDirectory(
Pointer< kernel32Utf16> lpPathName) → int - Changes the current directory for the current process. [...]
-
SetFilePointer(
int hFile, int lDistanceToMove, Pointer< kernel32Int32> lpDistanceToMoveHigh, int dwMoveMethod) → int - Moves the file pointer of the specified file. [...]
-
SetFilePointerEx(
int hFile, int liDistanceToMove, Pointer< kernel32Int64> lpNewFilePointer, int dwMoveMethod) → int - Moves the file pointer of the specified file. [...]
-
SetStdHandle(
int nStdHandle, int hHandle) → int kernel32 - Sets the handle for the specified standard device (standard input, standard output, or standard error). [...]
-
SetThreadExecutionState(
int esFlags) → int kernel32 - Enables an application to inform the system that it is in use, thereby preventing the system from entering sleep or turning off the display while the application is running. [...]
-
SetThreadUILanguage(
int LangId) → int kernel32 - Sets the user interface language for the current thread. [...]
-
Sleep(
int dwMilliseconds) → void kernel32 - Suspends the execution of the current thread until the time-out interval elapses. [...]
-
UpdateProcThreadAttribute(
Pointer< kernel32NativeType> lpAttributeList, int dwFlags, int Attribute, Pointer<NativeType> lpValue, int cbSize, Pointer<NativeType> lpPreviousValue, Pointer<IntPtr> lpReturnSize) → int - Updates the specified attribute in a list of attributes for process and thread creation. [...]
-
UpdateResource(
int hUpdate, Pointer< kernel32Utf16> lpType, Pointer<Utf16> lpName, int wLanguage, Pointer<NativeType> lpData, int cb) → int - Adds, deletes, or replaces a resource in a portable executable (PE) file. [...]
-
VirtualAlloc(
Pointer< kernel32NativeType> lpAddress, int dwSize, int flAllocationType, int flProtect) → Pointer<NativeType> - Reserves, commits, or changes the state of a region of pages in the virtual address space of the calling process. Memory allocated by this function is automatically initialized to zero. [...]
-
VirtualFree(
Pointer< kernel32NativeType> lpAddress, int dwSize, int dwFreeType) → int - Releases, decommits, or releases and decommits a region of pages within the virtual address space of the calling process. [...]
-
WaitForSingleObject(
int hHandle, int dwMilliseconds) → int kernel32 - Waits until the specified object is in the signaled state or the time-out interval elapses. [...]
-
WideCharToMultiByte(
int CodePage, int dwFlags, Pointer< kernel32Utf16> lpWideCharStr, int cchWideChar, Pointer<Uint8> lpMultiByteStr, int cbMultiByte, Pointer<Uint8> lpDefaultChar, Pointer<Uint32> lpUsedDefaultChar) → int - Maps a UTF-16 (wide character) string to a new character string. The new character string is not necessarily from a multibyte character set. [...]
-
Wow64SuspendThread(
int hThread) → int kernel32 - Suspends the specified WOW64 thread. [...]
-
WriteConsole(
int hConsoleOutput, Pointer< kernel32NativeType> lpBuffer, int nNumberOfCharsToWrite, Pointer<Uint32> lpNumberOfCharsWritten, Pointer<NativeType> lpReserved) → int - Writes a character string to a console screen buffer beginning at the current cursor location. [...]
-
WriteFile(
int hFile, Pointer< kernel32NativeType> lpBuffer, int nNumberOfBytesToWrite, Pointer<Uint32> lpNumberOfBytesWritten, Pointer<OVERLAPPED> lpOverlapped) → int - Writes data to the specified file or input/output (I/O) device. [...]
-
WriteProcessMemory(
int hProcess, Pointer< kernel32NativeType> lpBaseAddress, Pointer<NativeType> lpBuffer, int nSize, Pointer<IntPtr> lpNumberOfBytesWritten) → int - Writes data to an area of memory in a specified process. The entire area to be written to must be accessible or the operation fails. [...]