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.

57 lines
2.0 KiB

  1. /* ------------------------------------------------------------------------------------
  2. ---------- -------
  3. Plug In Server Classes, Types & function prototypes Defintions.
  4. Guru Datta Venkatarama 1/29/1997
  5. ---------- -------
  6. -------------------------------------------------------------------------------------*/
  7. #ifndef _SERVERSTRUCT_H
  8. #define _SERVERSTRUCT_H
  9. // ------------------------------------ * STRUCTURES * -------
  10. // maximum pages allowed on a server
  11. #define MAX_PAGES 26
  12. // errors returned by the handler on failure of a call to Launch
  13. #define DIGCERR_ERRORSTART 0x80097000
  14. #define DIGCERR_NUMPAGESZERO 0x80097001
  15. #define DIGCERR_NODLGPROC 0x80097002
  16. #define DIGCERR_NOPREPOSTPROC 0x80097003
  17. #define DIGCERR_NOTITLE 0x80097004
  18. #define DIGCERR_NOCAPTION 0x80097005
  19. #define DIGCERR_NOICON 0x80097006
  20. #define DIGCERR_STARTPAGETOOLARGE 0x80097007
  21. #define DIGCERR_NUMPAGESTOOLARGE 0x80097008
  22. #define DIGCERR_INVALIDDWSIZE 0x80097009
  23. #define DIGCERR_ERROREND 0x80097100
  24. // This structure is used to report all the characterstics of the plug in server to the
  25. // client socket when requested through the IServerCharacteristics::GetReport method
  26. #pragma pack (8)
  27. typedef struct {
  28. DWORD dwSize;
  29. LPCWSTR lpwszPageTitle;
  30. DLGPROC fpPageProc;
  31. BOOL fProcFlag;
  32. DLGPROC fpPrePostProc;
  33. BOOL fIconFlag;
  34. LPCWSTR lpwszPageIcon;
  35. LPCWSTR lpwszTemplate;
  36. LPARAM lParam;
  37. HINSTANCE hInstance;
  38. } DIGCPAGEINFO, *LPDIGCPAGEINFO; // was tServerPageRep, *tServerPageRepPtr;
  39. typedef struct {
  40. DWORD dwSize;
  41. USHORT nNumPages;
  42. LPCWSTR lpwszSheetCaption;
  43. BOOL fSheetIconFlag;
  44. LPCWSTR lpwszSheetIcon;
  45. } DIGCSHEETINFO, *LPDIGCSHEETINFO; // was tServerSheetRep, *tServerSheetRepPtr;
  46. // This structure is used to report all the characterstics of the plug in server to the
  47. // client socket when requested through the IServerDiagnostics::GetPortInfo method
  48. #endif // _SERVERSTRUCT_H
  49. //-----------------------------------------------------------------------------------EOF