CMP_CONNECT_VER2 - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// 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 reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-61883-_cmp_connect_ver2)

_CMP_CONNECT_VER2 structure

Description

This structure contains information for a connection request. The request attempts to make a connection to a plug control register on the local host.

Members

hOutputPlug

On input, a handle to the output plug to use for the connection. If hOutputPlug is NULL, the connection is for input only.

hInputPlug

On input, handle to the input plug to use for the connection. If hInputPlug is NULL, the connection is for output only.

Type

On input, the type of the requested connection.

The type of connection to make. Can be one of the following:

CMP_Broadcast

A broadcast connection.

CMP_PointToPoint

A connection between a single output plug and one or more input plugs.

Format

The requested data format.

On input, a pointer to a CIP_DATA_FORMAT_VER2 structure that specifies the format of the connection.

hConnect

On output, the handle for the created connection.

Remarks

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.

See also

AV_61883_REQUEST