CdromEnableDigitalPlayback function (storprop.h)

Enables digital playback for the specified CD-ROM or DVD drive.

Syntax

LONG CdromEnableDigitalPlayback(
  [in] HDEVINFO         DevInfo,
  [in] PSP_DEVINFO_DATA DevInfoData,
  [in] BOOLEAN          ForceUnknown
);

Parameters

[in] DevInfo

A handle to a device information set listing the devices for which information is to be returned. This handle is typically returned by the SetupDiGetClassDevs or SetupDiGetClassDevsEx function.

[in] DevInfoData

A pointer to an SP_DEVINFO_DATA structure that defines the device instance.

[in] ForceUnknown

If this member is TRUE, playback is enabled even if the drive is not known to be good.

Return value

If the function succeeds, the return value is ERROR_SUCCESS.

If the function fails, the return value is an error code.

Remarks

To disable digital playback for the specified CD-ROM or DVD drive, use the CdromDisableDigitalPlayback function. To determine whether digital playback is enabled or disabled, use the CdromIsDigitalPlaybackEnabled function.

This function has no associated import library. You must use the LoadLibrary and GetProcAddress functions to dynamically link to StorProp.dll.

Requirements

Requirement Value
Minimum supported client Windows XP
Minimum supported server Windows Server 2003
Target Platform Windows
Header storprop.h
DLL StorProp.dll

See also

CdromDisableDigitalPlayback

CdromIsDigitalPlaybackEnabled

CdromKnownGoodDigitalPlayback

Device Management Functions