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.

212 lines
4.4 KiB

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name :
  4. colog.hxx
  5. Abstract:
  6. COM stuff
  7. Author:
  8. Johnson Apacible (JohnsonA) 01-Apr-1997
  9. --*/
  10. #ifndef _COLOG_HXX_
  11. #define _COLOG_HXX_
  12. class CINETLOGSrvFactory : public IClassFactory {
  13. public:
  14. CINETLOGSrvFactory();
  15. ~CINETLOGSrvFactory();
  16. HRESULT _stdcall
  17. QueryInterface(REFIID riid, void** ppObject);
  18. ULONG _stdcall
  19. AddRef();
  20. ULONG _stdcall
  21. Release();
  22. HRESULT _stdcall
  23. CreateInstance(IUnknown *pUnkOuter, REFIID riid,
  24. void ** pObject);
  25. HRESULT _stdcall
  26. LockServer(BOOL fLock);
  27. public:
  28. CLSID m_ClsId;
  29. private:
  30. LONG m_dwRefCount;
  31. };
  32. class CInetLogInformation : public IInetLogInformation {
  33. public:
  34. CInetLogInformation();
  35. ~CInetLogInformation();
  36. public:
  37. HRESULT STDMETHODCALLTYPE
  38. QueryInterface(
  39. REFIID riid,
  40. VOID **ppObject
  41. );
  42. ULONG STDMETHODCALLTYPE AddRef( );
  43. ULONG STDMETHODCALLTYPE Release( );
  44. LPSTR STDMETHODCALLTYPE
  45. GetSiteName(
  46. IN PCHAR pszSiteName,
  47. IN PDWORD pcbSize
  48. );
  49. LPSTR STDMETHODCALLTYPE
  50. GetComputerName(
  51. IN PCHAR pszComputerName,
  52. IN PDWORD pcbSize
  53. );
  54. LPSTR STDMETHODCALLTYPE
  55. GetClientHostName(
  56. IN PCHAR pszClientHostName,
  57. IN PDWORD pcbSize
  58. );
  59. LPSTR STDMETHODCALLTYPE
  60. GetClientUserName(
  61. IN PCHAR pszClientUserName,
  62. IN PDWORD pcbSize
  63. );
  64. LPSTR STDMETHODCALLTYPE
  65. GetServerAddress(
  66. IN PCHAR pszServerAddress,
  67. IN PDWORD pcbSize
  68. );
  69. LPSTR STDMETHODCALLTYPE
  70. GetOperation(
  71. IN PCHAR pszOperation,
  72. IN PDWORD pcbSize
  73. );
  74. LPSTR STDMETHODCALLTYPE
  75. GetTarget(
  76. IN PCHAR pszTarget,
  77. IN PDWORD pcbSize
  78. );
  79. LPSTR STDMETHODCALLTYPE
  80. GetParameters(
  81. IN PCHAR pszParameters,
  82. IN PDWORD pcbSize
  83. );
  84. LPSTR STDMETHODCALLTYPE
  85. GetExtraHTTPHeaders(
  86. IN PCHAR pszHTTPHeaders,
  87. IN PDWORD pcbSize
  88. );
  89. DWORD STDMETHODCALLTYPE
  90. GetTimeForProcessing(
  91. VOID
  92. );
  93. DWORD STDMETHODCALLTYPE
  94. GetBytesSent(
  95. VOID
  96. );
  97. DWORD STDMETHODCALLTYPE
  98. GetBytesRecvd(
  99. VOID
  100. );
  101. DWORD STDMETHODCALLTYPE
  102. GetWin32Status(
  103. VOID
  104. );
  105. DWORD STDMETHODCALLTYPE
  106. GetProtocolStatus(
  107. VOID
  108. );
  109. DWORD STDMETHODCALLTYPE
  110. GetPortNumber(
  111. VOID
  112. );
  113. LPSTR STDMETHODCALLTYPE
  114. GetVersionString(
  115. IN PCHAR pszVersionString,
  116. IN PDWORD pcbSize
  117. );
  118. VOID STDMETHODCALLTYPE
  119. CanonicalizeLogRecord(
  120. IN PINETLOG_INFORMATION pInetLogRecord,
  121. IN LPCSTR pszSiteName,
  122. IN LPCSTR pszComputerName,
  123. IN BOOL fDefault
  124. );
  125. private:
  126. CHAR m_szSiteName[64];
  127. CHAR m_szComputerName[64];
  128. PCHAR m_szServerAddress;
  129. PCHAR m_szClientAddress;
  130. PCHAR m_szUserName;
  131. PCHAR m_szOperation;
  132. PCHAR m_szTarget;
  133. PCHAR m_szParameters;
  134. PCHAR m_szHTTPHeaders;
  135. PCHAR m_szVersion;
  136. DWORD m_cbSiteName;
  137. DWORD m_cbComputerName;
  138. DWORD m_cbServerAddress;
  139. DWORD m_cbClientAddress;
  140. DWORD m_cbUserName;
  141. DWORD m_cbOperation;
  142. DWORD m_cbTarget;
  143. DWORD m_cbParameters;
  144. DWORD m_cbHTTPHeaders;
  145. DWORD m_cbVersion;
  146. DWORD m_dwPort;
  147. DWORD m_msProcessingTime;
  148. DWORD m_dwWin32Status;
  149. DWORD m_dwProtocolStatus;
  150. DWORD m_bytesSent;
  151. DWORD m_bytesRecv;
  152. LONG m_refCount;
  153. };
  154. #endif // _COLOG_HXX