|Microsoft DirectX 9.0|
The RegisterForEvent method registers the application to receive a specified event from the encoder. The application will receive an EC_CODECAPI_EVENT event notification whenever the encoder driver sends the event.
HRESULT RegisterForEvent( const GUID* Api, LONG_PTR userData );
[in] Pointer to a GUID that specifies the event.
[out] Pointer to caller-defined data. The application receives this pointer in the lParam1 event parameter.
If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.
Currently, the following GUID is defined.
|CODECAPI_CHANGELISTS||Notifies the client about which parameters have changed in the encoder.|
For more information, see CodecAPIEventData Structure.