include vmm.h RegCreateDynKey(LPSTR lpszName, LPVOID KeyContext, PPROVIDER pInfo, PPVALUE pValList, DWORD dwNumVals, HKEY FAR * pKeyHandle);
Creates the specified registry key under HKEY_DYN_DATA. Values under HKEY_DYN_DATA are maintained by the VxDs that create them. The VMM will call the appropriate VxD's enumeration entrypoint when a value is enumerated or queried.
ERROR_ACCESS_DENIED | |
ERROR_INSUFFICIENT_MEMORY | |
ERROR_CANNOT_OPEN_REGFILE | |
ERROR_REGFILE_READERROR | |
ERROR_REGFILE_WRITEERROR | |
ERROR_REGKEY_INVALIDKEY |
lpszName
Name of the key to create:
KeyContext
Four bytes of context that will be passed to the owning VxD when its enumeration entrypoint is called.
pInfo
Address of a PROVIDER structure (see vmmreg.h) that specifies the enumeration entrypoints for a key.
pValList
Address of an array of PVALUE structures (see vmmreg.h) that specify the value names and other attributes for the values under lpszName.
dwNumVals
Number of PVALUE structures in the pValList array.
pKeyHandle
Address of the variable to receive the handle of the newly created key, lpszName.