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.

71 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 <denwcs.h>
  10. #include <denali.h>
  11. /*--------------------------------------------------------------------------+
  12. | Types |
  13. +--------------------------------------------------------------------------*/
  14. typedef struct _SsoSupportStuff
  15. {
  16. LONG lUser;
  17. IUnknown *punk;
  18. OLECHAR *wszMethodName;
  19. }
  20. SSSTUFF;
  21. typedef HRESULT (*PFNSSOMETHOD)(WORD, DISPPARAMS *, VARIANT *, SSSTUFF *pssstuff);
  22. typedef struct _SSOMethod
  23. {
  24. OLECHAR *wszName;
  25. PFNSSOMETHOD pfn;
  26. int iMethod;
  27. }
  28. SSOMETHOD;
  29. /*--------------------------------------------------------------------------+
  30. | Globals !!! Provided by the SSO !!! |
  31. +--------------------------------------------------------------------------*/
  32. extern PFNSSOMETHOD g_pfnssoDynamic;
  33. extern SSOMETHOD g_rgssomethod[];
  34. extern LPSTR g_szSSOProgID;
  35. extern GUID g_clsidSSO;
  36. extern BOOL g_fPersistentSSO;
  37. /*--------------------------------------------------------------------------+
  38. | Globals Provided by the Framework |
  39. +--------------------------------------------------------------------------*/
  40. extern HINSTANCE g_hinst;
  41. extern OLECHAR *c_wszOnNewTemplate;
  42. extern OLECHAR *c_wszOnFreeTemplate;
  43. /*--------------------------------------------------------------------------+
  44. | Routines Provided by the Framework |
  45. +--------------------------------------------------------------------------*/
  46. extern HRESULT SSOTranslateVirtualRoot(VARIANT *, IUnknown*, LPSTR, DWORD);
  47. extern BOOL SSODllMain(HINSTANCE, ULONG, LPVOID);
  48. /*--------------------------------------------------------------------------+
  49. | Other Data Needed by the Framework |
  50. +--------------------------------------------------------------------------*/
  51. const int cTimeSamplesMax = 100;
  52. #define SSO_OFFICIAL_NAME_PREFIX "Microsoft ActiveX Server Component"
  53. #endif // _SSOBASE_H_