UPSStop function (upssvc.h)

The UPSStop function causes a UPS minidriver to stop monitoring its UPS unit.

Syntax

void UPSStop();

Return value

None

Remarks

The UPSStop function must:

  • Cancel all waiting calls to UPSWaitForStateChange.
  • Stop monitoring the UPS unit.
  • Close and release the UPS unit's COM port.
After UPSStop returns, the only function the UPS service can call is UPSInit.

Requirements

Requirement Value
Target Platform Desktop
Header upssvc.h (include Upssvc.h)

See also

UPSInit