GetServiceID

[This is preliminary documentation and subject to change.]

The GetServiceID returns the unique identifier of an IPX service (object identifier).

BOOL GetServiceID (
  IN USHORT    Type,
  IN PUCHAR    Name,
  OUT PULONG   ServiceID
  );
 

Parameters

Type
Supplies the type of the service for which the identifierwill be returned.
Name
Name of service for which the identifierwill be returned.
ServiceID
Address of memory to hold the unique identifier of the service. This identifier will be in the range: 0xC0000000 - 0xCFFFFFFF.

Return Values

TRUE
The service exists in the table. The identifier is returned in the memory pointed to by ServiceID.
FALSE
No such service exists, or the operation failed. Call GetLastError to obtain more information:
NO_ERROR
Operation succeeded but no such service exists.
ERROR_INVALID_PARAMETER
The service type, service name, or both are invalid.

QuickInfo

  Windows NT: Use version 5.0 and later.
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in user-defined.
  Import Library: user-defined.

See Also

GetLastError