VirtRegSaveWorkKey (deprecated)

Top  Previous  Next

int _stdcall

VirtRegSaveWorkKey(

   IN  PACKAGE_HANDLE               hPkg )

 

Applies the changes to modified registry keys obtained by VirtRegGetWorkKey function. The workflow for modifying virtual registry is:

1. Call VirtRegGetWorkKey(Ex).

2. Modify the registry work hive.

3. Call VirtRegSaveWorkKey.

4. Call PackageSave.

Parameters

hPkg [in]

Virtual application package handle, returned by PackageOpen.

Return Value

Returns APIRET_SUCCESS if successful, or APIRET_INVALID_PARAMETER if VirtRegWorkKey(Ex) wasn't properly called beforehand.