![]() |
NSLAddServiceToServicesList |
||||
Header: | NSL.h | Carbon status: | Supported | |
Adds the name of a service to a services list.
NSLError NSLAddServiceToServicesList ( NSLServicesList serviceList, NSLServiceType serviceType );
On input, a services list previously created by calling NSLMakeNewServicesList.
On input, a service type that is to be added to the services list.
If the value of NSLError.theErr is noErr, the service was added to the list. Other possible values are kNSLNotInitialized, kNSLBadServiceTypeErr, and kNSLNullListPtr.
The NSLAddServicesToServiceList function adds the name of the specified service to a services list.
You must create serviceList by calling NSLMakeNewServicesList before you call NSLAddServicesToServicesList.
Call NSLAddServiceToServicesList for each service that you want to add to the services list.
© 2000 Apple Computer, Inc. (Last Updated 7/13/2000)