Advertisement
FlyFar

DoubleAgentShared/Status.h

Jan 1st, 2024
725
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 2.27 KB | Cybersecurity | 0 0
  1. #pragma once
  2.  
  3. /* Macros ********************************************************************/
  4. #define DOUBLEAGENT_SUCCESS(status) (DOUBLEAGENT_STATUS_SUCCESS == (status))
  5. #define DOUBLEAGENT_FAILED(status) (FALSE == DOUBLEAGENT_SUCCESS((status)))
  6. #define DOUBLEAGENT_SET(status, value) ((status) = (value))
  7.  
  8. /* Types *********************************************************************/
  9. typedef enum _DOUBLEAGENT_STATUS
  10. {
  11.     DOUBLEAGENT_STATUS_INVALID_VALUE = -1,
  12.     DOUBLEAGENT_STATUS_SUCCESS,
  13.     DOUBLEAGENT_STATUS_DOUBLEAGENTDLL_PROCESS_CREATE_CREATEPROCESSW_FAILED,
  14.     DOUBLEAGENT_STATUS_DOUBLEAGENTDLL_PROCESS_CREATE_INVALID_PARAMS,
  15.     DOUBLEAGENT_STATUS_DOUBLEAGENTDLL_VERIFIERDLL_DLLMAINPROCESSVERIFIER_INVALID_PARAMS,
  16.     DOUBLEAGENT_STATUS_DOUBLEAGENT_OS_GETARCHITECTURE_INVALID_PARAMS,
  17.     DOUBLEAGENT_STATUS_DOUBLEAGENT_OS_GETARCHITECTURE_ISWOW64PROCESS_FAILED,
  18.     DOUBLEAGENT_STATUS_DOUBLEAGENT_PATH_COMBINE_HEAPALLOC_FAILED,
  19.     DOUBLEAGENT_STATUS_DOUBLEAGENT_PATH_COMBINE_INVALID_PARAMS,
  20.     DOUBLEAGENT_STATUS_DOUBLEAGENT_PATH_COMBINE_PATHCOMBINEW_FAILED,
  21.     DOUBLEAGENT_STATUS_DOUBLEAGENT_PATH_GETDIRECTORY_HEAPALLOC_FAILED,
  22.     DOUBLEAGENT_STATUS_DOUBLEAGENT_PATH_GETDIRECTORY_INVALID_PARAMS,
  23.     DOUBLEAGENT_STATUS_DOUBLEAGENT_PATH_GETDIRECTORY_PATHREMOVEFILESPECW_FAILED,
  24.     DOUBLEAGENT_STATUS_DOUBLEAGENT_VERIFIER_INSTALL_COPYFILEW_FAILED_X64,
  25.     DOUBLEAGENT_STATUS_DOUBLEAGENT_VERIFIER_INSTALL_COPYFILEW_FAILED_X86,
  26.     DOUBLEAGENT_STATUS_DOUBLEAGENT_VERIFIER_INSTALL_INVALID_PARAMS,
  27.     DOUBLEAGENT_STATUS_DOUBLEAGENT_VERIFIER_INSTALL_UNSUPPORTED_SWITCH_CASE,
  28.     DOUBLEAGENT_STATUS_DOUBLEAGENT_VERIFIER_REGISTER_REGOPENKEYEXW_FAILED_IFEO,
  29.     DOUBLEAGENT_STATUS_DOUBLEAGENT_VERIFIER_REGISTER_REGOPENKEYEXW_FAILED_TEMP_IFEO,
  30.     DOUBLEAGENT_STATUS_DOUBLEAGENT_VERIFIER_REGISTER_REGRENAMEKEY_FAILED,
  31.     DOUBLEAGENT_STATUS_DOUBLEAGENT_VERIFIER_REGISTER_REGSETKEYVALUEW_FAILED_GLOBALFLAG,
  32.     DOUBLEAGENT_STATUS_DOUBLEAGENT_VERIFIER_REGISTER_REGSETKEYVALUEW_FAILED_VERIFIERDLLS,
  33.     DOUBLEAGENT_STATUS_DOUBLEAGENT_VERIFIER_REPAIR_REGOPENKEYEXW_FAILED,
  34.     DOUBLEAGENT_STATUS_DOUBLEAGENT_VERIFIER_REPAIR_REGRENAMEKEY_FAILED,
  35.     DOUBLEAGENT_STATUS_DOUBLEAGENT_WMAIN_INVALID_ARGS_COUNT,
  36.     DOUBLEAGENT_STATUS_DOUBLEAGENT_WMAIN_UNSUPPORTED_ACTION,
  37.  
  38.     /* Must be last */
  39.     DOUBLEAGENT_STATUS_COUNT
  40. } DOUBLEAGENT_STATUS, *PDOUBLEAGENT_STATUS;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement