Core Services

System Services

Provides functions for interacting with the Windows operating system core.

FunctionHeaderSynopsis
GetSystemInfowindows.hRetrieves information about the current system.
SetSystemPowerStatewinuser.hSets the system power state (sleep, hibernate).
GetVersionExwinnt.hGets the operating system version.

Memory Management

Functions for allocating, managing, and freeing memory in a process.

FunctionHeaderSynopsis
VirtualAllocmemoryapi.hReserves or commits a region of pages in the virtual address space.
VirtualFreememoryapi.hReleases or decommits a region of pages.
HeapCreateheapapi.hCreates a private heap object.
HeapAllocheapapi.hAllocates a memory block from a heap.

Synchronization

APIs to coordinate execution across threads and processes.

FunctionHeaderSynopsis
CreateMutexsynchapi.hCreates or opens a mutex object.
WaitForSingleObjectsynchapi.hWaits until the specified object is in the signaled state.
InitializeCriticalSectionsynchapi.hInitializes a critical section object.
ReleaseSemaphoresynchapi.hReleases a semaphore object.

Security

Functions dealing with access control, authentication, and encryption.

FunctionHeaderSynopsis
OpenProcessTokensecuritybaseapi.hOpens the access token associated with a process.
GetTokenInformationsecuritybaseapi.hRetrieves information about an access token.
CryptAcquireContextwincrypt.hAcquires a handle to a cryptographic service provider (CSP).
EncryptMessagesspi.hEncrypts a message using a security context.

Registry

APIs for creating, reading, updating, and deleting registry keys and values.

FunctionHeaderSynopsis
RegOpenKeyExwinreg.hOpens an existing registry key.
RegSetValueExwinreg.hSets the data and type of a value under a registry key.
RegQueryValueExwinreg.hRetrieves the type and data for a value.
RegDeleteKeywinreg.hDeletes a subkey and its values.