VC_ReadProfileUser

DWORD
VC_ReadProfileUser(
    PVC_PROFILE_INFO
pProfile,
    PWCHAR
ValueName,
    DWORD
dwDefault
    );

The VC_ReadProfileUser function reads the DWORD value associated with the specified value name, under the user’s profile information in the registry.

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.
dwDefault
Specifies a default value that is returned if an error occurs locating or reading the requested value.
Return Value

Returns the value assigned to the ValueName string, if the operation succeeds. If the ValueName string does not exist in the registry, cannot be accessed, or is not a REG_DWORD type, the function returns the value specified by dwDefault.

Comments

The value name and value are read from the registry path HKEY_CURRENT_USER \Software \Microsoft \Multimedia \Video Capture \DriverName, where DriverName is the driver name specified as input to VC_OpenProfileAccess.

To store values under this registry key, call VC_WriteProfileUser.

See Also

VC_ReadProfile, VC_ReadProfileString, VC_WriteProfile, VC_WriteProfileUser