Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.8 KiB

  1. //-----------------------------------------------------------------------------
  2. // File: actiondef.h
  3. //
  4. // Copyright: Copyright (c) Microsoft Corporation
  5. //
  6. // Contents: Exported Defines and other structures
  7. //
  8. // Comments: None.
  9. //
  10. //-----------------------------------------------------------------------------
  11. #ifndef _ACTIONDEF_H_
  12. #define _ACTIONDEF_H_
  13. enum _eActions
  14. {
  15. eERR_ActionNotDefined = 0,
  16. eConfigDriver,
  17. eConfigDSN,
  18. eRegSvr,
  19. eConfigSysDSN,
  20. eInstallDriver,
  21. eInstallTranslator,
  22. eRegMDACVersion,
  23. eInstallDrvrMgr,
  24. eSetFileDSNDir,
  25. eRegW2KMigration,
  26. eUnRegW2KMigration,
  27. eCheckW2KMigrationVer,
  28. eApplyW2KExceptionPack,
  29. eInstallW2KMigrationPack,
  30. eInstallMillenSfpCatalog,
  31. eRegDataFactory,
  32. eRegTLB
  33. } eActions;
  34. struct _stAction
  35. {
  36. enum eActions Action;
  37. char* szActionName;
  38. char* szarg1;
  39. char* szarg2;
  40. char* szargs;
  41. struct _stAction* pstNextAction;
  42. };
  43. //Custom HRESULT's
  44. #define FACILITY_ODBCCONF_BIT 0x0100000
  45. //W2K Migration Action HR's
  46. #define S_VERNOTREG _HRESULT_TYPEDEF_(0x01000000L)
  47. #define S_VERNEWER _HRESULT_TYPEDEF_(0x01000001L)
  48. #define S_VEROLDER _HRESULT_TYPEDEF_(0x01000002L)
  49. #define S_VERSAME _HRESULT_TYPEDEF_(0x01000003L)
  50. #define S_TIMEOUT _HRESULT_TYPEDEF_(0x01000004L)
  51. #define S_NOTWIN9X _HRESULT_TYPEDEF_(0x01000005L)
  52. //Pointers to DLL functions
  53. typedef HRESULT (WINAPI *pfnExecuteAction)(struct _stAction*, HRESULT*, char*);
  54. typedef HRESULT (WINAPI *pfnSetActionEnum)(char* , enum eAction*);
  55. typedef HRESULT (WINAPI *pfnSetActionName)(enum eAction, char*, long);
  56. typedef HRESULT (WINAPI *pfnSetSilent)(BOOL);
  57. typedef HRESULT (WINAPI *pfnSetActionLogFile)(char*);
  58. typedef HRESULT (WINAPI *pfnSetActionLogModeSz)(char*);
  59. typedef HRESULT (WINAPI *pfnSetActionLogMode)(enum eLogMode);
  60. #endif