GetServiceFromID

[This is preliminary documentation and subject to change.]

The GetServiceFromID function returns a service given its object identifier.

BOOL GetServiceFromID (
  IN ULONG            ServiceID,
  OUT PIPX_SERVICE    Service
  );
 

Parameters

ServiceID
The unique identifier of the service. The identifier will be in the range: 0xC0000000 - 0xCFFFFFFF.
Service
Address of an IPX_SERVICE structure to hold the returned service information upon successful execution.

Return Value

TRUE
The service exists in the table. The service information is returned in the structure pointed to by Service.
FALSE
No service exists, or the operation failed. Call GetLastError to obtain more information:
NO_ERROR
The operation succeeded but no such service exists.
ERROR_INVALID_PARAMETER
The service identifier is 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, IPX_SERVICE