Time Limit

You can limit the duration of a capture operation by using the fLimitEnabled and wTimeLimit members of the CAPTUREPARMSRYJ.8W structure. The fLimitEnabled member indicates whether the capture operation is to be timed, while wTimeLimit specifies the maximum duration of the capture operation.

You can retrieve the values for fLimitEnabled and wTimeLimit by using the WM_CAP_GET_SEQUENCE_SETUP1GNHJI message (or the capCaptureGetSetup1A5QZ0N macro). You can enable a timer for the capture operation by specifying TRUE as the value of fLimitEnabled, or you can set the duration of the capture operation by specifying a value, in seconds, for wTimeLimit. After you set these members, send the updated CAPTUREPARMSRYJ.8W structure to the capture window by using the WM_CAP_SET_SEQUENCE_SETUPYGBQ.R message (or the capCaptureSetSetup115V26W macro). The default value of fLimitEnabled is FALSE.