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.
-
AddDllDirectory(
Pointer< kernel32Utf16> NewDirectory) → Pointer<NativeType> - Adds a directory to the process DLL search path.
-
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.
-
AreFileApisANSI(
) → int kernel32 - Determines whether the file I/O functions are using the ANSI or OEM character set code page. This function is useful for 8-bit console input and output operations.
-
AssignProcessToJobObject(
int hJob, int hProcess) → int kernel32 - Assigns a process to an existing job object.
-
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.
-
BuildCommDCB(
Pointer< kernel32Utf16> lpDef, Pointer<DCB> lpDCB) → int - Fills a specified DCB structure with values specified in a device-control string. The device-control string uses the syntax of the mode command.
-
BuildCommDCBAndTimeouts(
Pointer< kernel32Utf16> lpDef, Pointer<DCB> lpDCB, Pointer<COMMTIMEOUTS> lpCommTimeouts) → int - Translates a device-definition string into appropriate device-control block codes and places them into a device control block. The function can also set up time-out values, including the possibility of no time-outs, for a device; the function's behavior in this regard depends on the contents of the device-definition string.
-
CallNamedPipe(
Pointer< kernel32Utf16> lpNamedPipeName, Pointer<NativeType> lpInBuffer, int nInBufferSize, Pointer<NativeType> lpOutBuffer, int nOutBufferSize, Pointer<Uint32> lpBytesRead, int nTimeOut) → int - Connects to a message-type pipe (and waits if an instance of the pipe is not available), writes to and reads from the pipe, and then closes the pipe.
-
CancelIo(
int hFile) → int kernel32 - Cancels all pending input and output (I/O) operations that are issued by the calling thread for the specified file. The function does not cancel I/O operations that other threads issue for a file handle.
-
CancelIoEx(
int hFile, Pointer< kernel32OVERLAPPED> lpOverlapped) → int - Marks any outstanding I/O operations for the specified file handle. The function only cancels I/O operations in the current process, regardless of which thread created the I/O operation.
-
CancelSynchronousIo(
int hThread) → int kernel32 - Marks pending synchronous I/O operations that are issued by the specified thread as canceled.
-
CheckRemoteDebuggerPresent(
int hProcess, Pointer< kernel32Int32> pbDebuggerPresent) → int - Determines whether the specified process is being debugged.
-
ClearCommBreak(
int hFile) → int kernel32 - Restores character transmission for a specified communications device and places the transmission line in a nonbreak state.
-
ClearCommError(
int hFile, Pointer< kernel32Uint32> lpErrors, Pointer<COMSTAT> lpStat) → int - Retrieves information about a communications error and reports the current status of a communications device. The function is called when a communications error occurs, and it clears the device's error flag to enable additional input and output (I/O) operations.
-
CloseHandle(
int hObject) → int kernel32 - Closes an open object handle.
-
ClosePseudoConsole(
int hPC) → void kernel32 - Closes a pseudoconsole from the given handle.
-
CommConfigDialog(
Pointer< kernel32Utf16> lpszName, int hWnd, Pointer<COMMCONFIG> lpCC) → int - Displays a driver-supplied configuration dialog box.
-
CompareObjectHandles(
int hFirstObjectHandle, int hSecondObjectHandle) → int kernel32 - Compares two object handles to determine if they refer to the same underlying kernel object.
-
ConnectNamedPipe(
int hNamedPipe, Pointer< kernel32OVERLAPPED> lpOverlapped) → int - Enables a named pipe server process to wait for a client process to connect to an instance of a named pipe. A client process connects by calling either the CreateFile or CallNamedPipe function.
-
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.
-
CreateEvent(
Pointer< kernel32SECURITY_ATTRIBUTES> lpEventAttributes, int bManualReset, int bInitialState, Pointer<Utf16> lpName) → int - Creates or opens a named or unnamed event object.
-
CreateEventEx(
Pointer< kernel32SECURITY_ATTRIBUTES> lpEventAttributes, Pointer<Utf16> lpName, int dwFlags, int dwDesiredAccess) → int - Creates or opens a named or unnamed event object and returns a handle to the object.
-
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.
-
CreateFile2(
Pointer< kernel32Utf16> lpFileName, int dwDesiredAccess, int dwCreationDisposition, Pointer<CREATEFILE2_EXTENDED_PARAMETERS> pCreateExParams) → 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.
-
CreateIoCompletionPort(
int FileHandle, int ExistingCompletionPort, int CompletionKey, int NumberOfConcurrentThreads) → int kernel32 - Creates an input/output (I/O) completion port and associates it with a specified file handle, or creates an I/O completion port that is not yet associated with a file handle, allowing association at a later time.
-
CreateJobObject(
Pointer< kernel32SECURITY_ATTRIBUTES> lpJobAttributes, Pointer<Utf16> lpName) → int - Creates or opens a job object.
-
CreateNamedPipe(
Pointer< kernel32Utf16> lpName, int dwOpenMode, int dwPipeMode, int nMaxInstances, int nOutBufferSize, int nInBufferSize, int nDefaultTimeOut, Pointer<SECURITY_ATTRIBUTES> lpSecurityAttributes) → int - Creates an instance of a named pipe and returns a handle for subsequent pipe operations. A named pipe server process uses this function either to create the first instance of a specific named pipe and establish its basic attributes or to create a new instance of an existing named pipe.
-
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.
-
CreateRemoteThread(
int hProcess, Pointer< kernel32SECURITY_ATTRIBUTES> lpThreadAttributes, int dwStackSize, Pointer<NativeFunction< lpStartAddress, Pointer<LPTHREAD_START_ROUTINE> >NativeType> lpParameter, int dwCreationFlags, Pointer<Uint32> lpThreadId) → int - Creates a thread that runs in the virtual address space of another process. Use the CreateRemoteThreadEx function to create a thread that runs in the virtual address space of another process and optionally specify extended attributes.
-
CreateRemoteThreadEx(
int hProcess, Pointer< kernel32SECURITY_ATTRIBUTES> lpThreadAttributes, int dwStackSize, Pointer<NativeFunction< lpStartAddress, Pointer<LPTHREAD_START_ROUTINE> >NativeType> lpParameter, int dwCreationFlags, Pointer<NativeType> lpAttributeList, Pointer<Uint32> lpThreadId) → int - Creates a thread that runs in the virtual address space of another process and optionally specifies extended attributes such as processor group affinity.
-
CreateThread(
Pointer< kernel32SECURITY_ATTRIBUTES> lpThreadAttributes, int dwStackSize, Pointer<NativeFunction< lpStartAddress, Pointer<LPTHREAD_START_ROUTINE> >NativeType> lpParameter, int dwCreationFlags, Pointer<Uint32> lpThreadId) → int - Creates a thread to execute within the virtual address space of 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.
-
DefineDosDevice(
int dwFlags, Pointer< kernel32Utf16> lpDeviceName, Pointer<Utf16> lpTargetPath) → int - Defines, redefines, or deletes MS-DOS device names.
-
DeleteFile(
Pointer< kernel32Utf16> lpFileName) → int - Deletes an existing file.
-
DeleteVolumeMountPoint(
Pointer< kernel32Utf16> lpszVolumeMountPoint) → int - Deletes a drive letter or mounted folder.
-
DeviceIoControl(
int hDevice, int dwIoControlCode, Pointer< kernel32NativeType> lpInBuffer, int nInBufferSize, Pointer<NativeType> lpOutBuffer, int nOutBufferSize, Pointer<Uint32> lpBytesReturned, Pointer<OVERLAPPED> lpOverlapped) → int - Sends a control code directly to a specified device driver, causing the corresponding device to perform the corresponding operation.
-
DisableThreadLibraryCalls(
int hLibModule) → int kernel32 - Disables the DLL_THREAD_ATTACH and DLL_THREAD_DETACH notifications for the specified dynamic-link library (DLL). This can reduce the size of the working set for some applications.
-
DisconnectNamedPipe(
int hNamedPipe) → int kernel32 - Disconnects the server end of a named pipe instance from a client process.
-
DnsHostnameToComputerName(
Pointer< kernel32Utf16> Hostname, Pointer<Utf16> ComputerName, Pointer<Uint32> nSize) → int - Converts a DNS-style host name to a NetBIOS-style computer name.
-
DosDateTimeToFileTime(
int wFatDate, int wFatTime, Pointer< kernel32FILETIME> lpFileTime) → int - Converts MS-DOS date and time values to a file time.
-
DuplicateHandle(
int hSourceProcessHandle, int hSourceHandle, int hTargetProcessHandle, Pointer< kernel32IntPtr> lpTargetHandle, int dwDesiredAccess, int bInheritHandle, int dwOptions) → int - Duplicates an object handle.
-
EmptyWorkingSet(
int hProcess) → int kernel32 - Removes as many pages as possible from the working set of the specified process.
-
EndUpdateResource(
int hUpdate, int fDiscard) → int kernel32 - Commits or discards changes made prior to a call to UpdateResource.
-
EnumDeviceDrivers(
Pointer< kernel32Pointer< lpImageBase, int cb, Pointer<NativeType> >Uint32> lpcbNeeded) → int - Retrieves the load address for each device driver in the system.
-
EnumPageFiles(
Pointer< kernel32NativeFunction< pCallBackRoutine, Pointer<PENUM_PAGE_FILE_CALLBACK> >NativeType> pContext) → int - Calls the callback routine for each installed pagefile in the system.
-
EnumProcesses(
Pointer< kernel32Uint32> lpidProcess, int cb, Pointer<Uint32> lpcbNeeded) → int - Retrieves the process identifier for each process object in the system.
-
EnumProcessModules(
int hProcess, Pointer< kernel32IntPtr> lphModule, int cb, Pointer<Uint32> lpcbNeeded) → int - Retrieves a handle for each module in the specified process.
-
EnumProcessModulesEx(
int hProcess, Pointer< kernel32IntPtr> lphModule, int cb, Pointer<Uint32> lpcbNeeded, int dwFilterFlag) → int - Retrieves a handle for each module in the specified process that meets the specified filter criteria.
-
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.
-
EnumSystemFirmwareTables(
int FirmwareTableProviderSignature, Pointer< kernel32Uint8> pFirmwareTableEnumBuffer, int BufferSize) → int - Enumerates all system firmware tables of the specified type.
-
EscapeCommFunction(
int hFile, int dwFunc) → int kernel32 - Directs the specified communications device to perform an extended function.
-
ExitProcess(
int uExitCode) → void kernel32 - Ends the calling process and all its threads.
-
ExitThread(
int dwExitCode) → void kernel32 - Ends the calling thread.
-
FileTimeToDosDateTime(
Pointer< kernel32FILETIME> lpFileTime, Pointer<Uint16> lpFatDate, Pointer<Uint16> lpFatTime) → int - Converts a file time to MS-DOS date and time values.
-
FileTimeToSystemTime(
Pointer< kernel32FILETIME> lpFileTime, Pointer<SYSTEMTIME> lpSystemTime) → int - Converts a file time to system time format. System time is based on Coordinated Universal Time (UTC).
-
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.
-
FillMemory(
Pointer< kernel32NativeType> destination, int length, int fill) → void - Fills a block of memory with a specified value.
-
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).
-
FindFirstFileEx(
Pointer< kernel32Utf16> lpFileName, int fInfoLevelId, Pointer<NativeType> lpFindFileData, int fSearchOp, Pointer<NativeType> lpSearchFilter, int dwAdditionalFlags) → int - Searches a directory for a file or subdirectory with a name and attributes that match those specified.
-
FindFirstFileName(
Pointer< kernel32Utf16> lpFileName, int dwFlags, Pointer<Uint32> StringLength, Pointer<Utf16> LinkName) → int - Creates an enumeration of all the hard links to the specified file. The FindFirstFileNameW function returns a handle to the enumeration that can be used on subsequent calls to the FindNextFileNameW function.
-
FindFirstStream(
Pointer< kernel32Utf16> lpFileName, int InfoLevel, Pointer<NativeType> lpFindStreamData, int dwFlags) → int - Enumerates the first stream with a ::$DATA stream type in the specified file or directory.
-
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.
-
FindNextFileName(
int hFindStream, Pointer< kernel32Uint32> StringLength, Pointer<Utf16> LinkName) → int - Continues enumerating the hard links to a file using the handle returned by a successful call to the FindFirstFileNameW function.
-
FindNextStream(
int hFindStream, Pointer< kernel32NativeType> lpFindStreamData) → int - Continues a stream search started by a previous call to the FindFirstStreamW function.
-
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.
-
FindPackagesByPackageFamily(
Pointer< kernel32Utf16> packageFamilyName, int packageFilters, Pointer<Uint32> count, Pointer<Pointer< packageFullNames, Pointer<Utf16> >Uint32> bufferLength, Pointer<Utf16> buffer, Pointer<Uint32> packageProperties) → int - Finds the packages with the specified family name for the current user.
-
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.
-
FindStringOrdinal(
int dwFindStringOrdinalFlags, Pointer< kernel32Utf16> lpStringSource, int cchSource, Pointer<Utf16> lpStringValue, int cchValue, int bIgnoreCase) → int - Locates a Unicode string (wide characters) in another Unicode string for a non-linguistic comparison.
-
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<Pointer< Arguments) → intInt8> > - 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.
-
FreeLibraryAndExitThread(
int hLibModule, int dwExitCode) → void kernel32 - Decrements the reference count of a loaded dynamic-link library (DLL) by one, then calls ExitThread to terminate the calling thread. The function does not return.
-
FreeMemoryJobObject(
Pointer< kernel32NativeType> Buffer) → void - Frees memory that a function related to job objects allocated.
-
GetActiveProcessorCount(
int GroupNumber) → int kernel32 - Returns the number of active processors in a processor group or in the system.
-
GetActiveProcessorGroupCount(
) → int kernel32 - Returns the number of active processor groups in the system.
-
GetBinaryType(
Pointer< kernel32Utf16> lpApplicationName, Pointer<Uint32> lpBinaryType) → int - Determines whether a file is an executable (.exe) file, and if so, which subsystem runs the executable file.
-
GetCommandLine(
) → Pointer< kernel32Utf16> - Parses a Unicode command line string and returns an array of pointers to the command line arguments, along with a count of such arguments, in a way that is similar to the standard C run-time argv and argc values.
-
GetCommConfig(
int hCommDev, Pointer< kernel32COMMCONFIG> lpCC, Pointer<Uint32> lpdwSize) → int - Retrieves the current configuration of a communications device.
-
GetCommMask(
int hFile, Pointer< kernel32Uint32> lpEvtMask) → int - Retrieves the value of the event mask for a specified communications device.
-
GetCommModemStatus(
int hFile, Pointer< kernel32Uint32> lpModemStat) → int - Retrieves the modem control-register values.
-
GetCommPorts(
Pointer< kernel32Uint32> lpPortNumbers, int uPortNumbersCount, Pointer<Uint32> puPortNumbersFound) → int - Gets an array that contains the well-formed COM ports.
-
GetCommProperties(
int hFile, Pointer< kernel32COMMPROP> lpCommProp) → int - Retrieves information about the communications properties for a specified communications device.
-
GetCommState(
int hFile, Pointer< kernel32DCB> lpDCB) → int - Retrieves the current control settings for a specified communications device.
-
GetCommTimeouts(
int hFile, Pointer< kernel32COMMTIMEOUTS> lpCommTimeouts) → int - Retrieves the time-out parameters for all read and write operations on a specified communications device.
-
GetCompressedFileSize(
Pointer< kernel32Utf16> lpFileName, Pointer<Uint32> lpFileSizeHigh) → int - Retrieves the actual number of bytes of disk storage used to store a specified file. If the file is located on a volume that supports compression and the file is compressed, the value obtained is the compressed size of the specified file. If the file is located on a volume that supports sparse files and the file is a sparse file, the value obtained is the sparse size of the specified file.
-
GetComputerName(
Pointer< kernel32Utf16> lpBuffer, Pointer<Uint32> nSize) → int - Retrieves the NetBIOS name of the local computer. This name is established at system startup, when the system reads it from the registry.
-
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.
-
GetConsoleCP(
) → int kernel32 - Retrieves the input code page used by the console associated with the calling process. A console uses its input code page to translate keyboard input into the corresponding character value.
-
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.
-
GetConsoleOutputCP(
) → int kernel32 - Retrieves the output code page used by the console associated with the calling process. A console uses its output code page to translate the character values written by the various output functions into the images displayed in the console window.
-
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.
-
GetCurrentProcessId(
) → int kernel32 - Retrieves the process identifier of the calling process.
-
GetCurrentProcessorNumber(
) → int kernel32 - Retrieves the number of the processor the current thread was running on during the call to this function.
-
GetCurrentThread(
) → int kernel32 - Retrieves a pseudo handle for the calling thread.
-
GetCurrentThreadId(
) → int kernel32 - Retrieves the thread identifier of the calling thread.
-
GetDefaultCommConfig(
Pointer< kernel32Utf16> lpszName, Pointer<COMMCONFIG> lpCC, Pointer<Uint32> lpdwSize) → int - Retrieves the default configuration for the specified communications device.
-
GetDeviceDriverBaseName(
Pointer< kernel32NativeType> ImageBase, Pointer<Utf16> lpBaseName, int nSize) → int - Retrieves the base name of the specified device driver.
-
GetDeviceDriverFileName(
Pointer< kernel32NativeType> ImageBase, Pointer<Utf16> lpFilename, int nSize) → int - Retrieves the path available for the specified device driver.
-
GetDiskFreeSpace(
Pointer< kernel32Utf16> lpRootPathName, Pointer<Uint32> lpSectorsPerCluster, Pointer<Uint32> lpBytesPerSector, Pointer<Uint32> lpNumberOfFreeClusters, Pointer<Uint32> lpTotalNumberOfClusters) → int - Retrieves information about the specified disk, including the amount of free space on the disk.
-
GetDiskFreeSpaceEx(
Pointer< kernel32Utf16> lpDirectoryName, Pointer<Uint64> lpFreeBytesAvailableToCaller, Pointer<Uint64> lpTotalNumberOfBytes, Pointer<Uint64> lpTotalNumberOfFreeBytes) → int - Retrieves information about the amount of space that is available on a disk volume, which is the total amount of space, the total amount of free space, and the total amount of free space available to the user that is associated with the calling thread.
-
GetDllDirectory(
int nBufferLength, Pointer< kernel32Utf16> lpBuffer) → int - Retrieves the application-specific portion of the search path used to locate DLLs for the application.
-
GetDriveType(
Pointer< kernel32Utf16> lpRootPathName) → int - Determines whether a disk drive is a removable, fixed, CD-ROM, RAM disk, or network drive.
-
GetEnvironmentVariable(
Pointer< kernel32Utf16> lpName, Pointer<Utf16> lpBuffer, int nSize) → int - Retrieves the contents of the specified variable from the environment block of the calling process.
-
GetExitCodeProcess(
int hProcess, Pointer< kernel32Uint32> lpExitCode) → int - Retrieves the termination status of the specified process.
-
GetFileAttributes(
Pointer< kernel32Utf16> lpFileName) → int - Retrieves file system attributes for a specified file or directory.
-
GetFileAttributesEx(
Pointer< kernel32Utf16> lpFileName, int fInfoLevelId, Pointer<NativeType> lpFileInformation) → int - Retrieves attributes for a specified file or directory.
-
GetFileInformationByHandle(
int hFile, Pointer< kernel32BY_HANDLE_FILE_INFORMATION> lpFileInformation) → int - Retrieves file information for the specified file.
-
GetFileSize(
int hFile, Pointer< kernel32Uint32> lpFileSizeHigh) → int - Retrieves the size of the specified file, in bytes. It is recommended that you use GetFileSizeEx.
-
GetFileSizeEx(
int hFile, Pointer< kernel32Int64> lpFileSize) → int - Retrieves the size of the specified file.
-
GetFileType(
int hFile) → int kernel32 - Retrieves the file type of the specified file.
-
GetFinalPathNameByHandle(
int hFile, Pointer< kernel32Utf16> lpszFilePath, int cchFilePath, int dwFlags) → int - Retrieves the final path for the specified file.
-
GetFullPathName(
Pointer< kernel32Utf16> lpFileName, int nBufferLength, Pointer<Utf16> lpBuffer, Pointer<Pointer< lpFilePart) → intUtf16> > - Retrieves the full path and file name of the specified file.
-
GetHandleInformation(
int hObject, Pointer< kernel32Uint32> lpdwFlags) → int - Retrieves certain properties of an object handle.
-
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.
-
GetLogicalDrives(
) → int kernel32 - Retrieves a bitmask representing the currently available disk drives.
-
GetLogicalDriveStrings(
int nBufferLength, Pointer< kernel32Utf16> lpBuffer) → int - Fills a buffer with strings that specify valid drives in the system.
-
GetLogicalProcessorInformation(
Pointer< kernel32SYSTEM_LOGICAL_PROCESSOR_INFORMATION> Buffer, Pointer<Uint32> ReturnedLength) → int - Retrieves information about logical processors and related hardware.
-
GetLongPathName(
Pointer< kernel32Utf16> lpszShortPath, Pointer<Utf16> lpszLongPath, int cchBuffer) → int - Converts the specified path to its long form.
-
GetMachineTypeAttributes(
int Machine, Pointer< kernel32Int32> MachineTypeAttributes) → int - Queries if the specified architecture is supported on the current system, either natively or by any form of compatibility or emulation layer.
-
GetMappedFileName(
int hProcess, Pointer< kernel32NativeType> lpv, Pointer<Utf16> lpFilename, int nSize) → int - Checks whether the specified address is within a memory-mapped file in the address space of the specified process. If so, the function returns the name of the memory-mapped file.
-
GetMaximumProcessorCount(
int GroupNumber) → int kernel32 - Returns the maximum number of logical processors that a processor group or the system can have.
-
GetMaximumProcessorGroupCount(
) → int kernel32 - Returns the maximum number of processor groups that the system can have.
-
GetModuleBaseName(
int hProcess, int hModule, Pointer< kernel32Utf16> lpBaseName, int nSize) → int - Retrieves the base name of the specified module.
-
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.
-
GetModuleFileNameEx(
int hProcess, int hModule, Pointer< kernel32Utf16> lpFilename, int nSize) → int - Retrieves the fully qualified path for the file containing the specified module.
-
GetModuleHandle(
Pointer< kernel32Utf16> lpModuleName) → int - Retrieves a module handle for the specified module. The module must have been loaded by the calling process.
-
GetModuleHandleEx(
int dwFlags, Pointer< kernel32Utf16> lpModuleName, Pointer<IntPtr> phModule) → int - Retrieves a module handle for the specified module and increments the module's reference count unless GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT is specified. The module must have been loaded by the calling process.
-
GetModuleInformation(
int hProcess, int hModule, Pointer< kernel32MODULEINFO> lpmodinfo, int cb) → int - Retrieves information about the specified module in the MODULEINFO structure.
-
GetNamedPipeClientComputerName(
int Pipe, Pointer< kernel32Utf16> ClientComputerName, int ClientComputerNameLength) → int - Retrieves the client computer name for the specified named pipe.
-
GetNamedPipeClientProcessId(
int Pipe, Pointer< kernel32Uint32> ClientProcessId) → int - Retrieves the client process identifier for the specified named pipe.
-
GetNamedPipeClientSessionId(
int Pipe, Pointer< kernel32Uint32> ClientSessionId) → int - Retrieves the client process identifier for the specified named pipe.
-
GetNamedPipeHandleState(
int hNamedPipe, Pointer< kernel32Uint32> lpState, Pointer<Uint32> lpCurInstances, Pointer<Uint32> lpMaxCollectionCount, Pointer<Uint32> lpCollectDataTimeout, Pointer<Utf16> lpUserName, int nMaxUserNameSize) → int - Retrieves information about a specified named pipe. The information returned can vary during the lifetime of an instance of the named pipe.
-
GetNamedPipeInfo(
int hNamedPipe, Pointer< kernel32Uint32> lpFlags, Pointer<Uint32> lpOutBufferSize, Pointer<Uint32> lpInBufferSize, Pointer<Uint32> lpMaxInstances) → int - Retrieves information about the specified named pipe.
-
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.
-
GetNumberOfConsoleInputEvents(
int hConsoleInput, Pointer< kernel32Uint32> lpNumberOfEvents) → int - Retrieves the number of unread input records in the console's input buffer.
-
GetOverlappedResult(
int hFile, Pointer< kernel32OVERLAPPED> lpOverlapped, Pointer<Uint32> lpNumberOfBytesTransferred, int bWait) → int - Retrieves the results of an overlapped operation on the specified file, named pipe, or communications device. To specify a timeout interval or wait on an alertable thread, use GetOverlappedResultEx.
-
GetOverlappedResultEx(
int hFile, Pointer< kernel32OVERLAPPED> lpOverlapped, Pointer<Uint32> lpNumberOfBytesTransferred, int dwMilliseconds, int bAlertable) → int - Retrieves the results of an overlapped operation on the specified file, named pipe, or communications device within the specified time-out interval. The calling thread can perform an alertable wait.
-
GetPerformanceInfo(
Pointer< kernel32PERFORMANCE_INFORMATION> pPerformanceInformation, int cb) → int - Retrieves the performance values contained in the PERFORMANCE_INFORMATION structure.
-
GetPhysicallyInstalledSystemMemory(
Pointer< kernel32Uint64> TotalMemoryInKilobytes) → int - Retrieves the amount of RAM that is physically installed on the computer.
-
GetProcAddress(
int hModule, Pointer< kernel32Utf8> lpProcName) → Pointer<NativeType> - 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.
-
GetProcessHeaps(
int NumberOfHeaps, Pointer< kernel32IntPtr> ProcessHeaps) → int - Returns the number of active heaps and retrieves handles to all of the active heaps for the calling process.
-
GetProcessId(
int Process) → int kernel32 - Retrieves the process identifier of the specified process.
-
GetProcessImageFileName(
int hProcess, Pointer< kernel32Utf16> lpImageFileName, int nSize) → int - Retrieves the name of the executable file for the specified process.
-
GetProcessShutdownParameters(
Pointer< kernel32Uint32> lpdwLevel, Pointer<Uint32> lpdwFlags) → int - Retrieves the shutdown parameters for the currently calling process.
-
GetProcessTimes(
int hProcess, Pointer< kernel32FILETIME> lpCreationTime, Pointer<FILETIME> lpExitTime, Pointer<FILETIME> lpKernelTime, Pointer<FILETIME> lpUserTime) → int - Retrieves timing information for the specified process.
-
GetProcessVersion(
int ProcessId) → int kernel32 - Retrieves the major and minor version numbers of the system on which the specified process expects to run.
-
GetProcessWorkingSetSize(
int hProcess, Pointer< kernel32IntPtr> lpMinimumWorkingSetSize, Pointer<IntPtr> lpMaximumWorkingSetSize) → int - Retrieves the minimum and maximum working set sizes of the specified process.
-
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.
-
GetQueuedCompletionStatus(
int CompletionPort, Pointer< kernel32Uint32> lpNumberOfBytesTransferred, Pointer<IntPtr> lpCompletionKey, Pointer<Pointer< lpOverlapped, int dwMilliseconds) → intOVERLAPPED> > - Attempts to dequeue an I/O completion packet from the specified I/O completion port. If there is no completion packet queued, the function waits for a pending I/O operation associated with the completion port to complete.
-
GetQueuedCompletionStatusEx(
int CompletionPort, Pointer< kernel32OVERLAPPED_ENTRY> lpCompletionPortEntries, int ulCount, Pointer<Uint32> ulNumEntriesRemoved, int dwMilliseconds, int fAlertable) → int - Retrieves multiple completion port entries simultaneously. It waits for pending I/O operations that are associated with the specified completion port to complete.
-
GetShortPathName(
Pointer< kernel32Utf16> lpszLongPath, Pointer<Utf16> lpszShortPath, int cchBuffer) → int - Retrieves the short path form of the specified path.
-
GetStartupInfo(
Pointer< kernel32STARTUPINFO> lpStartupInfo) → void - Retrieves the contents of the STARTUPINFO structure that was specified when the calling process was created.
-
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.
-
GetSystemTimeAdjustment(
Pointer< kernel32Uint32> lpTimeAdjustment, Pointer<Uint32> lpTimeIncrement, Pointer<Int32> lpTimeAdjustmentDisabled) → int - Determines whether the system is applying periodic time adjustments to its time-of-day clock, and obtains the value and period of any such adjustments.
-
GetSystemTimes(
Pointer< kernel32FILETIME> lpIdleTime, Pointer<FILETIME> lpKernelTime, Pointer<FILETIME> lpUserTime) → int - Retrieves system timing information. On a multiprocessor system, the values returned are the sum of the designated times across all processors.
-
GetTempFileName(
Pointer< kernel32Utf16> lpPathName, Pointer<Utf16> lpPrefixString, int uUnique, Pointer<Utf16> lpTempFileName) → int - Creates a name for a temporary file. If a unique file name is generated, an empty file is created and the handle to it is released; otherwise, only a file name is generated.
-
GetTempPath(
int nBufferLength, Pointer< kernel32Utf16> lpBuffer) → int - Retrieves the path of the directory designated for temporary files.
-
GetTempPath2(
int BufferLength, Pointer< kernel32Utf16> Buffer) → int - Retrieves the path of the directory designated for temporary files, based on the privileges of the calling process.
-
GetThreadId(
int Thread) → int kernel32 - Retrieves the thread identifier of the specified thread.
-
GetThreadLocale(
) → int kernel32 - Returns the locale identifier of the current locale for the calling thread.
-
GetThreadTimes(
int hThread, Pointer< kernel32FILETIME> lpCreationTime, Pointer<FILETIME> lpExitTime, Pointer<FILETIME> lpKernelTime, Pointer<FILETIME> lpUserTime) → int - Retrieves timing information for the specified thread.
-
GetThreadUILanguage(
) → int kernel32 - Returns the language identifier of the first user interface language for the current thread.
-
GetTickCount(
) → int kernel32 - Retrieves the number of milliseconds that have elapsed since the system was started, up to 49.7 days.
-
GetUserDefaultLangID(
) → int kernel32 - Returns the language identifier of the Region Format setting for the current user.
-
GetUserDefaultLCID(
) → int kernel32 - Returns the locale identifier for the user default locale.
-
GetUserDefaultLocaleName(
Pointer< kernel32Utf16> lpLocaleName, int cchLocaleName) → int - Retrieves the user default locale name.
-
GetVersionEx(
Pointer< kernel32OSVERSIONINFO> lpVersionInformation) → int - Gets information about the operating system version.
-
GetVolumeInformation(
Pointer< kernel32Utf16> lpRootPathName, Pointer<Utf16> lpVolumeNameBuffer, int nVolumeNameSize, Pointer<Uint32> lpVolumeSerialNumber, Pointer<Uint32> lpMaximumComponentLength, Pointer<Uint32> lpFileSystemFlags, Pointer<Utf16> lpFileSystemNameBuffer, int nFileSystemNameSize) → int - Retrieves information about the file system and volume associated with the specified root directory.
-
GetVolumeInformationByHandle(
int hFile, Pointer< kernel32Utf16> lpVolumeNameBuffer, int nVolumeNameSize, Pointer<Uint32> lpVolumeSerialNumber, Pointer<Uint32> lpMaximumComponentLength, Pointer<Uint32> lpFileSystemFlags, Pointer<Utf16> lpFileSystemNameBuffer, int nFileSystemNameSize) → int - Retrieves information about the file system and volume associated with the specified file.
-
GetVolumeNameForVolumeMountPoint(
Pointer< kernel32Utf16> lpszVolumeMountPoint, Pointer<Utf16> lpszVolumeName, int cchBufferLength) → int - Retrieves a volume GUID path for the volume that is associated with the specified volume mount point (drive letter, volume GUID path, or mounted folder).
-
GetVolumePathName(
Pointer< kernel32Utf16> lpszFileName, Pointer<Utf16> lpszVolumePathName, int cchBufferLength) → int - Retrieves the volume mount point where the specified path is mounted.
-
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) → Pointer< kernel32NativeType> - Allocates the specified number of bytes from the heap.
-
GlobalFree(
Pointer< kernel32NativeType> hMem) → Pointer<NativeType> - Frees the specified global memory object and invalidates its handle.
-
GlobalLock(
Pointer< kernel32NativeType> hMem) → Pointer<NativeType> - Locks a global memory object and returns a pointer to the first byte of the object's memory block.
-
GlobalMemoryStatusEx(
Pointer< kernel32MEMORYSTATUSEX> lpBuffer) → int - Retrieves information about the system's current usage of both physical and virtual memory.
-
GlobalSize(
Pointer< kernel32NativeType> hMem) → int - Retrieves the current size of the specified global memory object, in bytes.
-
GlobalUnlock(
Pointer< kernel32NativeType> hMem) → int - 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.
-
HeapCompact(
int hHeap, int dwFlags) → int kernel32 - Returns the size of the largest committed free block in the specified heap. If the Disable heap coalesce on free global flag is set, this function also coalesces adjacent free blocks of memory in the heap.
-
HeapCreate(
int flOptions, int dwInitialSize, int dwMaximumSize) → int kernel32 - Creates a private heap object that can be used by the calling process. The function reserves space in the virtual address space of the process and allocates physical storage for a specified initial portion of this block.
-
HeapDestroy(
int hHeap) → int kernel32 - Destroys the specified heap object. It decommits and releases all the pages of a private heap object, and it invalidates the handle to the heap.
-
HeapFree(
int hHeap, int dwFlags, Pointer< kernel32NativeType> lpMem) → int - Frees a memory block allocated from a heap by the HeapAlloc or HeapReAlloc function.
-
HeapLock(
int hHeap) → int kernel32 - Attempts to acquire the critical section object, or lock, that is associated with a specified heap.
-
HeapQueryInformation(
int HeapHandle, int HeapInformationClass, Pointer< kernel32NativeType> HeapInformation, int HeapInformationLength, Pointer<IntPtr> ReturnLength) → int - Retrieves information about the specified heap.
-
HeapReAlloc(
int hHeap, int dwFlags, Pointer< kernel32NativeType> lpMem, int dwBytes) → Pointer<NativeType> - Retrieves information about the specified heap.
-
HeapSetInformation(
int HeapHandle, int HeapInformationClass, Pointer< kernel32NativeType> HeapInformation, int HeapInformationLength) → int - Enables features for a specified heap.
-
HeapSize(
int hHeap, int dwFlags, Pointer< kernel32NativeType> lpMem) → int - Retrieves the size of a memory block allocated from a heap by the HeapAlloc or HeapReAlloc function.
-
HeapUnlock(
int hHeap) → int kernel32 - Releases ownership of the critical section object, or lock, that is associated with a specified heap. It reverses the action of the HeapLock function.
-
HeapValidate(
int hHeap, int dwFlags, Pointer< kernel32NativeType> lpMem) → int - Validates the specified heap. The function scans all the memory blocks in the heap and verifies that the heap control structures maintained by the heap manager are in a consistent state. You can also use the HeapValidate function to validate a single memory block within a specified heap without checking the validity of the entire heap.
-
HeapWalk(
int hHeap, Pointer< kernel32PROCESS_HEAP_ENTRY> lpEntry) → int - Enumerates the memory blocks in the specified heap.
-
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.
-
IsNativeVhdBoot(
Pointer< kernel32Int32> NativeVhdBoot) → int - Indicates if the OS was booted from a VHD container.
-
IsProcessInJob(
int ProcessHandle, int JobHandle, Pointer< kernel32Int32> Result) → int - Determines whether the process is running in the specified job.
-
IsSystemResumeAutomatic(
) → int kernel32 - Determines the current state of the computer.
-
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.
-
LoadLibraryEx(
Pointer< kernel32Utf16> lpLibFileName, int hFile, int dwFlags) → 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) → Pointer< kernel32NativeType> - Retrieves a handle that can be used to obtain a pointer to the first byte of the specified resource in memory.
-
LocalFree(
Pointer< kernel32NativeType> hMem) → Pointer<NativeType> - Frees the specified local memory object and invalidates its handle.
-
LockFile(
int hFile, int dwFileOffsetLow, int dwFileOffsetHigh, int nNumberOfBytesToLockLow, int nNumberOfBytesToLockHigh) → int kernel32 - Locks the specified file for exclusive access by the calling process.
-
LockFileEx(
int hFile, int dwFlags, int dwReserved, int nNumberOfBytesToLockLow, int nNumberOfBytesToLockHigh, Pointer< kernel32OVERLAPPED> lpOverlapped) → int - Locks the specified file for exclusive access by the calling process. This function can operate either synchronously or asynchronously and can request either an exclusive or a shared lock.
-
LockResource(
Pointer< kernel32NativeType> hResData) → Pointer<NativeType> - 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.
-
OpenCommPort(
int uPortNumber, int dwDesiredAccess, int dwFlagsAndAttributes) → int kernel32 - Attempts to open a communication device.
-
OpenEvent(
int dwDesiredAccess, int bInheritHandle, Pointer< kernel32Utf16> lpName) → int - Opens an existing named event object.
-
OpenJobObject(
int dwDesiredAccess, int bInheritHandle, Pointer< kernel32Utf16> lpName) → int - Opens an existing job object.
-
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.
-
PackageFamilyNameFromFullName(
Pointer< kernel32Utf16> packageFullName, Pointer<Uint32> packageFamilyNameLength, Pointer<Utf16> packageFamilyName) → int - Gets the package family name for the specified package full name.
-
PeekConsoleInput(
int hConsoleInput, Pointer< kernel32INPUT_RECORD> lpBuffer, int nLength, Pointer<Uint32> lpNumberOfEventsRead) → int - Reads data from the specified console input buffer without removing it from the buffer.
-
PeekNamedPipe(
int hNamedPipe, Pointer< kernel32NativeType> lpBuffer, int nBufferSize, Pointer<Uint32> lpBytesRead, Pointer<Uint32> lpTotalBytesAvail, Pointer<Uint32> lpBytesLeftThisMessage) → int - Copies data from a named or anonymous pipe into a buffer without removing it from the pipe. It also returns information about data in the pipe.
-
PostQueuedCompletionStatus(
int CompletionPort, int dwNumberOfBytesTransferred, int dwCompletionKey, Pointer< kernel32OVERLAPPED> lpOverlapped) → int - Posts an I/O completion packet to an I/O completion port.
-
PurgeComm(
int hFile, int dwFlags) → int kernel32 - Discards all characters from the output or input buffer of a specified communications resource. It can also terminate pending read or write operations on the resource.
-
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.
-
QueryFullProcessImageName(
int hProcess, int dwFlags, Pointer< kernel32Utf16> lpExeName, Pointer<Uint32> lpdwSize) → int - Retrieves the full name of the executable image for the specified process.
-
QueryInformationJobObject(
int hJob, int JobObjectInformationClass, Pointer< kernel32NativeType> lpJobObjectInformation, int cbJobObjectInformationLength, Pointer<Uint32> lpReturnLength) → int - Retrieves limit and job state information from the job object.
-
QueryIoRateControlInformationJobObject(
int hJob, Pointer< kernel32Utf16> VolumeName, Pointer<Pointer< InfoBlocks, Pointer<JOBOBJECT_IO_RATE_CONTROL_INFORMATION> >Uint32> InfoBlockCount) → int - Gets information about the control of the I/O rate for a job object.
-
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<CONSOLE_READCONSOLE_CONTROL> pInputControl) → int - Reads character input from the console input buffer and removes it from the buffer.
-
ReadConsoleInput(
int hConsoleInput, Pointer< kernel32INPUT_RECORD> lpBuffer, int nLength, Pointer<Uint32> lpNumberOfEventsRead) → int - Reads data from a console input buffer and removes it from the buffer.
-
ReadFile(
int hFile, Pointer< kernel32Uint8> 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.
-
ReadFileEx(
int hFile, Pointer< kernel32Uint8> lpBuffer, int nNumberOfBytesToRead, Pointer<OVERLAPPED> lpOverlapped, Pointer<NativeFunction< lpCompletionRoutine) → intLPOVERLAPPED_COMPLETION_ROUTINE> > - Reads data from the specified file or input/output (I/O) device. It reports its completion status asynchronously, calling the specified completion routine when reading is completed or canceled and the calling thread is in an alertable wait state.
-
ReadFileScatter(
int hFile, Pointer< kernel32FILE_SEGMENT_ELEMENT> aSegmentArray, int nNumberOfBytesToRead, Pointer<Uint32> lpReserved, Pointer<OVERLAPPED> lpOverlapped) → int - Reads data from a file and stores it in an array of buffers. The function starts reading data from the file at a position that is specified by an OVERLAPPED structure. The ReadFileScatter function operates asynchronously.
-
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.
-
RemoveDllDirectory(
Pointer< kernel32NativeType> Cookie) → int - Removes a directory that was added to the process DLL search path by using AddDllDirectory.
-
ReOpenFile(
int hOriginalFile, int dwDesiredAccess, int dwFlagsAndAttributes) → int kernel32 - Reopens the specified file system object with different access rights, sharing mode, and flags.
-
ResetEvent(
int hEvent) → int kernel32 - Sets the specified event object to the nonsignaled state.
-
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.
-
SetCommBreak(
int hFile) → int kernel32 - Suspends character transmission for a specified communications device and places the transmission line in a break state until the ClearCommBreak function is called.
-
SetCommConfig(
int hCommDev, Pointer< kernel32COMMCONFIG> lpCC, int dwSize) → int - Sets the current configuration of a communications device.
-
SetCommMask(
int hFile, int dwEvtMask) → int kernel32 - Specifies a set of events to be monitored for a communications device.
-
SetCommState(
int hFile, Pointer< kernel32DCB> lpDCB) → int - Configures a communications device according to the specifications in a device-control block (a DCB structure). The function reinitializes all hardware and control settings, but it does not empty output or input queues.
-
SetCommTimeouts(
int hFile, Pointer< kernel32COMMTIMEOUTS> lpCommTimeouts) → int - Sets the time-out parameters for all read and write operations on a specified communications device.
-
SetConsoleCtrlHandler(
Pointer< kernel32NativeFunction< HandlerRoutine, int Add) → intPHANDLER_ROUTINE> > - 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.
-
SetDefaultCommConfig(
Pointer< kernel32Utf16> lpszName, Pointer<COMMCONFIG> lpCC, int dwSize) → int - Sets the default configuration for a communications device.
-
SetDefaultDllDirectories(
int DirectoryFlags) → int kernel32 - Specifies a default set of directories to search when the calling process loads a DLL. This search path is used when LoadLibraryEx is called with no LOAD_LIBRARY_SEARCH flags.
-
SetEndOfFile(
int hFile) → int kernel32 - Sets the physical file size for the specified file to the current position of the file pointer.
-
SetEnvironmentVariable(
Pointer< kernel32Utf16> lpName, Pointer<Utf16> lpValue) → int - Sets the contents of the specified environment variable for the current process.
-
SetErrorMode(
int uMode) → int kernel32 - Sets the specified event object to the signaled state.
-
SetEvent(
int hEvent) → int kernel32 - Sets the specified event object to the signaled state.
-
SetFileApisToANSI(
) → void kernel32 - Causes the file I/O functions to use the ANSI character set code page for the current process.
-
SetFileApisToOEM(
) → void kernel32 - Causes the file I/O functions for the process to use the OEM character set code page.
-
SetFileAttributes(
Pointer< kernel32Utf16> lpFileName, int dwFileAttributes) → int - Sets the attributes for a file or directory.
-
SetFileInformationByHandle(
int hFile, int FileInformationClass, Pointer< kernel32NativeType> lpFileInformation, int dwBufferSize) → int - Sets the file information for the specified file.
-
SetFileIoOverlappedRange(
int FileHandle, Pointer< kernel32Uint8> OverlappedRangeStart, int Length) → int - Associates a virtual address range with the specified file handle. This indicates that the kernel should optimize any further asynchronous I/O requests with overlapped structures inside this range. The overlapped range is locked in memory, and then unlocked when the file is closed. After a range is associated with a file handle, it cannot be disassociated.
-
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.
-
SetFileShortName(
int hFile, Pointer< kernel32Utf16> lpShortName) → int - Sets the short name for the specified file. The file must be on an NTFS file system volume.
-
SetFileValidData(
int hFile, int ValidDataLength) → int kernel32 - Sets the valid data length of the specified file. This function is useful in very limited scenarios.
-
SetFirmwareEnvironmentVariable(
Pointer< kernel32Utf16> lpName, Pointer<Utf16> lpGuid, Pointer<NativeType> pValue, int nSize) → int - Sets the value of the specified firmware environment variable.
-
SetFirmwareEnvironmentVariableEx(
Pointer< kernel32Utf16> lpName, Pointer<Utf16> lpGuid, Pointer<NativeType> pValue, int nSize, int dwAttributes) → int - Sets the value of the specified firmware environment variable and the attributes that indicate how this variable is stored and maintained.
-
SetHandleInformation(
int hObject, int dwMask, int dwFlags) → int kernel32 - Sets certain properties of an object handle.
-
SetInformationJobObject(
int hJob, int JobObjectInformationClass, Pointer< kernel32NativeType> lpJobObjectInformation, int cbJobObjectInformationLength) → int - Sets limits for a job object.
-
SetIoRateControlInformationJobObject(
int hJob, Pointer< kernel32JOBOBJECT_IO_RATE_CONTROL_INFORMATION> IoRateControlInfo) → int - Sets I/O limits on a job object.
-
SetNamedPipeHandleState(
int hNamedPipe, Pointer< kernel32Uint32> lpMode, Pointer<Uint32> lpMaxCollectionCount, Pointer<Uint32> lpCollectDataTimeout) → int - Sets the read mode and the blocking mode of the specified named pipe. If the specified handle is to the client end of a named pipe and if the named pipe server process is on a remote computer, the function can also be used to control local buffering.
-
SetProcessAffinityMask(
int hProcess, int dwProcessAffinityMask) → int kernel32 - Sets a processor affinity mask for the threads of the specified process.
-
SetProcessPriorityBoost(
int hProcess, int bDisablePriorityBoost) → int kernel32 - Disables or enables the ability of the system to temporarily boost the priority of the threads of the specified process.
-
SetProcessWorkingSetSize(
int hProcess, int dwMinimumWorkingSetSize, int dwMaximumWorkingSetSize) → int kernel32 - Sets the minimum and maximum working set sizes for the specified process.
-
SetStdHandle(
int nStdHandle, int hHandle) → int kernel32 - Sets the handle for the specified standard device (standard input, standard output, or standard error).
-
SetThreadAffinityMask(
int hThread, int dwThreadAffinityMask) → int kernel32 - Sets a processor affinity mask for the specified thread.
-
SetThreadErrorMode(
int dwNewMode, Pointer< kernel32Uint32> lpOldMode) → int - Controls whether the system will handle the specified types of serious errors or whether the calling thread will handle them.
-
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.
-
SetupComm(
int hFile, int dwInQueue, int dwOutQueue) → int kernel32 - Initializes the communications parameters for a specified communications device.
-
SetVolumeLabel(
Pointer< kernel32Utf16> lpRootPathName, Pointer<Utf16> lpVolumeName) → int - Sets the label of a file system volume.
-
SizeofResource(
int hModule, int hResInfo) → int kernel32 - Retrieves the size, in bytes, of the specified resource.
-
Sleep(
int dwMilliseconds) → void kernel32 - Suspends the execution of the current thread until the time-out interval elapses.
-
SleepEx(
int dwMilliseconds, int bAlertable) → int kernel32 - Suspends the current thread until the specified condition is met. Execution resumes when one of the following occurs: (i) an I/O completion callback function is called; (ii) an asynchronous procedure call (APC) is queued to the thread; (iii) the time-out interval elapses.
-
SystemTimeToFileTime(
Pointer< kernel32SYSTEMTIME> lpSystemTime, Pointer<FILETIME> lpFileTime) → int - Converts a system time to file time format. System time is based on Coordinated Universal Time (UTC).
-
TerminateJobObject(
int hJob, int uExitCode) → int kernel32 - Terminates all processes currently associated with the job. If the job is nested, this function terminates all processes currently associated with the job and all of its child jobs in the hierarchy.
-
TerminateProcess(
int hProcess, int uExitCode) → int kernel32 - Terminates the specified process and all of its threads.
-
TerminateThread(
int hThread, int dwExitCode) → int kernel32 - Terminates a thread.
-
TransactNamedPipe(
int hNamedPipe, Pointer< kernel32NativeType> lpInBuffer, int nInBufferSize, Pointer<NativeType> lpOutBuffer, int nOutBufferSize, Pointer<Uint32> lpBytesRead, Pointer<OVERLAPPED> lpOverlapped) → int - Combines the functions that write a message to and read a message from the specified named pipe into a single network operation.
-
TransmitCommChar(
int hFile, int cChar) → int kernel32 - Transmits a specified character ahead of any pending data in the output buffer of the specified communications device.
-
UnlockFile(
int hFile, int dwFileOffsetLow, int dwFileOffsetHigh, int nNumberOfBytesToUnlockLow, int nNumberOfBytesToUnlockHigh) → int kernel32 - Unlocks a region in an open file. Unlocking a region enables other processes to access the region.
-
UnlockFileEx(
int hFile, int dwReserved, int nNumberOfBytesToUnlockLow, int nNumberOfBytesToUnlockHigh, Pointer< kernel32OVERLAPPED> lpOverlapped) → int - Unlocks a region in the specified file. This function can operate either synchronously or asynchronously.
-
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.
-
VerifyVersionInfo(
Pointer< kernel32OSVERSIONINFOEX> lpVersionInformation, int dwTypeMask, int dwlConditionMask) → int - Compares a set of operating system version requirements to the corresponding values for the currently running version of the system. This function is subject to manifest-based behavior.
-
VerLanguageName(
int wLang, Pointer< kernel32Utf16> szLang, int cchLang) → int - Retrieves a description string for the language associated with a specified binary Microsoft language identifier.
-
VerSetConditionMask(
int ConditionMask, int TypeMask, int Condition) → int kernel32 - Sets the bits of a 64-bit value to indicate the comparison operator to use for a specified operating system version attribute. This function is used to build the dwlConditionMask parameter of the VerifyVersionInfo function.
-
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.
-
VirtualAllocEx(
int hProcess, Pointer< kernel32NativeType> lpAddress, int dwSize, int flAllocationType, int flProtect) → Pointer<NativeType> - Reserves, commits, or changes the state of a region of memory within the virtual address space of a specified process. The function initializes the memory it allocates 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.
-
VirtualFreeEx(
int hProcess, Pointer< kernel32NativeType> lpAddress, int dwSize, int dwFreeType) → int - Releases, decommits, or releases and decommits a region of memory within the virtual address space of a specified process.
-
VirtualLock(
Pointer< kernel32NativeType> lpAddress, int dwSize) → int - Locks the specified region of the process's virtual address space into physical memory, ensuring that subsequent access to the region will not incur a page fault.
-
VirtualQuery(
Pointer< kernel32NativeType> lpAddress, Pointer<MEMORY_BASIC_INFORMATION> lpBuffer, int dwLength) → int - Retrieves information about a range of pages in the virtual address space of the calling process.
-
VirtualQueryEx(
int hProcess, Pointer< kernel32NativeType> lpAddress, Pointer<MEMORY_BASIC_INFORMATION> lpBuffer, int dwLength) → int - Retrieves information about a range of pages within the virtual address space of a specified process.
-
VirtualUnlock(
Pointer< kernel32NativeType> lpAddress, int dwSize) → int - Unlocks a specified range of pages in the virtual address space of a process, enabling the system to swap the pages out to the paging file if necessary.
-
WaitCommEvent(
int hFile, Pointer< kernel32Uint32> lpEvtMask, Pointer<OVERLAPPED> lpOverlapped) → int - Waits for an event to occur for a specified communications device. The set of events that are monitored by this function is contained in the event mask associated with the device handle.
-
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<Utf8> lpMultiByteStr, int cbMultiByte, Pointer<Utf8> lpDefaultChar, Pointer<Int32> 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< kernel32Uint8> lpBuffer, int nNumberOfBytesToWrite, Pointer<Uint32> lpNumberOfBytesWritten, Pointer<OVERLAPPED> lpOverlapped) → int - Writes data to the specified file or input/output (I/O) device.
-
WriteFileEx(
int hFile, Pointer< kernel32Uint8> lpBuffer, int nNumberOfBytesToWrite, Pointer<OVERLAPPED> lpOverlapped, Pointer<NativeFunction< lpCompletionRoutine) → intLPOVERLAPPED_COMPLETION_ROUTINE> > - Writes data to the specified file or input/output (I/O) device. It reports its completion status asynchronously, calling the specified completion routine when writing is completed or canceled and the calling thread is in an alertable wait state.
-
WriteFileGather(
int hFile, Pointer< kernel32FILE_SEGMENT_ELEMENT> aSegmentArray, int nNumberOfBytesToWrite, Pointer<Uint32> lpReserved, Pointer<OVERLAPPED> lpOverlapped) → int - Retrieves data from an array of buffers and writes the data to a file. The function starts writing data to the file at a position that is specified by an OVERLAPPED structure. The WriteFileGather function operates asynchronously.
-
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.
-
ZeroMemory(
Pointer< kernel32NativeType> destination, int length) → void - Fills a block of memory with zeros.