Important: The information in this document is obsolete and should not be used for new development.
OTDeleteNameByID
Removes a previously registered name as specified by its name ID.C INTERFACE
OSStatus OTDeleteNameByID (MapperRef ref, OTNameID nameID);C++ INTERFACE
TMapper::DeleteName(OTNameID nameID);PARAMETERS
ref
- A mapper reference.
id
- The name ID, a 32-bit value specifying a number that identifies the registered name.
- function result
- An error code. See Appendix B for more information.
DISCUSSION
If the mapper protocol defined using theconfig
parameter to theOTOpenMapper
orOTAsyncOpenMapper
functions supports dynamic name and address registration, you can use theOTDeleteNameByID
function to delete a registered name.If the mapper is in synchronous mode, the function does not return until the operation is complete. If the mapper is in asynchronous mode, the
OTDeleteNameByID
function returns immediately. When the operation completes execution, the mapper provider calls the notifier function, passingT_DELNAMECOMPLETE
for thecode
parameter, and thenameID
parameter in thecookie
parameter. For more information on notifier functions and event codes see "Using Notifier Functions" and "Event Codes".The name ID that you delete using the
OTDeleteNameByID
function is returned in thereply
parameter to theOTRegisterName
function.