summaryrefslogtreecommitdiffstats
path: root/public/sdk/inc/mfc40/afxisapi.inl
diff options
context:
space:
mode:
authorAdam <you@example.com>2020-05-17 05:51:50 +0200
committerAdam <you@example.com>2020-05-17 05:51:50 +0200
commite611b132f9b8abe35b362e5870b74bce94a1e58e (patch)
treea5781d2ec0e085eeca33cf350cf878f2efea6fe5 /public/sdk/inc/mfc40/afxisapi.inl
downloadNT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip
Diffstat (limited to 'public/sdk/inc/mfc40/afxisapi.inl')
-rw-r--r--public/sdk/inc/mfc40/afxisapi.inl122
1 files changed, 122 insertions, 0 deletions
diff --git a/public/sdk/inc/mfc40/afxisapi.inl b/public/sdk/inc/mfc40/afxisapi.inl
new file mode 100644
index 000000000..a5c8ebb47
--- /dev/null
+++ b/public/sdk/inc/mfc40/afxisapi.inl
@@ -0,0 +1,122 @@
+// This is a part of the Microsoft Foundation Classes C++ library.
+// Copyright (C) 1995 Microsoft Corporation
+// All rights reserved.
+//
+// This source code is only intended as a supplement to the
+// Microsoft Foundation Classes Reference and related
+// electronic documentation provided with the library.
+// See these sources for detailed information regarding the
+// Microsoft Foundation Classes product.
+
+// Inlines for AFXISAPI.H
+
+#ifdef _AFXISAPI_INLINE
+
+_AFXISAPI_INLINE CHttpServerContext::CHttpServerContext(EXTENSION_CONTROL_BLOCK* pECB)
+#ifdef _DEBUG
+ : m_pECB(pECB), m_pStream(NULL), m_dwEndOfHeaders(0), m_dwOldEndOfHeaders(0)
+#else
+ : m_pECB(pECB), m_pStream(NULL), m_dwEndOfHeaders(0)
+#endif
+ { }
+
+_AFXISAPI_INLINE CHttpServerContext::~CHttpServerContext()
+ { if (m_pStream != NULL) delete m_pStream; }
+
+_AFXISAPI_INLINE CHttpServerContext& CHttpServerContext::operator<<(double d)
+ { ISAPIASSERT(m_pStream != NULL);
+ if (m_pStream != NULL) *m_pStream << d;
+ return *this; }
+
+_AFXISAPI_INLINE CHttpServerContext& CHttpServerContext::operator<<(float f)
+ { ISAPIASSERT(m_pStream != NULL);
+ if (m_pStream != NULL) *m_pStream << f;
+ return *this; }
+
+_AFXISAPI_INLINE CHttpServerContext& CHttpServerContext::operator<<(long int dw)
+ { ISAPIASSERT(m_pStream != NULL);
+ if (m_pStream != NULL) *m_pStream << dw;
+ return *this; }
+
+_AFXISAPI_INLINE CHttpServerContext& CHttpServerContext::operator<<(short int w)
+ { ISAPIASSERT(m_pStream != NULL);
+ if (m_pStream != NULL) *m_pStream << w;
+ return *this; }
+
+_AFXISAPI_INLINE CHttpServerContext& CHttpServerContext::operator<<(CHtmlStream& stream)
+ { ISAPIASSERT(m_pStream != NULL);
+ if (m_pStream != NULL) *m_pStream << stream;
+ return *this; }
+
+_AFXISAPI_INLINE CHttpServerContext& CHttpServerContext::operator<<(LPCTSTR psz)
+ { ISAPIASSERT(m_pStream != NULL && psz != NULL);
+ if (m_pStream != NULL && psz != NULL) *m_pStream << psz;
+ return *this; }
+
+
+_AFXISAPI_INLINE BOOL CHttpServerContext::GetServerVariable(LPTSTR lpszVariableName,
+ LPVOID lpvBuffer, LPDWORD lpdwSize)
+ {
+ return m_pECB->GetServerVariable(m_pECB->ConnID,
+ lpszVariableName, lpvBuffer, lpdwSize);
+ }
+
+_AFXISAPI_INLINE BOOL CHttpServerContext::WriteClient(LPVOID pBuffer, LPDWORD lpdwBytes,
+ DWORD dwReserved /* = 0 */)
+ {
+ return m_pECB->WriteClient(m_pECB->ConnID, pBuffer,
+ lpdwBytes, dwReserved);
+ }
+
+_AFXISAPI_INLINE BOOL CHttpServerContext::ReadClient(LPVOID lpvBuffer, LPDWORD lpdwSize)
+ {
+ return m_pECB->ReadClient(m_pECB->ConnID, lpvBuffer, lpdwSize);
+ }
+
+_AFXISAPI_INLINE BOOL CHttpServerContext::ServerSupportFunction(DWORD dwHSERRequest,
+ LPVOID lpvBuffer, LPDWORD lpdwSize, LPDWORD lpdwDataType)
+ {
+ return m_pECB->ServerSupportFunction(m_pECB->ConnID, dwHSERRequest,
+ lpvBuffer, lpdwSize, lpdwDataType);
+ }
+
+
+_AFXISAPI_INLINE DWORD CHtmlStream::GetStreamSize() const
+ { return m_nStreamSize; }
+
+
+_AFXISAPI_INLINE CHttpFilterContext::CHttpFilterContext(PHTTP_FILTER_CONTEXT pCtx)
+ : m_pFC(pCtx)
+ { }
+
+_AFXISAPI_INLINE BOOL CHttpFilterContext::GetServerVariable(LPTSTR lpszVariableName,
+ LPVOID lpvBuffer, LPDWORD lpdwSize)
+ {
+ return m_pFC->GetServerVariable(m_pFC, lpszVariableName, lpvBuffer, lpdwSize);
+ }
+_AFXISAPI_INLINE BOOL CHttpFilterContext::AddResponseHeaders(LPTSTR lpszHeaders,
+ DWORD dwReserved /* = 0 */)
+ {
+ return m_pFC->AddResponseHeaders(m_pFC, lpszHeaders, dwReserved);
+ }
+_AFXISAPI_INLINE BOOL CHttpFilterContext::WriteClient(LPVOID lpvBuffer,
+ LPDWORD lpdwBytes, DWORD dwReserved /* = 0 */)
+ {
+ return m_pFC->WriteClient(m_pFC, lpvBuffer, lpdwBytes, dwReserved);
+ }
+_AFXISAPI_INLINE LPVOID CHttpFilterContext::AllocMem(DWORD cbSize,
+ DWORD dwReserved /* = 0 */)
+ {
+ return m_pFC->AllocMem(m_pFC, cbSize, dwReserved);
+ }
+_AFXISAPI_INLINE BOOL CHttpFilterContext::ServerSupportFunction(enum SF_REQ_TYPE sfReq,
+ LPVOID lpvBuffer, LPDWORD lpdwSize, LPDWORD lpdwDataType)
+ {
+//WINBUG: HTTPFLT.H has the last two params as type DWORD
+ return m_pFC->ServerSupportFunction(m_pFC, sfReq, lpvBuffer,
+ (DWORD) lpdwSize, (DWORD) lpdwDataType);
+ }
+
+
+#endif // _AFXISAPI_INLINE
+