Microsoft DirectX 8.1 (C++) |
Signals a DVD error condition.
Parameters
lParam1
DWORD value indicating the error condition. Member of the DVD_ERROR enumerated data type.
lParam2
DWORD value whose HIWORD contains the decoder region as a reversed set of bits and whose LOWORD contains the drive/system region as a reversed set of bits. See Remarks.
Remarks
This event is raised in all domains.
If lParam1 == DVD_ERROR_IncompatibleSystemAndDecoderRegion, it indicates that (1) the decoder has a region specified and (2) the drive and decoder region do not match. lParam2 contains the system region in the LOWORD and the HIWORD contains the decoder region.
If lParam1 == DVD_ERROR_IncompatibleDiscAndDecoderRegion, it indicates that (1) the decoder has a region specified and (2) the disc and decoder region do not match. lParam2 contains the disc region in the LOWORD and the decoder region in the HIWORD.
If lParam1 == DVD_ERROR_InvalidDiscRegion, it means that the disc region is invalid. lParam2 contains the disc region in the LOWORD and the system region in the HIWORD
The disc region is encoded exactly as it is on the disc: as a reversed set of bits in the LOWORD of lParam2. If a disc is allowed in a region, that bit will be OFF. For example, for a Region 2 disc the returned value will be 253 (1111 1101) which has the second least significant bit turned off. A multi-region disc will have more than one such bit turned off.
The decoder or system region in the HIWORD of lParam2 is encoded in the same way.
See Also