UNIT_CloseUnitDeviceObject (Windows CE 5.0)
The function permits a subunit driver to close and free references to the unit driver obtained in a previous call to UNIT_OpenUnitDeviceObject.
NTSTATUS UNIT_CloseUnitDeviceObject(PFILE_OBJECT UnitFileObject, PDEVICE_OBJECT UnitDeviceObject);
Parameters
- UnitFileObject
[in] PFILE_OBJECT obtained in a previous call to UNIT_OpenUnitDeviceObject. - UnitDeviceObject
[in] PDEVICE_OBJECT obtained in a previous call to UNIT_OpenUnitDeviceObject.
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
The inverse of UNIT_OpenUnitDeviceObject, this function closes the device object for the unit driver, which is located in the previous call and frees references to the objects.
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Avc_unit.h.
Link Library: Avc_unit.lib.
See Also
Send Feedback on this topic to the authors