FH_GetComputersList

FH_GetComputersList

Gets the computers IDs list in the account (all of them or only of the specified type) in JSON array format.

int WINAPI FH_GetComputersList(
    JSON_VAR jsonFilter,
    JSON_VAR *pJsonResult);
  • jsonFilter can take the following values:
    • “all” – all computers in the account
    • “online” – online computers
    • “offline” – offline computers
    • “local” – local computer
    • “remote” – non-local computers (combined values can be used: “online-remote”, “offline-remote”)
  • pJsonResult – a pointer to the variable where the string with JSON array of[id_comp1, id_comp2, …] is put.

If no computers of the specified type are available, array will be empty:[].
The returned value of the function is the number of elements in JsonResult.