Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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(
[in] USHORT Type,
[in] PUCHAR Name,
[out] PIPX_SERVICE Service
)
{...}
Parameters
[in] Type
Specifies the type of the service being checked.
[in] Name
Specifies the name of the service being checked.
[out] 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 |
|---|---|
|
The service exists in the table. |
|
No such service exists, or the operation failed. Call GetLastError for more information about the failure. |
|
The operation succeeded, but no such service exists. |
|
The service type or name is invalid. |
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | None supported |
| Minimum supported server | Windows 2000 Server [desktop apps only] |
| Target Platform | Windows |
| Header | stm.h |