// 61883.h
typedef struct _CMP_GET_PLUG_HANDLE {
IN ULONG PlugNum;
IN CMP_PLUG_TYPE Type;
OUT HANDLE hPlug;
} CMP_GET_PLUG_HANDLE, *PCMP_GET_PLUG_HANDLE;
View the official Windows Driver Kit DDI referenceNo description available.
This structure is used in getting the handle of a plug. The request retrieves a unique handle associated with an input or output plug. The plug handle is required for all operations on the plug. A driver uses a plug handle to get the state of a plug, modify plug settings, or delete a plug. A driver can delete only plugs it has previously created.
PlugNumThe number of the plug whose handle was returned by the Av61883_CreatePlug request that created the plug.
TypeThe type of the plug. This can be CMP_PlugOut for an output plug, or CMP_PlugIn for an input plug.
hPlugOn output, a handle to the plug specified with PlugNum and Type.
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.