Logouts the computer from the user’s account.

int WINAPI FH_LogoutComputerAsync(
    ID_VAR idComp,
    int timeoutMs);


  • idComp – the computer’s ID or alias for “local”
  • timeoutMs – timeout. By default equals to –1.

The returned value is the ID of the invoked command or 0 in case the command cannot be executed.
The result of the command execution is returned by command_result event.

The error codes upon the command completion:

“bad_node” – the computer with such ID does not exist or is not in the user’s account.