UNIT_FreeLocalPlugCB (Windows CE 5.0)

Send Feedback

This function, provided by a subunit driver, is called by the unit filter driver when an outside node has requested that a subunit disconnect itself and free a local serial bus plug.

NTSTATUS (*UNIT_FreeLocalPlugCB)(PVOID Context, HANDLE Plug);

Parameters

  • Context
    [in] Opaque value that the subunit driver provided when utilizing the UNIT_CMD_REGISTER_SUBUNIT command.
  • Plug
    [in] HANDLE value of the local plug to free.

Return Values

If the operation was successful, the subunit should return STATUS_SUCCESS. Otherwise, an appropriate error code should be returned. Any error code will cause the request from the external device to be rejected.

Remarks

This function is provided to permit the system to be able to process incoming DISCONNECT_AV unit commands. These commands are directed at the unit, but can refer to individual subunits. When that is the case, the subunit must be responsible for acting, and this callback is provided for that instance.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Avc_unit.h.
Link Library: Avc_unit.lib.

See Also

UNIT_AllocateLocalPlugCB

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.