VC_WriteProfile

BOOL
VC_WriteProfile(

PDEVICE_INFO pDevInfo,
PWCHAR szValueName,
DWORD ValueData
);

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

Parameters

pDevInfo

Pointer to the DEVICE_INFO structure returned by VC_Init.

szValueName

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

ValueData

Value to be assigned to 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.

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

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