Leaked source code of windows server 2003
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.

78 lines
5.4 KiB

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