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.

72 lines
1.9 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. /*--------------------------------------------------------------------------+
  39. | Globals Provided by the Framework |
  40. +--------------------------------------------------------------------------*/
  41. extern HINSTANCE g_hinst;
  42. extern OLECHAR *c_wszOnNewTemplate;
  43. extern OLECHAR *c_wszOnFreeTemplate;
  44. /*--------------------------------------------------------------------------+
  45. | Routines Provided by the Framework |
  46. +--------------------------------------------------------------------------*/
  47. extern HRESULT SSOTranslateVirtualRoot(VARIANT *, IUnknown*, LPSTR, DWORD);
  48. extern BOOL SSODllMain(HINSTANCE, ULONG, LPVOID);
  49. /*--------------------------------------------------------------------------+
  50. | Other Data Needed by the Framework |
  51. +--------------------------------------------------------------------------*/
  52. const int cTimeSamplesMax = 100;
  53. #define SSO_OFFICIAL_NAME_PREFIX "Microsoft ActiveX Server Component"
  54. #endif // _SSOBASE_H_