Share via


ServiceUnbindPorts

This function closes all ports that are listening on the super server and are associated with the specified device.

BOOL ServiceUnbindPorts(
  HANDLE hService
);

Parameters

  • hService
    [in] Handle to the service instance whose associated super service sockets must be unbound.

Return Values

A nonzero value indicates success. A value of zero indicates failure. To get extended error information, call GetLastError.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Service.h.
Link Library: Coredll.lib.

See Also

Services.exe

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.