PGET_SERVICE_COUNT callback function (stm.h)

The GetServiceCount function returns the number of services in the table.

Syntax

PGET_SERVICE_COUNT PgetServiceCount;

ULONG PgetServiceCount()
{...}

Parameters

This callback function has no parameters.

Return value

If the function succeeds, the return value is the number of services in the table.

If the function fails, the return value is one of the following error codes.

Value Description
NO_ERROR
Operation succeeded but no services are available.
0 (Zero)
No services are available in the table or the operation failed. Call GetLastError to obtain more information.
 
 

Requirements

Requirement Value
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

Service Table Management Functions