2.2.1.5 GetDuration

GetDuration is a two-way request message, so the CallingConvention parameter in the Dispatch Request tag MUST be dslrRequest (0x00000001) (see [MS-DSLR]section 2.2.2.1). The function handle for the Dispatch Request tag for GetDuration MUST be 0x00000005.

This message is called to get the duration of media.

The message does not take any input parameters.

The Response payload (result and output parameters) is as follows:


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Result

Duration

...

Result (4 bytes): An unsigned 32-bit integer. An HRESULT that is returned from the function call. See [MS-DSLR] section 2.2.2.5 for error codes.

Duration (8 bytes): An unsigned 64-bit integer. It is used to get the duration of media in units of 10 milliseconds.