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.

77 lines
5.3 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // these are the default OLE functions (exported from OLECLI.DLL)
  4. //
  5. ///////////////////////////////////////////////////////////////////////////////
  6. extern OLESTATUS FAR PASCAL DefLoadFromStream (LPOLESTREAM, LPSTR, LPOLECLIENT, LHCLIENTDOC, LPSTR, LPOLEOBJECT FAR *, LONG, ATOM, OLECLIPFORMAT);
  7. extern OLESTATUS FAR PASCAL DefCreateFromClip (LPSTR, LPOLECLIENT, LHCLIENTDOC, LPSTR, LPOLEOBJECT FAR *, OLEOPT_RENDER, OLECLIPFORMAT, LONG);
  8. extern OLESTATUS FAR PASCAL DefCreateLinkFromClip (LPSTR, LPOLECLIENT, LHCLIENTDOC, LPSTR, LPOLEOBJECT FAR *, OLEOPT_RENDER, OLECLIPFORMAT);
  9. extern OLESTATUS FAR PASCAL DefCreateFromTemplate (LPSTR, LPOLECLIENT, LPSTR, LHCLIENTDOC, LPSTR, LPOLEOBJECT FAR *, OLEOPT_RENDER, OLECLIPFORMAT);
  10. extern OLESTATUS FAR PASCAL DefCreate (LPSTR, LPOLECLIENT, LPSTR, LHCLIENTDOC, LPSTR, LPOLEOBJECT FAR *, OLEOPT_RENDER, OLECLIPFORMAT);
  11. extern OLESTATUS FAR PASCAL DefCreateFromFile (LPSTR, LPOLECLIENT, LPSTR, LPSTR, LHCLIENTDOC, LPSTR, LPOLEOBJECT FAR *, OLEOPT_RENDER, OLECLIPFORMAT);
  12. extern OLESTATUS FAR PASCAL DefCreateLinkFromFile (LPSTR, LPOLECLIENT, LPSTR, LPSTR, LPSTR, LHCLIENTDOC, LPSTR, LPOLEOBJECT FAR *, OLEOPT_RENDER, OLECLIPFORMAT);
  13. ///////////////////////////////////////////////////////////////////////////////
  14. //
  15. // these are our OLE handlers (defined in this file)
  16. //
  17. ///////////////////////////////////////////////////////////////////////////////
  18. // Server has to implement only the following methods.
  19. LPVOID FAR PASCAL _loadds DllQueryProtocol (LPOLEOBJECT, LPSTR);
  20. OLESTATUS FAR PASCAL _loadds DllRelease (LPOLEOBJECT);
  21. OLESTATUS FAR PASCAL _loadds DllShow (LPOLEOBJECT, BOOL);
  22. OLESTATUS FAR PASCAL _loadds DllDoVerb (LPOLEOBJECT, WORD, BOOL, BOOL);
  23. OLESTATUS FAR PASCAL _loadds DllGetData (LPOLEOBJECT, OLECLIPFORMAT, LPHANDLE);
  24. OLESTATUS FAR PASCAL _loadds DllSetData (LPOLEOBJECT, OLECLIPFORMAT, HANDLE);
  25. OLESTATUS FAR PASCAL _loadds DllSetTargetDevice (LPOLEOBJECT, HANDLE);
  26. OLESTATUS FAR PASCAL _loadds DllSetBounds (LPOLEOBJECT, LPRECT);
  27. OLECLIPFORMAT FAR PASCAL _loadds DllEnumFormats (LPOLEOBJECT, OLECLIPFORMAT);
  28. OLESTATUS FAR PASCAL _loadds DllSetColorScheme (LPOLEOBJECT, LPLOGPALETTE);
  29. // Extra methods required for client.
  30. OLESTATUS FAR PASCAL _loadds DllDelete (LPOLEOBJECT);
  31. OLESTATUS FAR PASCAL _loadds DllSetHostNames (LPOLEOBJECT, LPSTR, LPSTR);
  32. OLESTATUS FAR PASCAL _loadds DllSaveToStream (LPOLEOBJECT, LPOLESTREAM);
  33. OLESTATUS FAR PASCAL _loadds DllClone (LPOLEOBJECT, LPOLECLIENT, LHCLIENTDOC, LPSTR, LPOLEOBJECT FAR *);
  34. OLESTATUS FAR PASCAL _loadds DllCopyFromLink (LPOLEOBJECT, LPOLECLIENT, LHCLIENTDOC, LPSTR, LPOLEOBJECT FAR *);
  35. OLESTATUS FAR PASCAL _loadds DllEqual (LPOLEOBJECT, LPOLEOBJECT);
  36. OLESTATUS FAR PASCAL _loadds DllCopyToClipboard (LPOLEOBJECT);
  37. OLESTATUS FAR PASCAL _loadds DllDraw (LPOLEOBJECT, HDC, LPRECT, LPRECT, HDC);
  38. OLESTATUS FAR PASCAL _loadds DllActivate (LPOLEOBJECT, WORD, BOOL, BOOL, HWND, LPRECT);
  39. OLESTATUS FAR PASCAL _loadds DllExecute (LPOLEOBJECT, HANDLE, WORD);
  40. OLESTATUS FAR PASCAL _loadds DllClose (LPOLEOBJECT);
  41. OLESTATUS FAR PASCAL _loadds DllUpdate (LPOLEOBJECT);
  42. OLESTATUS FAR PASCAL _loadds DllReconnect (LPOLEOBJECT);
  43. OLESTATUS FAR PASCAL _loadds DllObjectConvert (LPOLEOBJECT, LPSTR, LPOLECLIENT, LHCLIENTDOC, LPSTR, LPOLEOBJECT FAR *);
  44. OLESTATUS FAR PASCAL _loadds DllGetLinkUpdateOptions (LPOLEOBJECT, OLEOPT_UPDATE FAR *);
  45. OLESTATUS FAR PASCAL _loadds DllSetLinkUpdateOptions (LPOLEOBJECT, OLEOPT_UPDATE);
  46. OLESTATUS FAR PASCAL _loadds DllRename (LPOLEOBJECT, LPSTR);
  47. OLESTATUS FAR PASCAL _loadds DllQueryName (LPOLEOBJECT, LPSTR, WORD FAR *);
  48. OLESTATUS FAR PASCAL _loadds DllQueryType (LPOLEOBJECT, LPLONG);
  49. OLESTATUS FAR PASCAL _loadds DllQueryBounds (LPOLEOBJECT, LPRECT);
  50. OLESTATUS FAR PASCAL _loadds DllQuerySize (LPOLEOBJECT, DWORD FAR *);
  51. OLESTATUS FAR PASCAL _loadds DllQueryOpen (LPOLEOBJECT);
  52. OLESTATUS FAR PASCAL _loadds DllQueryOutOfDate (LPOLEOBJECT);
  53. OLESTATUS FAR PASCAL _loadds DllQueryReleaseStatus (LPOLEOBJECT);
  54. OLESTATUS FAR PASCAL _loadds DllQueryReleaseError (LPOLEOBJECT);
  55. OLESTATUS FAR PASCAL _loadds DllRequestData (LPOLEOBJECT, OLECLIPFORMAT);
  56. OLESTATUS FAR PASCAL _loadds DllObjectLong (LPOLEOBJECT, WORD, LPLONG);
  57. OLE_RELEASE_METHOD FAR PASCAL _loadds DllQueryReleaseMethod(LPOLEOBJECT);
  58. // This method is internal only
  59. OLESTATUS FAR PASCAL _loadds DllChangeData (LPOLEOBJECT, HANDLE, LPOLECLIENT, BOOL);
  60. ///////////////////////////////////////////////////////////////////////////////
  61. //
  62. // DEBUG STUFF
  63. //
  64. ///////////////////////////////////////////////////////////////////////////////
  65. #ifdef DEBUG
  66. extern void FAR cdecl dprintf(LPSTR, ...);
  67. #define DPRINTF(x) dprintf x
  68. #else
  69. #define DPRINTF(x)
  70. #endif