The DVM_GETVIDEOAPIVER message requests a user-mode video capture driver to return the version of the video capture API used by the driver.
The driver should return DV_ERR_OK if the operation succeeds. Otherwise, it should return one of the DV_ERR error codes defined in msvideo.h. Custom error codes are also allowed (see DVM_GETERRORTEXT).
A client sends the DVM_GETVIDEOAPIVER message by calling the driver’s DriverProc entry point, passing the specified parameter values. Applications can send this message by calling the videoMessage function, which is described in the Video for Windows Development Kit.
The driver should respond to this message by returning the VIDEOAPIVERSION constant in the address pointed to by the lParam1 parameter. The VIDEOAPIVERSION constant is defined in msviddrv.h.