Source code of Windows XP (NT5)
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.

74 lines
2.3 KiB

  1. /*--
  2. Copyright (c) 1995-1998 Microsoft Corporation
  3. Module Name: asp.h
  4. Author: John Spaith
  5. Abstract: ASP data block definition
  6. --*/
  7. BOOL InitASP(SCRIPT_LANG *psl, UINT *plCodepage, LCID *plcid);
  8. // struct used to pass data between httpd and ASP.dll, like extension control block
  9. typedef struct _ASP_CONTROL_BLOCK {
  10. DWORD cbSize; // size of this struct.
  11. HCONN ConnID; // Points to calling request pointer
  12. HINSTANCE hInst; // ASP dll handle, used for LoadString.
  13. DWORD cbTotalBytes; // Total bytes indicated from client
  14. WCHAR* wszFileName; // name of asp file to execute
  15. PSTR pszVirtualFileName; // Virtual root of file, to display to user on error case.
  16. PSTR pszForm; // raw Form data
  17. PSTR pszQueryString; // raw QueryString data
  18. PSTR pszCookie; // raw Cookie data, read only from client
  19. // These values are read by httpd from the registry and are used
  20. // if no ASP processing directive are on the executing page
  21. SCRIPT_LANG scriptLang;
  22. UINT lCodePage;
  23. LCID lcid;
  24. // Familiar ISAPI functions
  25. BOOL (WINAPI * GetServerVariable) ( HCONN hConn,
  26. LPSTR lpszVariableName,
  27. LPVOID lpvBuffer,
  28. LPDWORD lpdwSize );
  29. BOOL (WINAPI * WriteClient) ( HCONN ConnID,
  30. LPVOID Buffer,
  31. LPDWORD lpdwBytes,
  32. DWORD dwReserved );
  33. BOOL (WINAPI * ServerSupportFunction)( HCONN hConn,
  34. DWORD dwHSERequest,
  35. LPVOID lpvBuffer,
  36. LPDWORD lpdwSize,
  37. LPDWORD lpdwDataType );
  38. // ASP specific fcns
  39. // Acts like AddHeader or SetHeader found in ISAPI filter fcns
  40. BOOL (WINAPI * AddHeader)( HCONN hConn,
  41. LPSTR lpszName,
  42. LPSTR lspzValue);
  43. // Sends data to client
  44. BOOL (WINAPI * Flush) ( HCONN hConn);
  45. // Clears data, if data is being buffered
  46. BOOL (WINAPI * Clear) ( HCONN hConn);
  47. // Accessors to whether we buffer data request or not
  48. BOOL (WINAPI * SetBuffer) ( HCONN hConn,
  49. BOOL fBuffer);
  50. } ASP_CONTROL_BLOCK, *PASP_CONTROL_BLOCK;