ServiceName Property

A name for a service. When set, it initiates a search for the corresponding port number and protocol.

Syntax

ANSI (Cross Platform)
char* GetServiceName();
int SetServiceName(const char* lpszServiceName); Unicode (Windows) LPWSTR GetServiceName();
INT SetServiceName(LPCWSTR lpszServiceName);
@property (nonatomic,readwrite,assign,getter=serviceName,setter=setServiceName:) NSString* serviceName;
- (NSString*)serviceName;
- (void)setServiceName:(NSString*)newServiceName;
#define PID_IPINFO_SERVICENAME 41

IPWORKS_EXTERNAL void* IPWORKS_CALL IPWorks_IPInfo_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKS_EXTERNAL int IPWORKS_CALL IPWorks_IPInfo_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

""

Remarks

This property contains the name of the specified service located at ServicePort.

If this property is set to a service name, a search is initiated for the corresponding ServicePort and other information related to the service (if any).

The RequestComplete event is fired when the search is complete. RequestId identifies the pending request.

NOTE: This functionality is only available in Windows.

Data Type

String

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 C++ Edition - Version 20.0 [Build 8307]