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.

72 lines
2.2 KiB

  1. /*===================================================================
  2. Microsoft IIS
  3. Microsoft Confidential.
  4. Copyright 1997 Microsoft Corporation. All Rights Reserved.
  5. Component: WAMREG
  6. File: wmrgexp.h
  7. Owner: leijin
  8. Note:
  9. ===================================================================*/
  10. #ifndef _WAMREG_EXPORT_H
  11. #define _WAMREG_EXPORT_H
  12. #ifndef _WAMREG_DLL_
  13. #define PACKMGR_LIBAPI __declspec(dllimport)
  14. #else
  15. #define PACKMGR_LIBAPI __declspec(dllexport)
  16. #endif
  17. #define DEFAULT_PACKAGENAME L"IIS In-Process Applications"
  18. #define APPCMD_NONE 0
  19. #define APPCMD_VERIFY 1
  20. #define APPCMD_GETSTATUS 2
  21. #define APPCMD_CREATE 3
  22. #define APPCMD_CREATEINPROC 4
  23. #define APPCMD_CREATEOUTPROC 5
  24. #define APPCMD_CHANGETOINPROC 6
  25. #define APPCMD_CHANGETOOUTPROC 7
  26. #define APPCMD_DELETE 8
  27. #define APPCMD_UNLOAD 9
  28. #define APPSTATUS_Error 0 // Error while getting status from W3SVC
  29. #define APPSTATUS_UnLoaded 1 // App is successfully found in W3SVC and unloaded.
  30. #define APPSTATUS_Running 2 // App is currently found in W3SVC and is running.
  31. #define APPSTATUS_Stopped 3 // App is found in W3SVC and stopped.
  32. #define APPSTATUS_NotFoundInW3SVC 4 // App is not found in w3svc.
  33. #define APPSTATUS_NOW3SVC 5 // W3SVC is not running.
  34. #define APPSTATUS_PAUSE 6 // App is in PAUSE state.(Halfway in DeleteRecoverable and Recover).
  35. //
  36. // Version String for WAMREG
  37. // Used for update applications in old WAMREG into new WAMREG formats.
  38. //
  39. enum VS_WAMREG {VS_K2Beta2, VS_K2Beta3};
  40. typedef HRESULT (*PFNServiceNotify)
  41. (
  42. LPCSTR szAppPath,
  43. const DWORD dwAction,
  44. DWORD* pdwResult
  45. );
  46. HRESULT PACKMGR_LIBAPI CreateIISPackage(void);
  47. HRESULT PACKMGR_LIBAPI DeleteIISPackage(void);
  48. HRESULT PACKMGR_LIBAPI WamReg_RegisterSinkNotify(PFNServiceNotify pfnW3ServiceSink);
  49. HRESULT PACKMGR_LIBAPI WamReg_UnRegisterSinkNotify(void);
  50. HRESULT PACKMGR_LIBAPI UpgradePackages(VS_WAMREG vs_new, VS_WAMREG vs_old);
  51. HRESULT
  52. PACKMGR_LIBAPI
  53. CreateCOMPlusApplication(
  54. LPCWSTR szMDPath,
  55. LPCWSTR szOOPPackageID,
  56. LPCWSTR szOOPWAMCLSID,
  57. BOOL * pfAppCreated
  58. );
  59. #endif // _WAMREG_EXPORT_H