📄 mmc.idl
字号:
HRESULT AddMenuItems([in] LPDATAOBJECT piDataObject,
[in] LPCONTEXTMENUCALLBACK piCallback,
[in,out] long *pInsertionAllowed);
[helpstring("Extension context menu item was selected")]
HRESULT Command([in] long lCommandID, [in] LPDATAOBJECT piDataObject);
};
[
object,
uuid(43136EB8-D36C-11CF-ADBC-00AA00A80033),
helpstring("IImageList Interface"),
pointer_default(unique)
]
interface IImageList : IUnknown
{
[helpstring("Sets an Icon in the image list, creates it if it is not there.")]
HRESULT ImageListSetIcon([in] long* pIcon, [in] long nLoc);
[helpstring("Sets a strip in the image list, starting at nLoc using a pair of bitmaps.")]
HRESULT ImageListSetStrip([in] long* pBMapSm,
[in] long* pBMapLg,[in] long nStartLoc, [in] COLORREF cMask);
};
[
object,
uuid(31DA5FA0-E0EB-11cf-9F21-00AA003CA9F6),
helpstring("IResultData Interface"),
pointer_default(unique)
]
interface IResultData : IUnknown
{
[helpstring("Allows the snap-in to insert a single item.")]
HRESULT InsertItem([in,out] LPRESULTDATAITEM item);
[helpstring("Allows the snap-in to delete a single item.")]
HRESULT DeleteItem([in] HRESULTITEM itemID, [in] int nCol);
[helpstring("Allows the snap-in to find an item/subitem based on its user inserted lParam.")]
HRESULT FindItemByLParam([in] LPARAM lParam, [out] HRESULTITEM *pItemID);
[helpstring("Allows the snap-in to delete all the items.")]
HRESULT DeleteAllRsltItems();
[helpstring("Allows the snap-in to set a single item.")]
HRESULT SetItem([in] LPRESULTDATAITEM item);
[helpstring("Allows the snap-in to get a single item.")]
HRESULT GetItem([in,out] LPRESULTDATAITEM item);
[helpstring("Returns the lParam of the first item, which matches the given state.")]
HRESULT GetNextItem([in,out] LPRESULTDATAITEM item);
[helpstring("Allows the snap-in to modify the state of an item.")]
HRESULT ModifyItemState([in] int nIndex, [in] HRESULTITEM itemID,
[in] UINT uAdd, [in] UINT uRemove);
[helpstring("Allows the snap-in to set the result view style.")]
HRESULT ModifyViewStyle([in] MMC_RESULT_VIEW_STYLE add,
[in] MMC_RESULT_VIEW_STYLE remove);
[helpstring("Allows the snap-in to set the result view mode.")]
HRESULT SetViewMode([in] long lViewMode);
[helpstring("Allows the snap-in to get the result view mode.")]
HRESULT GetViewMode([out] long* lViewMode);
[helpstring("Allows the snap-in to update a single item.")]
HRESULT UpdateItem([in] HRESULTITEM itemID);
[helpstring("Sort all items in result pane")]
HRESULT Sort([in] int nColumn, [in] DWORD dwSortOptions, [in] long lUserParam);
[helpstring("Set the description bar text for the result view")]
HRESULT SetDescBarText([in] LPOLESTR DescText);
[helpstring("Set number of items in result pane list")]
HRESULT SetItemCount([in] int nItemCount, [in] DWORD dwOptions);
};
[
object,
uuid(9757abb8-1b32-11d1-a7ce-00c04fd8d565),
helpstring("IQuickFilter Interface"),
pointer_default(unique)
]
interface IQuickFilter : IUnknown
{
[helpstring("Sets the time out for the quick filter")]
HRESULT SetChangeTimeOut([in] unsigned long uTimeout);
[helpstring("Sets the quick filter")]
HRESULT SetQuickFilter([in] UINT nColumn, [in] LPFILTERDATA);
[helpstring("Gets the quick filter")]
HRESULT GetQuickFilter([in] UINT nColumn, [out] LPFILTERDATA);
};
[
object,
uuid(BEDEB620-F24D-11cf-8AFC-00AA003CA9F6),
helpstring("IConsoleNameSpace Interface"),
pointer_default(unique)
]
interface IConsoleNameSpace : IUnknown
{
import "oaidl.idl";
[helpstring("Allows the snap-in to insert a single item into the scope view.")]
HRESULT InsertItem([in,out] LPSCOPEDATAITEM item);
[helpstring("Allows the snap-in to delete a single item from the scope view.")]
HRESULT DeleteItem([in] HSCOPEITEM hItem, [in] long fDeleteThis);
[helpstring("Allows the snap-in to set a single scope view item.")]
HRESULT SetItem([in] LPSCOPEDATAITEM item);
[helpstring("Allows the snap-in to get a single scope view item.")]
HRESULT GetItem([in,out] LPSCOPEDATAITEM item);
[helpstring("The handle of the child item if successful, otherwise NULL.")]
HRESULT GetChildItem([in] HSCOPEITEM item, [out] HSCOPEITEM* pItemChild,
[out] long* plCookie);
[helpstring("The handle of the next item if successful, otherwise NULL.")]
HRESULT GetNextItem([in] HSCOPEITEM item, [out] HSCOPEITEM* pItemNext,
[out] long* plCookie);
[helpstring("The handle of the parent item if successful, otherwise NULL.")]
HRESULT GetParentItem([in] HSCOPEITEM item, [out] HSCOPEITEM* pItemParent,
[out] long* plCookie);
};
struct _PSP;
typedef struct _PSP * HPROPSHEETPAGE;
[
local,
object,
uuid(85DE64DD-EF21-11cf-A285-00C04FD8DBE6),
helpstring("IPropertySheetCallback Interface"),
pointer_default(unique)
]
interface IPropertySheetCallback : IUnknown
{
[helpstring("Snap-in uses this to add a page to a property sheet")]
HRESULT AddPage([in] HPROPSHEETPAGE hPage);
[helpstring("Snap-in uses this to remove a page from a property sheet")]
HRESULT RemovePage([in] HPROPSHEETPAGE hPage);
};
[
object,
uuid(85DE64DE-EF21-11cf-A285-00C04FD8DBE6),
helpstring("IPropertySheetProvider Interface"),
pointer_default(unique)
]
interface IPropertySheetProvider : IUnknown
{
[helpstring("Creates a property sheet frame")]
HRESULT CreatePropertySheet([in] LPCWSTR title, [in] boolean type,
[in] long cookie, [in] LPDATAOBJECT pIDataObjectm,
[in] DWORD dwOptions);
[helpstring("Determine if the property sheet exist")]
HRESULT FindPropertySheet([in] long cookie, [in] LPCOMPONENT lpComponent, [in] LPDATAOBJECT lpDataObject);
[helpstring("Collects the pages from the primary snap-in")]
HRESULT AddPrimaryPages(LPUNKNOWN lpUnknown, BOOL bCreateHandle, HWND hNotifyWindow, BOOL bScopePane);
[helpstring("Collects the pages from the extension snap-in(s)")]
HRESULT AddExtensionPages();
[helpstring("Shows a property sheet frame parented to the HWND passed in")]
HRESULT Show([in] long window, [in] int page);
};
[
object,
uuid(85DE64DC-EF21-11cf-A285-00C04FD8DBE6),
helpstring("IExtendPropertySheet Interface"),
pointer_default(unique)
]
interface IExtendPropertySheet : IUnknown
{
[helpstring("Interface implemented by the snap-in to add pages to a sheet")]
// handle - This handle must be saved in the property page object
// to notify the parent of changes in property using API
// MMCPropertyChangeNotify. The API MMCFreeNotifyHandle
// should be called just before the property page is
// destroyed to delete the handle.
HRESULT CreatePropertyPages([in] LPPROPERTYSHEETCALLBACK lpProvider,
[in] long handle,
[in] LPDATAOBJECT lpIDataObject);
[helpstring("Interface implemented by the snap-in to determine if this object needs pages")]
HRESULT QueryPagesFor([in] LPDATAOBJECT lpDataObject);
};
[
object,
uuid(69FB811E-6C1C-11D0-A2CB-00C04FD909DD),
helpstring("Control bar to hold toolbar and other controls"),
pointer_default(unique)
]
interface IControlbar : IUnknown
{
[helpstring("Create and return the control requested")]
HRESULT Create([in] MMC_CONTROL_TYPE nType,
[in] LPEXTENDCONTROLBAR pExtendControlbar,
[out] LPUNKNOWN* ppUnknown);
[helpstring("Associated the control to the control bar")]
HRESULT Attach([in] MMC_CONTROL_TYPE nType, [in] LPUNKNOWN lpUnknown);
[helpstring("Break the association between the control and the control bar")]
HRESULT Detach([in] LPUNKNOWN lpUnknown);
};
[
object,
uuid(49506520-6F40-11D0-A98B-00C04FD8D565),
helpstring("IExtendControlbar Interface"),
pointer_default(unique)
]
interface IExtendControlbar : IUnknown
{
[helpstring("Extension may add toolbars via callback interface")]
HRESULT SetControlbar([in] LPCONTROLBAR pControlbar);
[helpstring("User actions")]
HRESULT ControlbarNotify([in] MMC_NOTIFY_TYPE event,
[in] long arg, [in] long param);
};
[
object,
uuid(43136EB9-D36C-11CF-ADBC-00AA00A80033),
pointer_default(unique)
]
interface IToolbar : IUnknown
{
[helpstring("Add and image to the toolbar")]
HRESULT AddBitmap([in] int nImages, [in] HBITMAP hbmp, [in] int cxSize, [in] int cySize, [in] COLORREF crMask );
[helpstring("Add an array of buttons to the toolbar")]
HRESULT AddButtons([in] int nButtons, [in] LPMMCBUTTON lpButtons);
[helpstring("Add a single button to the toolbar at position nIndex")]
HRESULT InsertButton([in] int nIndex, [in] LPMMCBUTTON lpButton);
[helpstring("Remove a button at the index")]
HRESULT DeleteButton([in] int nIndex);
[helpstring("Get an attribute of a button")]
HRESULT GetButtonState([in] int idCommand, [in] MMC_BUTTON_STATE nState, [out] BOOL* pState);
[helpstring("Set an attribute of a button")]
HRESULT SetButtonState([in] int idCommand, [in] MMC_BUTTON_STATE nState, [in] BOOL bState);
};
[
object,
uuid(E49F7A60-74AF-11D0-A286-00C04FD8FE93),
pointer_default(unique)
]
interface IConsoleVerb : IUnknown
{
[helpstring("Get verb state")]
HRESULT GetVerbState([in] MMC_CONSOLE_VERB eCmdID, [in] MMC_BUTTON_STATE nState, [out] BOOL* pState);
[helpstring("Set verb state")]
HRESULT SetVerbState([in] MMC_CONSOLE_VERB eCmdID, [in] MMC_BUTTON_STATE nState, [in] BOOL bState);
[helpstring("Set default verb")]
HRESULT SetDefaultVerb([in] MMC_CONSOLE_VERB eCmdID);
[helpstring("Get default verb")]
HRESULT GetDefaultVerb([out] MMC_CONSOLE_VERB* peCmdID);
};
[
object,
uuid(1245208C-A151-11D0-A7D7-00C04FD909DD),
pointer_default(unique)
]
interface ISnapinAbout : IUnknown
{
[helpstring("Text for the snap-in description box")]
HRESULT GetSnapinDescription([ out] LPOLESTR* lpDescription);
[helpstring("Provider name")]
HRESULT GetProvider([out] LPOLESTR* lpName);
[helpstring("Version number for the snap-in")]
HRESULT GetSnapinVersion([out] LPOLESTR* lpVersion);
[helpstring("Main icon for about box")]
HRESULT GetSnapinImage([out] HICON* hAppIcon);
[helpstring("Static folder images for scope and result panes")]
HRESULT GetStaticFolderImage([out] HBITMAP* hSmallImage,
[out] HBITMAP* hSmallImageOpen,
[out] HBITMAP* hLargeImage,
[out] COLORREF* cMask);
};
[
object,
uuid(951ED750-D080-11d0-B197-000000000000),
pointer_default(unique)
]
interface IMenuButton : IUnknown
{
[helpstring("Adds a button")]
HRESULT AddButton([in] int idCommand,[in] LPOLESTR lpButtonText,
[in] LPOLESTR lpTooltipText);
[helpstring("Set an attributes of a button")]
HRESULT SetButton([in] int idCommand,[in] LPOLESTR lpButtonText,
[in] LPOLESTR lpTooltipText);
[helpstring("Set the state of a button")]
HRESULT SetButtonState([in] int idCommand,
[in] MMC_BUTTON_STATE nState,
[in] BOOL bState);
};
[
object,
uuid(A6B15ACE-DF59-11D0-A7DD-00C04FD909DD),
pointer_default(unique)
]
interface ISnapinHelp : IUnknown
{
[helpstring("Get the compiled help file (.chm) from a snap-in to merge")]
HRESULT GetHelpTopic([out] LPOLESTR* lpCompiledHelpFile);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -