IADsComputerOperations::Shutdown method

The IADsComputerOperations::Shutdown method causes a computer under ADSI control to execute the shutdown operation with an optional reboot.

Syntax

HRESULT Shutdown(
  VARIANT_BOOL bReboot
);

Parameters

bReboot

If TRUE, then reboot the computer after the shutdown is complete.

Return Value

This method supports the standard return values, as well as the following:

For other return values, see ADSI Error Codes.

Requirements

   
Windows version Windows Vista Windows Server 2008
Target Platform Windows
Header iads.h
DLL Activeds.dll

See Also

IADsComputer

IADsComputerOperations