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.

140 lines
4.4 KiB

  1. /***************************************************************************/
  2. /* WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! */
  3. /***************************************************************************/
  4. /* As part of the shdocvw/browseui split, this file is moving to */
  5. /* shell32\unicpp\admovr2.h. Make sure you make your delta to the */
  6. /* shell32 version if you don't want your changes to be lost! */
  7. /***************************************************************************/
  8. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  9. /* File created by MIDL compiler version 3.01.75 */
  10. /* at Thu Apr 03 11:59:43 1997
  11. */
  12. /* Compiler settings for ADMover.idl:
  13. Os (OptLev=s), W1, Zp8, env=Win32, ms_ext, c_ext
  14. error checks: none
  15. */
  16. //@@MIDL_FILE_HEADING( )
  17. #include "rpc.h"
  18. #include "rpcndr.h"
  19. #ifndef COM_NO_WINDOWS_H
  20. #include "windows.h"
  21. #include "ole2.h"
  22. #endif /*COM_NO_WINDOWS_H*/
  23. #ifndef __ADMover_h__
  24. #define __ADMover_h__
  25. #ifdef __cplusplus
  26. extern "C"{
  27. #endif
  28. #ifndef __ADMOVERLib_LIBRARY_DEFINED__
  29. #define __ADMOVERLib_LIBRARY_DEFINED__
  30. /****************************************
  31. * Generated header for library: ADMOVERLib
  32. * at Thu Apr 03 11:59:43 1997
  33. * using MIDL 3.01.75
  34. ****************************************/
  35. /* [helpstring][version][uuid] */
  36. #ifdef __cplusplus
  37. class DECLSPEC_UUID("72267F6A-A6F9-11D0-BC94-00C04FB67863")
  38. DeskMovr;
  39. #endif
  40. #endif /* __ADMOVERLib_LIBRARY_DEFINED__ */
  41. /* Additional Prototypes for ALL interfaces */
  42. unsigned long __RPC_USER BSTR_UserSize( unsigned long __RPC_FAR *, unsigned long , BSTR __RPC_FAR * );
  43. unsigned char __RPC_FAR * __RPC_USER BSTR_UserMarshal( unsigned long __RPC_FAR *, unsigned char __RPC_FAR *, BSTR __RPC_FAR * );
  44. unsigned char __RPC_FAR * __RPC_USER BSTR_UserUnmarshal(unsigned long __RPC_FAR *, unsigned char __RPC_FAR *, BSTR __RPC_FAR * );
  45. void __RPC_USER BSTR_UserFree( unsigned long __RPC_FAR *, BSTR __RPC_FAR * );
  46. /* end of Additional Prototypes */
  47. #ifdef __cplusplus
  48. }
  49. #endif
  50. #endif
  51. #ifndef __ADMOVR2__
  52. #define __ADMOVR2__
  53. #include "mshtml.h"
  54. #include "mshtmdid.h"
  55. //=--------------------------------------------------------------------------=
  56. // Useful macros
  57. //=--------------------------------------------------------------------------=
  58. //
  59. // handy error macros, randing from cleaning up, to returning to clearing
  60. // rich error information as well.
  61. //
  62. #ifdef __cplusplus
  63. #define RETURN_ON_FAILURE(hr) if (FAILED(hr)) return hr
  64. #define RETURN_ON_NULLALLOC(ptr) if (!(ptr)) return E_OUTOFMEMORY
  65. #define CLEANUP_ON_FAILURE(hr) if (FAILED(hr)) goto CleanUp
  66. // Reference counting help.
  67. //
  68. #define RELEASE_OBJECT(ptr) ATOMICRELEASE(ptr)
  69. #define QUICK_RELEASE(ptr) ATOMICRELEASE(ptr)
  70. #define ADDREF_OBJECT(ptr) if (ptr) (ptr)->AddRef()
  71. #define NEW_HIT_TEST
  72. interface DECLSPEC_UUID("72267F69-A6F9-11D0-BC94-00C04FB67863")
  73. IDeskMovr : public IUnknown
  74. {
  75. public:
  76. virtual HRESULT STDMETHODCALLTYPE Duck(
  77. BOOL fDuck) = 0;
  78. virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Engaged(
  79. /* [retval][out] */ BOOL __RPC_FAR *pVal) = 0;
  80. };
  81. interface DECLSPEC_UUID("72267F6C-A6F9-11D0-BC94-00C04FB67863")
  82. IDeskSizr : public IUnknown
  83. {
  84. public:
  85. virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Target(
  86. /* [in] */ LPDISPATCH newVal) = 0;
  87. virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Engaged(
  88. /* [retval][out] */ BOOL __RPC_FAR *pVal) = 0;
  89. virtual HRESULT STDMETHODCALLTYPE Duck(
  90. BOOL fDuck) = 0;
  91. virtual HRESULT STDMETHODCALLTYPE TrackTarget( void) = 0;
  92. };
  93. #endif
  94. #define OLEMISMOVR (OLEMISC_ALWAYSRUN|OLEMISC_NOUIACTIVATE|OLEMISC_SETCLIENTSITEFIRST|OLEMISC_ACTIVATEWHENVISIBLE|OLEMISC_RECOMPOSEONRESIZE|OLEMISC_CANTLINKINSIDE|OLEMISC_INSIDEOUT)
  95. EXTERN_C void PersistTargetPosition( IHTMLElement *pielem,
  96. int left,
  97. int top,
  98. int width,
  99. int height,
  100. int zIndex,
  101. BOOL fSaveRestore,
  102. DWORD dwNewState);
  103. EXTERN_C BOOL WINAPI DeskMovr_DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID /*lpReserved*/);
  104. #endif // __ADMOVR2__