advapi32 Topic

Advanced Base API Library

Implements Windows API functions related to the Windows registry, services, user accounts and applications.

Functions

CredDelete(Pointer<Utf16> TargetName, int Type, int Flags) int advapi32
The CredDelete function deletes a credential from the user's credential set. The credential set used is the one associated with the logon session of the current token. The token must not have the user's SID disabled. [...]
CredFree(Pointer<NativeType> Buffer) → void advapi32
The CredFree function frees a buffer returned by any of the credentials management functions. [...]
CredRead(Pointer<Utf16> TargetName, int Type, int Flags, Pointer<Pointer<CREDENTIAL>> Credential) int advapi32
The CredRead function reads a credential from the user's credential set. The credential set used is the one associated with the logon session of the current token. The token must not have the user's SID disabled. [...]
CredWrite(Pointer<CREDENTIAL> Credential, int Flags) int advapi32
The CredWrite function creates a new credential or modifies an existing credential in the user's credential set. The new credential is associated with the logon session of the current token. The token must not have the user's security identifier (SID) disabled. [...]
DecryptFile(Pointer<Utf16> lpFileName, int dwReserved) int advapi32
Decrypts an encrypted file or directory. [...]
EncryptFile(Pointer<Utf16> lpFileName) int advapi32
Encrypts a file or directory. All data streams in a file are encrypted. All new files created in an encrypted directory are encrypted. [...]
FileEncryptionStatus(Pointer<Utf16> lpFileName, Pointer<Uint32> lpStatus) int advapi32
Retrieves the encryption status of the specified file. [...]
InitiateShutdown(Pointer<Utf16> lpMachineName, Pointer<Utf16> lpMessage, int dwGracePeriod, int dwShutdownFlags, int dwReason) int advapi32
Initiates a shutdown and restart of the specified computer, and restarts any applications that have been registered for restart. [...]
RegCloseKey(int hKey) int advapi32
Closes a handle to the specified registry key. [...]
RegConnectRegistry(Pointer<Utf16> lpMachineName, int hKey, Pointer<IntPtr> phkResult) int advapi32
Establishes a connection to a predefined registry key on another computer. [...]
RegOpenKeyEx(int hKey, Pointer<Utf16> lpSubKey, int ulOptions, int samDesired, Pointer<IntPtr> phkResult) int advapi32
Opens the specified registry key. Note that key names are not case sensitive. [...]
RegQueryValueEx(int hKey, Pointer<Utf16> lpValueName, Pointer<Uint32> lpReserved, Pointer<Uint32> lpType, Pointer<Uint8> lpData, Pointer<Uint32> lpcbData) int advapi32
Retrieves the type and data for the specified value name associated with an open registry key. To ensure that any string values (REG_SZ, REG_MULTI_SZ, and REG_EXPAND_SZ) returned are null-terminated, use the RegGetValue function. [...]
RegSetValueEx(int hKey, Pointer<Utf16> lpValueName, int Reserved, int dwType, Pointer<Uint8> lpData, int cbData) int advapi32
Sets the data and type of a specified value under a registry key. [...]