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.

89 lines
3.3 KiB

  1. // CountDaily.h : Declaration of the CCountDaily
  2. [export]
  3. enum ServerLocation
  4. {
  5. Watson,
  6. Archive,
  7. };
  8. #pragma once
  9. #include "resource.h" // main symbols
  10. // ICountDaily
  11. [
  12. object,
  13. uuid("CEF1A8A8-F31A-4C4B-96EB-EF31CFDB40F5"),
  14. dual, helpstring("ICountDaily Interface"),
  15. pointer_default(unique)
  16. ]
  17. __interface ICountDaily : IDispatch
  18. {
  19. [id(1), helpstring("method GetDailyCount")] HRESULT GetDailyCount([in] DATE dDate, [out,retval] LONG* iCount);
  20. [id(2), helpstring("method GetDailyCountADO")] HRESULT GetDailyCountADO([in] DATE dDate, [out,retval] LONG* iCount);
  21. [id(3), helpstring("method ReportDailyBuckets")] HRESULT ReportDailyBuckets([in] DATE dDate, [out,retval] IDispatch** p_Rs);
  22. [id(4), helpstring("method GetFileCount")] HRESULT GetFileCount([in] ServerLocation eServer, [in] BSTR b_Location, [in] DATE d_Date, [out,retval] LONG* iCount);
  23. [id(5), helpstring("method GetDailyAnon")] HRESULT GetDailyAnon([in] DATE dDate, [out,retval] LONG* iCount);
  24. [id(6), helpstring("method GetSpecificSolutions")] HRESULT GetSpecificSolutions([in] DATE dDate, [out,retval] LONG* iCount);
  25. [id(7), helpstring("method GetGeneralSolutions")] HRESULT GetGeneralSolutions([in] DATE dDate, [out,retval] LONG* iCount);
  26. [id(8), helpstring("method GetStopCodeSolutions")] HRESULT GetStopCodeSolutions([in] DATE dDate, [out,retval] LONG* iCount);
  27. [id(9), helpstring("method GetFileMiniCount")] HRESULT GetFileMiniCount([in] ServerLocation eServer, [in] BSTR b_Location, [in] DATE d_Date, [out,retval] LONG* iCount);
  28. [id(10), helpstring("method GetIncompleteUploads")] HRESULT GetIncompleteUploads([in] DATE dDate, [out,retval] LONG* iCount);
  29. [id(11), helpstring("method GetManualUploads")] HRESULT GetManualUploads([in] DATE dDate, [out,retval] LONG* iCount);
  30. [id(12), helpstring("method GetAutoUploads")] HRESULT GetAutoUploads([in] DATE dDate, [out,retval] LONG* iCount);
  31. [id(13), helpstring("method GetTest")] HRESULT GetTest([in] ServerLocation eServer, [in] BSTR b_Location, [in] DATE d_Date, [out,retval] LONG* iCount);
  32. };
  33. // CCountDaily
  34. [
  35. coclass,
  36. threading("apartment"),
  37. vi_progid("OCAData.CountDaily"),
  38. progid("OCAData.CountDaily.1"),
  39. version(1.0),
  40. uuid("1614E060-0196-4771-AD9B-FEA1A6778B59"),
  41. helpstring("CountDaily Class")
  42. ]
  43. class ATL_NO_VTABLE CCountDaily :
  44. public ICountDaily
  45. {
  46. public:
  47. CCountDaily()
  48. {
  49. }
  50. DECLARE_PROTECT_FINAL_CONSTRUCT()
  51. HRESULT FinalConstruct()
  52. {
  53. return S_OK;
  54. }
  55. void FinalRelease()
  56. {
  57. }
  58. public:
  59. STDMETHOD(GetDailyCount)(DATE dDate, LONG* iCount);
  60. STDMETHOD(GetDailyCountADO)(DATE dDate, LONG* iCount);
  61. STDMETHOD(ReportDailyBuckets)(DATE dDate, IDispatch** p_Rs);
  62. STDMETHOD(GetFileCount)(ServerLocation eServer, BSTR b_Location, DATE d_Date, LONG* iCount);
  63. STDMETHOD(GetDailyAnon)(DATE dDate, LONG* iCount);
  64. STDMETHOD(GetSpecificSolutions)(DATE dDate, LONG* iCount);
  65. STDMETHOD(GetGeneralSolutions)(DATE dDate, LONG* iCount);
  66. STDMETHOD(GetStopCodeSolutions)(DATE dDate, LONG* iCount);
  67. STDMETHOD(GetFileMiniCount)(ServerLocation eServer, BSTR b_Location, DATE d_Date, LONG* iCount);
  68. STDMETHOD(GetIncompleteUploads)(DATE dDate, LONG* iCount);
  69. STDMETHOD(GetManualUploads)(DATE dDate, LONG* iCount);
  70. STDMETHOD(GetAutoUploads)(DATE dDate, LONG* iCount);
  71. STDMETHOD(GetTest)(ServerLocation eServer, BSTR b_Location, DATE d_Date, LONG* iCount);
  72. };