VC_GetStreamPos

BOOL
VC_GetStreamPos(
    VCUSER_HANDLE
vh,
    LPMMTIME
pTime
   
);

The VC_GetStreamPos function requests a kernel-mode video capture driver to return the current position within the capture stream.

Parameters
vh
Handle to the kernel-mode driver, obtained from VC_OpenDevice.
pTime
Pointer to an MMTIME structure. (The MMTIME structure is described in the Win32 SDK.)
Return Value

Returns TRUE if the operation succeeds. Otherwise returns FALSE.

Comments

The VC_GetStreamPos function returns the time, in milliseconds, since VC_StreamStart was called, by filling in the MMTIME structure.

The VC_GetStreamPos function calls DeviceIoControl (described in the Win32 SDK) to send an IOCTL_VIDC_GET_POSITION control code to the specified kernel-mode driver. When a kernel-mode driver using VCKernel.lib receives this control code, its StreamGetPositionFunc function is called.