advapi32 Topic
Advanced Base API Library
Implements Windows API functions related to the Windows registry, services, user accounts and applications.
Functions
-
CredDelete(
Pointer< advapi32Utf16> TargetName, int Type, int Flags) → int - 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< advapi32NativeType> Buffer) → void - The CredFree function frees a buffer returned by any of the credentials management functions. [...]
-
CredRead(
Pointer< advapi32Utf16> TargetName, int Type, int Flags, Pointer<Pointer< Credential) → intCREDENTIAL> > - 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< advapi32CREDENTIAL> Credential, int Flags) → int - 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< advapi32Utf16> lpFileName, int dwReserved) → int - Decrypts an encrypted file or directory. [...]
-
EncryptFile(
Pointer< advapi32Utf16> lpFileName) → int - 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< advapi32Utf16> lpFileName, Pointer<Uint32> lpStatus) → int - Retrieves the encryption status of the specified file. [...]
-
InitiateShutdown(
Pointer< advapi32Utf16> lpMachineName, Pointer<Utf16> lpMessage, int dwGracePeriod, int dwShutdownFlags, int dwReason) → int - 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< advapi32Utf16> lpMachineName, int hKey, Pointer<IntPtr> phkResult) → int - Establishes a connection to a predefined registry key on another computer. [...]
-
RegOpenKeyEx(
int hKey, Pointer< advapi32Utf16> lpSubKey, int ulOptions, int samDesired, Pointer<IntPtr> phkResult) → int - Opens the specified registry key. Note that key names are not case sensitive. [...]
-
RegQueryValueEx(
int hKey, Pointer< advapi32Utf16> lpValueName, Pointer<Uint32> lpReserved, Pointer<Uint32> lpType, Pointer<Uint8> lpData, Pointer<Uint32> lpcbData) → int - 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< advapi32Utf16> lpValueName, int Reserved, int dwType, Pointer<Uint8> lpData, int cbData) → int - Sets the data and type of a specified value under a registry key. [...]