The Everything_IsAdmin function checks if Everything is running as administrator or as a standard user.
BOOL Everything_IsAdmin(void);
No parameters.
The function returns non-zero if the Everything is running as an administrator.
The function returns 0 Everything is running as a standard user or if an error occurred. To get extended error information, call Everything_GetLastError
Error code | Meaning |
---|---|
EVERYTHING_OK | Everything is running as a standard user. |
EVERYTHING_ERROR_IPC | Please make sure the Everything search client is running in the background. |
BOOL isAdmin;
isAdmin = Everything_IsAdmin();
Requires Everything 1.4.1 or later.