Win32 Supported API Functions

This section contains a list of supported Win32 API functions.

NOTE:  RTX only supports absolute pathnames.

Win32 Function Name

Description

AbnormalTermination

Indicates whether the try block of a try-finally statement terminated normally. The function can be called only from within the finally block of a try-finally statement.

CloseHandle

Closes an open object handle.

CreateDirectory

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

Creates or opens a file. It then returns a handle that can be used to access the object.

CreateThread

Creates a thread to execute within the address space of the calling process.

DeleteCriticalSection

Releases all resources used by an unowned critical-section object.

DeleteFile

Deletes an existing file.

DeviceIoControl

Sends a control code directly to a specified device driver, causing the corresponding device to perform the specified operation.

DllMain

An optional method of entry into a dynamic-link library (DLL).

EnterCriticalSection

Waits for ownership of the specified critical-section object. The function returns when the calling thread is granted ownership.

ExitProcess

Ends a process and all its threads.

ExitThread

Ends a thread.

FileTimeToLocalFileTime

Converts a file time to a local file time.

FileTimeToSystemTime

Converts a 64-bit file time to system time format.

FreeLibrary

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

GetCurrentProcess

Returns a pseudo handle for the current process.

GetCurrentProcessId

Returns the process identifier of the calling process.

GetCurrentProcessorNumber

Returns the system-assigned number of the current processor on which the caller is running.

GetCurrentThread

Returns a pseudohandle for the current thread.

GetCurrentThreadId

Returns the thread identifier of the calling thread.

GetExceptionCode

Retrieves a code that identifies the type of exception that occurred.

GetExceptionInformation

Retrieves a machine-independent description of an exception, and information about the machine state that existed for the thread when the exception occurred.

GetExitCodeThread

Retrieves the termination status of the specified thread.

GetLastError

Returns the calling thread's last-error code value.

GetLocalTime

Retrieves the current local date and time.

GetProcAddress

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

GetProcessAffinityMask

Retrieves the process affinity mask for the specified process and the system affinity mask for Real-Time Subsystem (RTSS).

GetProcessHeap

Obtains a handle to the heap of the calling process. This handle can then be used in calls to HeapAlloc, HeapReAlloc, HeapFree, and HeapSize.

GetSystemTime

Retrieves the current system date and time. The system time is expressed in Coordinated Universal Time (UTC).

GetThreadPriority

Returns the priority value for the specified thread. This value, together with the priority class of the thread's process, determines the thread's base-priority level.

GetTimeZoneInformation

Retrieves the current time-zone parameters. These parameters control the translations between UTC and local time.

HeapAlloc

Allocates a block of memory from a heap. The allocated memory is not movable.

HeapCreate

Creates a heap object that can be used by the calling process.

HeapDestroy

Destroys the specified heap object.

HeapFree

Frees a memory block allocated from a heap by HeapAlloc or HeapReAlloc.

HeapReAlloc

Reallocates a block of memory from a heap. This function enables you to resize a memory block and change other memory block properties.

HeapSize

Returns the size, in bytes, of a memory block allocated from a heap by HeapAlloc or HeapReAlloc.

InitializeCriticalSection

Tests the specified bit of the specified LONG value and sets it to 0. The operation is atomic.

InterlockedBitTestAndReset

Tests the specified bit of the specified LONG value and sets it to 0. The operation is atomic.

InterlockedBitTestAndSet

Tests the specified bit of the specified LONG value and sets it to 1. The operation is atomic.

InterlockedCompareExchange

Performs an atomic compare-and-exchange operation on the specified values.

InterlockedDecrement

Decrements (decreases by one) the value of the specified 32-bit variable as an atomic operation.

InterlockedExchange

Sets a 32-bit variable to the specified value as an atomic operation.

InterlockedExchangeAdd

Performs an atomic addition of two 32-bit values.

InterlockedIncrement

Increments (increases by one) the value of the specified 32-bit variable as an atomic operation.

LeaveCriticalSection

Releases ownership of the specified critical-section object.

LoadLibrary

Maps the specified executable module into the address space of the calling process.

LocalFileTimeToFileTime

Converts a local file time to a file time based on the UTC.

OutputDebugString

Sends a string to the debugger for display.

QueryPerformanceCounter

Retrieves the current value of the high-resolution performance counter.

QueryPerformanceFrequency

Retrieves the frequency of the high-resolution performance counter, if one exists. The frequency cannot change while the system is running.

RaiseException

Raises an exception in the calling thread.

ReadFile

Reads data from a file, starting at the position indicated by the file pointer.

RegCloseKey

A handle to the specified registry key.

RegCreateKey

Creates the specified registry key.

RegCreateKeyEx

Creates the specified registry key.

RegDeleteKey

Deletes a subkey and its values. See the RegDeleteKeyEx function for more expanded options.

RegDeleteKeyEx

Deletes a subkey and its values from the registry. See RegDeleteKey for a basic version of this function.

RegDeleteValue

Removes the specified value from the specified registry key.

RegEnumKey

Enumerates the subkeys of the specified open registry key.

RegEnumKeyEx

The subkeys of the specified open registry key.

RegEnumValue

Enumerates the values for the specified open registry key.

RegOpenKey

Opens the specified registry key.

RegOpenKeyEx

Opens the specified registry key.

RegQueryValueEx

Retrieves the type and data associated with the value of a specified registry key.

RegSetValueEx

Sets the data for the specified value in the specified registry key.

RemoveDirectory

Deletes an existing empty directory.

ResumeThread

Subtracts one from a thread's suspend count.

SetEndOfFile

Function moves the end-of-file (EOF) position for the specified file to the current position of the file pointer.

SetFilePointer

Moves the file pointer of an open file.

SetLastError

Sets the last-error code for the calling thread.

SetProcessAffinityMask

Sets a processor affinity mask for the threads of the specified process.

SetThreadAffinityMask

Sets a processor affinity mask for the specified thread.

SetThreadIdealProcessor

Sets a preferred processor for a thread.

SetThreadPriority

Sets the priority value for the specified thread.

SetUnhandledExceptionFilter

Lets an application supersede the top-level exception handler that RTSS places at the top of each thread and process.

Sleep

Suspends the current process for the specified time.

SuspendThread

Suspends the specified thread.

SystemTimeToFileTime

Converts a system time to a file time.

TerminateThread

Terminates a thread.

TlsAlloc

Allocates a thread local storage (TLS) index.

TlsFree

Releases a thread local storage (TLS) index, making it available for reuse.

TlsGetValue

Retrieves the value in the calling thread's thread local storage (TLS) slot for a specified TLS index.

TlsSetValue

Stores a value in the calling thread's thread local storage (TLS) slot for a specified TLS index.

UnhandledExceptionFilter

Displays an Application Error message box and causes the exception handler to be executed.

WriteFile

Writes data to a file (synchronous operations only).

Custom Error Codes

 

See Also

IntervalZero.com | Support | Give Feedback