// 61883.h
typedef struct _CMP_CONNECT_VER2 {
IN HANDLE hOutputPlug;
IN HANDLE hInputPlug;
IN CMP_CONNECT_TYPE Type;
IN CIP_DATA_FORMAT_VER2 Format;
OUT HANDLE hConnect;
} CMP_CONNECT_VER2, *PCMP_CONNECT_VER2;
View the official Windows Driver Kit DDI referenceNo description available.
This structure contains information for a connection request. The request attempts to make a connection to a plug control register on the local host.
hOutputPlugOn input, a handle to the output plug to use for the connection. If hOutputPlug is NULL, the connection is for input only.
hInputPlugOn input, handle to the input plug to use for the connection. If hInputPlug is NULL, the connection is for output only.
TypeOn input, the type of the requested connection.
The type of connection to make. Can be one of the following:
A broadcast connection.
A connection between a single output plug and one or more input plugs.
FormatThe requested data format.
On input, a pointer to a CIP_DATA_FORMAT_VER2 structure that specifies the format of the connection.
hConnectOn output, the handle for the created connection.
If successful, the IEC-61883 protocol driver sets Irp->IoStatus.Status to STATUS_SUCCESS.
If an incorrect parameter is passed in, the protocol driver sets Irp->IoStatus.Status to STATUS_INVALID_PARAMETER.
If the protocol driver is unable to allocate resources, it sets Irp->IoStatus.Status to STATUS_INSUFFICIENT_RESOURCES.