Share via


IUPnPRegistrar::UnregisterDevice (Windows CE 5.0)

Send Feedback

This method unregisters the device from the device host framework. It allows the device to be temporarily or permanently unregistered.

UnregisterDevice(BSTRbstrDeviceIdentifier,BOOLfPermanent);

Parameters

Return Values

If the method succeeds, the return value is S_OK. Otherwise, the method returns one of the COM error codes that are defined in Winerror.h.

Remarks

This method disconnects a device from the device host if the fPermanent parameter is set to TRUE. This method permanently deletes the device. If the flag is set to FALSE, this method continues to map the device identifier with the UDN of the device that was generated by the device host.

Requirements

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

See Also

IUpnPRegistrar::RegisterDevice | IUPnPRegistrar::RegisterRunningDevice

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.