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.

75 lines
2.1 KiB

  1. /*
  2. ** SSOBASE.H
  3. ** Sean P. Nolan
  4. **
  5. ** Simple MSN SSS Object Framework
  6. */
  7. #ifndef _SSOBASE_H_
  8. #define _SSOBASE_H_
  9. #include "wcsutil.h"
  10. #include <ascript.h>
  11. /*--------------------------------------------------------------------------+
  12. | Types |
  13. +--------------------------------------------------------------------------*/
  14. typedef struct _SsoSupportStuff
  15. {
  16. EXCEPINFO *pexcepinfo;
  17. LONG lUser;
  18. IUnknown *punk;
  19. OLECHAR *wszMethodName;
  20. }
  21. SSSTUFF;
  22. typedef HRESULT (*PFNSSOMETHOD)(WORD, DISPPARAMS *, VARIANT *, SSSTUFF *pssstuff);
  23. typedef struct _SSOMethod
  24. {
  25. OLECHAR *wszName;
  26. PFNSSOMETHOD pfn;
  27. int iMethod;
  28. }
  29. SSOMETHOD;
  30. /*--------------------------------------------------------------------------+
  31. | Globals !!! Provided by the SSO !!! |
  32. +--------------------------------------------------------------------------*/
  33. extern PFNSSOMETHOD g_pfnssoDynamic;
  34. extern SSOMETHOD g_rgssomethod[];
  35. extern LPSTR g_szSSOProgID;
  36. extern GUID g_clsidSSO;
  37. extern BOOL g_fPersistentSSO;
  38. extern LPSTR g_szComponentName; //used as event source name
  39. extern DWORD g_dwEventID; // event id used if time bomb expired
  40. /*--------------------------------------------------------------------------+
  41. | Globals Provided by the Framework |
  42. +--------------------------------------------------------------------------*/
  43. extern HINSTANCE g_hinst;
  44. extern OLECHAR *c_wszOnNewTemplate;
  45. extern OLECHAR *c_wszOnFreeTemplate;
  46. extern HANDLE g_hEventSrc;
  47. /*--------------------------------------------------------------------------+
  48. | Routines Provided by the Framework |
  49. +--------------------------------------------------------------------------*/
  50. extern HRESULT SSOTranslateVirtualRoot(VARIANT *, IUnknown*, LPSTR, DWORD);
  51. extern BOOL SSODllMain(HINSTANCE, ULONG, LPVOID);
  52. /*--------------------------------------------------------------------------+
  53. | Other Data Needed by the Framework |
  54. +--------------------------------------------------------------------------*/
  55. const int cTimeSamplesMax = 100;
  56. #define SSO_OFFICIAL_NAME_PREFIX "Microsoft ActiveX Server Component"
  57. #endif // _SSOBASE_H_