videoSetPortNum(3mms) — Subroutines
Name
videoSetPortNum --- Set current port number
Syntax
#include <mme/mme_api.h>
MMRESULT videoSetPortNum(HVIDEO hVideo,
DWORD dwPortNum);
Arguments
HVIDEO hVideo
Specifies a handle to a video device channel.
DWORD dwPortNum
Specifies the port number. This value can be 1 or 2.
Description
The videoSetPortNum function sets the current port number. The port number value specifies which device connector and/or connector configuration is to be used by the device. This function is not supported for playback operations because images are output to both ports. See the Multimedia Services for Digital UNIX Programmer’s Guide for specific device details.
The videoSetPortNum function has to be called before the videoConfigure call. This configures the port used on the channel to take effect on subsequent video capture operations.
Extensions
The videoSetPortNum function is a Digital extension to the Microsoft multimedia API specification.
Return Values
Returns DV_ERR_OK if the function is successful; otherwise, it returns one of the following error codes:
DV_ERR_INVALHANDLE@T{ The specified device handle is invalid. T} DV_ERR_PARAM1@T{ The specified parameter is invalid. T} DV_ERR_NOTSUPPORTED@T{ The function is not supported. T}