// Application callback interface
[ComImport]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("D428903C-729A-491d-910D-682A08FF2522")]
public interface IUIApplication
{
// A view has changed
[PreserveSig]
HRESULT OnViewChanged(UInt32 viewId,
UI_ViewType typeID,
[MarshalAs(UnmanagedType.Interface)] object view,
UI_ViewVerb verb,
int uReasonCode);
// Command creation callback
[PreserveSig]
HRESULT OnCreateUICommand(UInt32 commandId,
UI_CommandType typeID,
[Out, MarshalAs(UnmanagedType.Interface)] out IUICommandHandler commandHandler);
// Command destroy callback
[PreserveSig]
HRESULT OnDestroyUICommand(UInt32 commandId,
UI_CommandType typeID,
[MarshalAs(UnmanagedType.Interface)] IUICommandHandler commandHandler);
}
None.