VC_WriteProfile

BOOL
VC_WriteProfile(
PVC_PROFILE_INFO
pProfile,
PWCHAR
ValueName,
DWORD
Value
);

The VC_WriteProfile function assigns the specified DWORD value to the specified value name, under the driver's \Parameters registry key.

Parameters

pProfile

Address of the VC_PROFILE_INFO structure returned by VC_OpenProfileAccess.

ValueName

Pointer to a UNICODE string identifying the name of a registry value.

Value

Value to be assigned to the ValueName in the registry.

Return Value

Returns TRUE if the operation succeeds. Otherwise returns FALSE.

Comments

The value name and value are written to the registry path HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DriverName\Parameters, where DriverName is the driver name specified as input to VC_OpenProfileAccess.

If the \Parameters subkey does not exist, it is created. If the specified value name does not exist under the \Parameters subkey, it is created.

To read values from a driver's \Parameters registry key, call VC_ReadProfile.

Note: A function named VC_WriteProfile is also provided by VCKernel.lib for kernel-mode video capture drivers. To see that function's description, click here.

See Also

VC_ReadProfile, VC_ReadProfileString, VC_ReadProfileUser, VC_WriteProfileUser