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.

106 lines
2.3 KiB

  1. //
  2. // FILE: oleglue.h
  3. //
  4. // NOTES: All OLE-related outbound references from SoundRecorder
  5. //
  6. #include <ole2.h>
  7. #ifdef __cplusplus
  8. extern "C" { /* Assume C declarations for C++ */
  9. #endif /* __cplusplus */
  10. #if DBG
  11. #define DOUT(t) OutputDebugString(t)
  12. #define DOUTR(t) OutputDebugString(t TEXT("\n"))
  13. #else // !DBG
  14. #define DOUT(t)
  15. #define DOUTR(t)
  16. #endif
  17. extern DWORD dwOleBuildVersion;
  18. extern BOOL gfOleInitialized;
  19. extern BOOL gfStandalone;
  20. extern BOOL gfEmbedded;
  21. extern BOOL gfLinked;
  22. extern BOOL gfTerminating;
  23. extern BOOL gfUserClose;
  24. extern HWND ghwndApp;
  25. extern HICON ghiconApp;
  26. extern BOOL gfClosing;
  27. extern BOOL gfHideAfterPlaying;
  28. extern BOOL gfShowWhilePlaying;
  29. extern BOOL gfDirty;
  30. extern int giExtWidth;
  31. extern int giExtHeight;
  32. #define CTC_RENDER_EVERYTHING 0 // render all data
  33. #define CTC_RENDER_ONDEMAND 1 // render cfNative and CF_WAVE as NULL
  34. #define CTC_RENDER_LINK 2 // render all data, except cfNative
  35. extern TCHAR gachLinkFilename[_MAX_PATH];
  36. /*
  37. * from srfact.cxx
  38. */
  39. extern HRESULT ReleaseSRClassFactory(void);
  40. extern BOOL CreateSRClassFactory(HINSTANCE hinst,BOOL fEmbedded);
  41. extern BOOL InitializeSRS(HINSTANCE hInst);
  42. extern void FlagEmbeddedObject(BOOL flag);
  43. extern void DoOleClose(BOOL fSave);
  44. extern void DoOleSave(void);
  45. extern void TerminateServer(void);
  46. extern void FlushOleClipboard(void);
  47. extern void AdviseDataChange(void);
  48. extern void AdviseRename(LPTSTR lpname);
  49. extern void AdviseSaved(void);
  50. extern void AdviseClosed(void);
  51. extern HANDLE GetNativeData(void);
  52. extern LPBYTE PutNativeData(LPBYTE lpbData, DWORD dwSize);
  53. extern BOOL FileLoad(LPCTSTR lpFileName);
  54. extern void BuildUniqueLinkName(void);
  55. /* in srfact.cxx */
  56. extern BOOL CreateStandaloneObject(void);
  57. /* new clipboard stuff */
  58. extern BOOL gfXBagOnClipboard;
  59. extern void TransferToClipboard(void);
  60. /* access to current server state data */
  61. extern HANDLE GetPicture(void);
  62. extern HBITMAP GetBitmap(void);
  63. extern HANDLE GetDIB(HANDLE);
  64. /* link helpers */
  65. extern BOOL IsDocUntitled(void);
  66. /* menu fixup */
  67. extern void FixMenus(void);
  68. /* Play sound */
  69. extern void AppPlay(BOOL fClose);
  70. /* Get Host names */
  71. extern void OleObjGetHostNames(LPTSTR *ppCntr, LPTSTR *ppObj);
  72. /* Ole initialization */
  73. extern BOOL InitializeOle(HINSTANCE hInst);
  74. extern void WriteObjectIfEmpty(void);
  75. #ifdef __cplusplus
  76. }
  77. #endif /* __cplusplus */