PIS_SERVICE callback function (stm.h)

The IsService function checks whether a service of specified type and name exists in the service table, and optionally returns the service's parameters.

Syntax

PIS_SERVICE PisService;

BOOL PisService(
  USHORT Type,
  PUCHAR Name,
  PIPX_SERVICE Service
)
{...}

Parameters

Type

Specifies the type of the service being checked.

Name

Specifies the name of the service being checked.

Service

Pointer to a structure in which to receive the information about the matching service (if any).

Return value

The IsService function returns one of the following values.

Value Description
TRUE
The service exists in the table.
FALSE
No such service exists, or the operation failed. Call GetLastError for more information about the failure.
NO_ERROR
The operation succeeded, but no such service exists.
ERROR_INVALID_PARAMETER
The service type or name is invalid.
 
 

Requirements

   
Minimum supported client None supported
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header stm.h

See also

GetLastError

IPX Service Table Management

IPX_SERVICE

Service Table Management Functions