BoxedAppSDK_EnumVirtualRegKeys

Description

The function lists all virtual registry keys currently present in the virtual registry.
It takes a pointer to a callback function, which is invoked once for each virtual key.

The callback function should return TRUE to continue enumeration, or FALSE to stop.
This mechanism allows the developer to inspect or manipulate virtual registry entries programmatically.

Syntax

typedef BOOL (WINAPI *P_BoxedAppSDK_EnumVirtualRegKeysCallback)(
  HKEY hRootKey,
  LPCTSTR szSubKey,
  LPARAM lParam
);
 
BOOL __stdcall BoxedAppSDK_EnumVirtualRegKeys(
  P_BoxedAppSDK_EnumVirtualRegKeysCallback pEnumFunc,
  LPARAM lParam
);
TBoxedAppSDK_EnumVirtualRegKeysCallbackA = function(
  hRootKey: HKEY;
  szSubKey: PAnsiChar;
  lParam: Cardinal
): Boolean; stdcall;
 
TBoxedAppSDK_EnumVirtualRegKeysCallbackW = function(
  hRootKey: HKEY;
  szSubKey: PWideChar;
  lParam: Cardinal
): Boolean; stdcall;
 
TBoxedAppSDK_EnumVirtualRegKeysCallback = TBoxedAppSDK_EnumVirtualRegKeysCallbackA;
 
function BoxedAppSDK_EnumVirtualRegKeys(
  pEnumFunc: TBoxedAppSDK_EnumVirtualRegKeysCallback;
  lParam: Cardinal
): Boolean; stdcall;
 
function BoxedAppSDK_EnumVirtualRegKeysA(
  pEnumFunc: TBoxedAppSDK_EnumVirtualRegKeysCallbackA;
  lParam: Cardinal
): Boolean; stdcall;
 
function BoxedAppSDK_EnumVirtualRegKeysW(
  pEnumFunc: TBoxedAppSDK_EnumVirtualRegKeysCallbackW;
  lParam: Cardinal
): Boolean; stdcall;

Parameters

pEnumFunc
Pointer to a callback function that will be called for each virtual key.
The callback should return TRUE to continue enumeration or FALSE to stop.

lParam
An application-defined value passed to the callback function.
This can be used to store user-specific data or context information.

Remarks

This function provides a way to iterate through all keys in the virtual registry managed by BoxedApp SDK.
It behaves similarly to RegEnumKeyEx, but operates entirely on the in-memory virtual registry, not the real Windows registry.

See Also