The DVM_GETERRORTEXT message requests a user-mode video capture driver to return a text string associated with an error code.
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.
A client sends the DVM_GETERRORTEXT message by calling the driver’s DriverProc entry point, passing the specified parameter values. Applications can send this message by calling the videoGetErrorText function, which is described in the Video for Windows Development Kit.
You can define customized error codes for a video capture driver. If you do, you need to also define a text string for each error code and place the strings in a resource (.rc) file. Clients use the DVM_GETERRORTEXT message to retrieve the text string for a specified custom error code.
Drivers should call the LoadString function, described in the Win32 SDK, to retrieve a string. This function truncates the string if the supplied buffer is too small.