Click here to Skip to main content
15,891,777 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
There is a structure in MSDN:
typedef struct _D3DAUTHENTICATEDCHANNEL_CONFIGURECRYPTOSESSION {
 D3DAUTHENTICATEDCHANNEL_CONFIGURE_INPUT Parameters;
 HANDLE                                  DXVA2DecodeHandle;
 HANDLE                                  CryptoSessionHandle;
 HANDLE                                  DeviceHandle;
} D3DAUTHENTICATEDCHANNEL_CONFIGURECRYPTOSESSION;

And about the parameter:

DXVA2DecodeHandle: A handle to the DirectX Video Acceleration 2 (DXVA-2) decoder device.

So far I can only get the IDirectXVideoDecoder pointer.
Do anybody know how I can get the handle to decoder device?
Posted
Updated 12-Apr-11 20:43pm
v2
Comments
Richard MacCutchan 13-Apr-11 3:33am    
Presumably you will need to call some WinAPI function to fill in the structure.
liudan_206 13-Apr-11 5:57am    
Maybe. But I could not find which API to call.
Richard MacCutchan 13-Apr-11 8:37am    
Having looked at the MSDN entry I cannot see anything that offers a suggestion. You could try the MSDN forums, maybe someone from Microsoft knows the answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900