96 references to IMsoComponent
System.Windows.Forms (2)
System\Windows\Forms\Application.ComponentThreadContext.cs (1)
15/// <see cref="ThreadContext"/> that supports <see cref="IMsoComponent"/>.
System\Windows\Forms\Application.LightThreadContext.cs (1)
11/// Lighter weight <see cref="ThreadContext"/> that doesn't support <see cref="IMsoComponent"/>.
System.Windows.Forms.Primitives (94)
Microsoft\Office\IMsoComponent.cs (73)
12internal unsafe struct IMsoComponent : IComIID, IVTable<IMsoComponent, IMsoComponent.Vtbl> 14static void IVTable<IMsoComponent, Vtbl>.PopulateVTable(Vtbl* vtable) 32internal delegate* unmanaged[Stdcall]<IMsoComponent*, Guid*, void**, HRESULT> QueryInterface_1; 33internal delegate* unmanaged[Stdcall]<IMsoComponent*, uint> AddRef_2; 34internal delegate* unmanaged[Stdcall]<IMsoComponent*, uint> Release_3; 35internal delegate* unmanaged[Stdcall]<IMsoComponent*, nint, uint, WPARAM, LPARAM, BOOL> FDebugMessage_4; 36internal delegate* unmanaged[Stdcall]<IMsoComponent*, MSG*, BOOL> FPreTranslateMessage_5; 37internal delegate* unmanaged[Stdcall]<IMsoComponent*, msocstate, BOOL, void> OnEnterState_6; 38internal delegate* unmanaged[Stdcall]<IMsoComponent*, BOOL, uint, void> OnAppActivate_7; 39internal delegate* unmanaged[Stdcall]<IMsoComponent*, void> OnLoseActivation_8; 40internal delegate* unmanaged[Stdcall]<IMsoComponent*, IMsoComponent*, BOOL, MSOCRINFO*, BOOL, nint, uint, void> OnActivationChange_9; 41internal delegate* unmanaged[Stdcall]<IMsoComponent*, msoidlef, BOOL> FDoIdle_10; 42internal delegate* unmanaged[Stdcall]<IMsoComponent*, msoloop, void*, MSG*, BOOL> FContinueMessageLoop_11; 43internal delegate* unmanaged[Stdcall]<IMsoComponent*, BOOL, BOOL> FQueryTerminate_12; 44internal delegate* unmanaged[Stdcall]<IMsoComponent*, void> Terminate_13; 45internal delegate* unmanaged[Stdcall]<IMsoComponent*, msocWindow, uint, HWND> HwndGetWindow_14; 50private static BOOL FDebugMessage(IMsoComponent* @this, nint hInst, uint msg, WPARAM wParam, LPARAM lParam) 51=> UnwrapAndInvoke<IMsoComponent, Interface, BOOL>(@this, o => o.FDebugMessage(hInst, msg, wParam, lParam)); 54private static BOOL FPreTranslateMessage(IMsoComponent* @this, MSG* msg) 55=> UnwrapAndInvoke<IMsoComponent, Interface, BOOL>(@this, o => o.FPreTranslateMessage(msg)); 58private static void OnEnterState(IMsoComponent* @this, msocstate uStateID, BOOL fEnter) 59=> UnwrapAndInvoke<IMsoComponent, Interface>(@this, o => o.OnEnterState(uStateID, fEnter)); 62private static void OnAppActivate(IMsoComponent* @this, BOOL fActive, uint dwOtherThreadID) 63=> UnwrapAndInvoke<IMsoComponent, Interface>(@this, o => o.OnAppActivate(fActive, dwOtherThreadID)); 66private static void OnLoseActivation(IMsoComponent* @this) 67=> UnwrapAndInvoke<IMsoComponent, Interface>(@this, o => o.OnLoseActivation()); 71IMsoComponent* @this, 72IMsoComponent* pic, 78=> UnwrapAndInvoke<IMsoComponent, Interface>( 83private static BOOL FDoIdle(IMsoComponent* @this, msoidlef grfidlef) 84=> UnwrapAndInvoke<IMsoComponent, Interface, BOOL>(@this, o => o.FDoIdle(grfidlef)); 87private static BOOL FContinueMessageLoop(IMsoComponent* @this, msoloop uReason, void* pvLoopData, MSG* pMsgPeeked) 88=> UnwrapAndInvoke<IMsoComponent, Interface, BOOL>(@this, o => o.FContinueMessageLoop(uReason, pvLoopData, pMsgPeeked)); 91private static BOOL FQueryTerminate(IMsoComponent* @this, BOOL fPromptUser) 92=> UnwrapAndInvoke<IMsoComponent, Interface, BOOL>(@this, o => o.FQueryTerminate(fPromptUser)); 95private static void Terminate(IMsoComponent* @this) 96=> UnwrapAndInvoke<IMsoComponent, Interface>(@this, o => o.Terminate()); 99private static HWND HwndGetWindow(IMsoComponent* @this, msocWindow dwWhich, uint dwReserved) 100=> UnwrapAndInvoke<IMsoComponent, Interface, HWND>(@this, o => o.HwndGetWindow(dwWhich, dwReserved)); 127fixed (IMsoComponent* pThis = &this) 128return ((delegate* unmanaged[Stdcall]<IMsoComponent*, Guid*, void**, HRESULT>)_lpVtbl[0])(pThis, riid, ppvObject); 134fixed (IMsoComponent* pThis = &this) 135return ((delegate* unmanaged[Stdcall]<IMsoComponent*, uint>)_lpVtbl[1])(pThis); 141fixed (IMsoComponent* pThis = &this) 142return ((delegate* unmanaged[Stdcall]<IMsoComponent*, uint>)_lpVtbl[2])(pThis); 148fixed (IMsoComponent* pThis = &this) 149return ((delegate* unmanaged[Stdcall]<IMsoComponent*, nint, uint, WPARAM, LPARAM, BOOL>)_lpVtbl[3])( 156fixed (IMsoComponent* pThis = &this) 157return ((delegate* unmanaged[Stdcall]<IMsoComponent*, MSG*, BOOL>)_lpVtbl[4])(pThis, msg); 163fixed (IMsoComponent* pThis = &this) 164((delegate* unmanaged[Stdcall]<IMsoComponent*, msocstate, BOOL, void>)_lpVtbl[5])(pThis, uStateID, fEnter); 170fixed (IMsoComponent* pThis = &this) 171((delegate* unmanaged[Stdcall]<IMsoComponent*, BOOL, uint, void>)_lpVtbl[6])(pThis, fActive, dwOtherThreadID); 177fixed (IMsoComponent* pThis = &this) 178((delegate* unmanaged[Stdcall]<IMsoComponent*, void>)_lpVtbl[7])(pThis); 181/// <inheritdoc cref="Interface.OnActivationChange(IMsoComponent*, BOOL, MSOCRINFO*, BOOL, nint, uint)"/> 182public void OnActivationChange(IMsoComponent* pic, BOOL fSameComponent, MSOCRINFO* pcrinfo, BOOL fHostIsActivating, nint pchostinfo, uint dwReserved) 184fixed (IMsoComponent* pThis = &this) 185((delegate* unmanaged[Stdcall]<IMsoComponent*, IMsoComponent*, BOOL, MSOCRINFO*, BOOL, nint, uint, void>)_lpVtbl[8]) 192fixed (IMsoComponent* pThis = &this) 193return ((delegate* unmanaged[Stdcall]<IMsoComponent*, msoidlef, BOOL>)_lpVtbl[9])(pThis, grfidlef); 199fixed (IMsoComponent* pThis = &this) 200return ((delegate* unmanaged[Stdcall]<IMsoComponent*, msoloop, void*, MSG*, BOOL>)_lpVtbl[10]) 207fixed (IMsoComponent* pThis = &this) 208return ((delegate* unmanaged[Stdcall]<IMsoComponent*, BOOL, BOOL>)_lpVtbl[11])(pThis, fPromptUser); 214fixed (IMsoComponent* pThis = &this) 215((delegate* unmanaged[Stdcall]<IMsoComponent*, void>)_lpVtbl[12])(pThis); 221fixed (IMsoComponent* pThis = &this) 222return ((delegate* unmanaged[Stdcall]<IMsoComponent*, msocWindow, uint, HWND>)_lpVtbl[13])(pThis, dwWhich, dwReserved); 384IMsoComponent* pic,
Microsoft\Office\IMsoComponentManager.cs (17)
73/// <inheritdoc cref="Interface.FRegisterComponent(IMsoComponent*, MSOCRINFO*, nuint*)"/> 74public BOOL FRegisterComponent(IMsoComponent* piComponent, MSOCRINFO* pcrinfo, nuint* dwComponentID) 77return ((delegate* unmanaged[Stdcall]<IMsoComponentManager*, IMsoComponent*, MSOCRINFO*, nuint*, BOOL>)_lpVtbl[5]) 179/// <inheritdoc cref="Interface.FGetActiveComponent(msogac, IMsoComponent**, MSOCRINFO*, uint)"/> 180public BOOL FGetActiveComponent(msogac dwgac, IMsoComponent** ppic, MSOCRINFO* pcrinfo, uint dwReserved) 183return ((delegate* unmanaged[Stdcall]<IMsoComponentManager*, msogac, IMsoComponent**, MSOCRINFO*, uint, BOOL>)_lpVtbl[17]) 261IMsoComponent* piComponent, 297/// (via <see cref="IMsoComponent.FPreTranslateMessage(MSG*)"/> and typically gets first chance 318/// (via <see cref="IMsoComponent.FPreTranslateMessage(MSG*)"/>) rather than to the active component. 324/// than give the tracking component idle time via <see cref="IMsoComponent.FDoIdle(msoidlef)"/>. 351/// <see cref="IMsoComponent.OnEnterState(msocstate, BOOL)"/> (see "Comments on State Contexts" in 406/// via <see cref="IMsoComponent.OnEnterState(msocstate, BOOL)"/> (see "Comments on State Contexts", above). 445/// Called periodically by a component during <see cref="IMsoComponent.FDoIdle(msoidlef)"/>. 461/// <see cref="IMsoComponent.FContinueMessageLoop(msoloop, void*, MSG*)"/> during each loop iteration. 462/// When <see cref="IMsoComponent.FContinueMessageLoop(msoloop, void*, MSG*)"/> returns <see cref="BOOL.FALSE"/>, 469/// to (by returning <see cref="BOOL.FALSE"/> from <see cref="IMsoComponent.FContinueMessageLoop(msoloop, void*, MSG*)"/>), 532IMsoComponent** ppic,
Microsoft\Office\IMsoComponentManager.NativeAdapter.cs (2)
34BOOL Interface.FRegisterComponent(IMsoComponent* piComponent, MSOCRINFO* pcrinfo, nuint* dwComponentID) 117BOOL Interface.FGetActiveComponent(msogac dwgac, IMsoComponent** ppic, MSOCRINFO* pcrinfo, uint dwReserved)
Microsoft\Office\msocstate.cs (1)
7/// State IDs passed to <see cref="IMsoComponent.OnEnterState(msocstate, BOOL)" /> and
Microsoft\Office\msoloop.cs (1)
8/// The host should remain in message loop until <see cref="IMsoComponent.FContinueMessageLoop(msoloop, void*, MSG*)" />