123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510 |
- /////////////////////////////////////////////////////////////////////////////
- //
- // Copyright (c) 1996-1997 Microsoft Corporation
- //
- // Module Name:
- // CluAdmEx.idl
- //
- // Abstract:
- // Definition of COM interfaces for Cluster Administrator extensions.
- //
- // Author:
- // davidp August 22, 1996
- //
- // Revision History:
- // davidp June 23, 1998
- // Added IWCWizard97Callback and IWEExtendWizard97.
- //
- // Notes:
- // The following interfaces defined below are used to get information
- // about the object(s) for which a property page, wizard, or context
- // menu is being displayed. These interfaces may be queried for by
- // the extension using the piData IUnknown interface pointer.
- //
- // IGetClusterPropSheetInfo
- // IGetClusterDataInfo
- // IGetClusterObjectInfo
- // IGetClusterNodeInfo
- // IGetClusterGroupInfo
- // IGetClusterResourceInfo
- // IGetClusterNetworkInfo
- // IGetClusterNetInterfaceInfo
- //
- // The following interfaces defined below are implemented by extensions
- // are are used to extend property sheets, wizards, and context menus.
- //
- // IWEExtendPropertySheet
- // IWEExtendWizard
- // IWEExtendWizard97
- // IWEExtendContextMenu
- // IWEInvokeCommand
- //
- // The following interfaces defined below are implemented by CluAdmin
- // and are passed to the extension to allow it to add its extension
- // property pages, wizard pages, or context menu items.
- //
- // IWCPropertySheetCallback
- // IWCWizardCallback
- // IWCWizard97Callback
- // IWCContextMenuCallback
- //
- /////////////////////////////////////////////////////////////////////////////
- #ifndef _CLUADMEX_IDL_
- #define _CLUADMEX_IDL_
- import "oaidl.idl";
- import "clusapi.h";
- // Define HPROPSHEETPAGE because we can't include prsht.h.
- #define HPROPSHEETPAGE LONG *
- /////////////////////////////////////////////////////////////////////////////
- // Cluster Administrator Extensions type definitions
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////
- //
- // CLUADMEX_OBJECT_TYPE
- //
- // Enumeration of the types of objects that can be administered.
- //
- /////////////////////////////////////////////////////////////////////////
- typedef enum _CLUADMEX_OBJECT_TYPE
- {
- CLUADMEX_OT_NONE = 0,
- CLUADMEX_OT_CLUSTER,
- CLUADMEX_OT_NODE,
- CLUADMEX_OT_GROUP,
- CLUADMEX_OT_RESOURCE,
- CLUADMEX_OT_RESOURCETYPE,
- CLUADMEX_OT_NETWORK,
- CLUADMEX_OT_NETINTERFACE
- } CLUADMEX_OBJECT_TYPE;
- /////////////////////////////////////////////////////////////////////////////
- // Cluster Administrator Extensions data interface definitions
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////
- //
- // IGetClusterUIInfo
- //
- /////////////////////////////////////////////////////////////////////////
- [
- object,
- uuid(97DEDE50-FC6B-11CF-B5F5-00A0C90AB505),
- helpstring("IGetClusterUIInfo Interface"),
- pointer_default(unique)
- ]
- interface IGetClusterUIInfo : IUnknown
- {
- import "oaidl.idl";
- [local] HRESULT GetClusterName(
- [out] BSTR lpszName,
- [in, out] LONG * pcchName
- );
- [local] LCID GetLocale(void);
- [local] HFONT GetFont(void);
- [local] HICON GetIcon(void);
- }; //*** interface IGetClusterUIInfo
- /////////////////////////////////////////////////////////////////////////
- //
- // IGetClusterDataInfo
- //
- /////////////////////////////////////////////////////////////////////////
- [
- object,
- uuid(97DEDE51-FC6B-11CF-B5F5-00A0C90AB505),
- helpstring("IGetClusterDataInfo Interface"),
- pointer_default(unique)
- ]
- interface IGetClusterDataInfo : IUnknown
- {
- import "oaidl.idl";
- [local] HRESULT GetClusterName(
- [out] BSTR lpszName,
- [in, out] LONG * pcchName
- );
- [local] HCLUSTER GetClusterHandle(void);
- [local] LONG GetObjectCount(void);
- }; //*** interface IGetClusterDataInfo
- /////////////////////////////////////////////////////////////////////////
- //
- // IGetClusterObjectInfo
- //
- /////////////////////////////////////////////////////////////////////////
- [
- object,
- uuid(97DEDE52-FC6B-11CF-B5F5-00A0C90AB505),
- helpstring("IGetClusterObjectInfo Interface"),
- pointer_default(unique)
- ]
- interface IGetClusterObjectInfo : IUnknown
- {
- import "oaidl.idl";
- [local] HRESULT GetObjectName(
- [in] LONG lObjIndex,
- [out] BSTR lpszName,
- [in, out] LONG * pcchName
- );
- [local] CLUADMEX_OBJECT_TYPE GetObjectType(
- [in] LONG lObjIndex
- );
- }; //*** interface IGetClusterObjectInfo
- /////////////////////////////////////////////////////////////////////////
- //
- // IGetClusterNodeInfo
- //
- /////////////////////////////////////////////////////////////////////////
- [
- object,
- uuid(97DEDE53-FC6B-11CF-B5F5-00A0C90AB505),
- helpstring("IGetClusterNodeInfo Interface"),
- pointer_default(unique)
- ]
- interface IGetClusterNodeInfo : IUnknown
- {
- import "oaidl.idl";
- [local] HNODE GetNodeHandle(
- [in] LONG lObjIndex
- );
- }; //*** interface IGetClusterObjectInfo
- /////////////////////////////////////////////////////////////////////////
- //
- // IGetClusterGroupInfo
- //
- /////////////////////////////////////////////////////////////////////////
- [
- object,
- uuid(97DEDE54-FC6B-11CF-B5F5-00A0C90AB505),
- helpstring("IGetClusterGroupInfo Interface"),
- pointer_default(unique)
- ]
- interface IGetClusterGroupInfo : IUnknown
- {
- import "oaidl.idl";
- [local] HGROUP GetGroupHandle(
- [in] LONG lObjIndex
- );
- }; //*** interface IGetClusterGroupInfo
- /////////////////////////////////////////////////////////////////////////
- //
- // IGetClusterResourceInfo
- //
- /////////////////////////////////////////////////////////////////////////
- [
- object,
- uuid(97DEDE55-FC6B-11CF-B5F5-00A0C90AB505),
- helpstring("IGetClusterResourceInfo Interface"),
- pointer_default(unique)
- ]
- interface IGetClusterResourceInfo : IUnknown
- {
- import "oaidl.idl";
- [local] HRESOURCE GetResourceHandle(
- [in] LONG lObjIndex
- );
- [local] HRESULT GetResourceTypeName(
- [in] LONG lObjIndex,
- [out] BSTR lpszResTypeName,
- [in, out] LONG * pcchResTypeName
- );
- [local] BOOL GetResourceNetworkName(
- [in] LONG lObjIndex,
- [out] BSTR lpszNetName,
- [in, out] ULONG * pcchNetName
- );
- }; //*** interface IGetClusterResourceInfo
- /////////////////////////////////////////////////////////////////////////
- //
- // IGetClusterNetworkInfo
- //
- /////////////////////////////////////////////////////////////////////////
- [
- object,
- uuid(97DEDE56-FC6B-11CF-B5F5-00A0C90AB505),
- helpstring("IGetClusterNetworkInfo Interface"),
- pointer_default(unique)
- ]
- interface IGetClusterNetworkInfo : IUnknown
- {
- import "oaidl.idl";
- [local] HNETWORK GetNetworkHandle(
- [in] LONG lObjIndex
- );
- }; //*** interface IGetClusterNetworkInfo
- /////////////////////////////////////////////////////////////////////////
- //
- // IGetClusterNetInterfaceInfo
- //
- /////////////////////////////////////////////////////////////////////////
- [
- object,
- uuid(97DEDE57-FC6B-11CF-B5F5-00A0C90AB505),
- helpstring("IGetClusterNetInterfaceInfo Interface"),
- pointer_default(unique)
- ]
- interface IGetClusterNetInterfaceInfo : IUnknown
- {
- import "oaidl.idl";
- [local] HNETINTERFACE GetNetInterfaceHandle(
- [in] LONG lObjIndex
- );
- }; //*** interface IGetClusterNetInterfaceInfo
- /////////////////////////////////////////////////////////////////////////////
- // Cluster Administrator Extensions interface definitions
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////
- //
- // IWCPropertySheetCallback
- //
- /////////////////////////////////////////////////////////////////////////
- [
- object,
- uuid(97DEDE60-FC6B-11CF-B5F5-00A0C90AB505),
- helpstring("IWCPropertySheetCallback Interface"),
- pointer_default(unique)
- ]
- interface IWCPropertySheetCallback : IUnknown
- {
- import "oaidl.idl";
- HRESULT AddPropertySheetPage(
- [in] HPROPSHEETPAGE hpage
- );
- }; //*** interface IWCPropertySheetCallback
- /////////////////////////////////////////////////////////////////////////
- //
- // IWEExtendPropertySheet
- //
- /////////////////////////////////////////////////////////////////////////
- [
- object,
- uuid(97DEDE61-FC6B-11CF-B5F5-00A0C90AB505),
- helpstring("IWSExtendPropertySheet Interface"),
- pointer_default(unique)
- ]
- interface IWEExtendPropertySheet : IUnknown
- {
- import "oaidl.idl";
- HRESULT CreatePropertySheetPages(
- [in] IUnknown * piData,
- [in] IWCPropertySheetCallback * piCallback
- );
- }; //*** interface IWEExtendPropertySheet
- /////////////////////////////////////////////////////////////////////////
- //
- // IWCWizardCallback
- //
- /////////////////////////////////////////////////////////////////////////
- [
- object,
- uuid(97DEDE62-FC6B-11CF-B5F5-00A0C90AB505),
- helpstring("IWCWizardCallback Interface"),
- pointer_default(unique)
- ]
- interface IWCWizardCallback : IUnknown
- {
- import "oaidl.idl";
- HRESULT AddWizardPage(
- [in] HPROPSHEETPAGE hpage
- );
- HRESULT EnableNext(
- [in] HPROPSHEETPAGE hpage,
- [in] BOOL bEnable
- );
- }; //*** interface IWCWizardCallback
- /////////////////////////////////////////////////////////////////////////
- //
- // IWEExtendWizard
- //
- /////////////////////////////////////////////////////////////////////////
- [
- object,
- uuid(97DEDE63-FC6B-11CF-B5F5-00A0C90AB505),
- helpstring("IWEExtendWizard Interface"),
- pointer_default(unique)
- ]
- interface IWEExtendWizard : IUnknown
- {
- import "oaidl.idl";
- HRESULT CreateWizardPages(
- [in] IUnknown * piData,
- [in] IWCWizardCallback * piCallback
- );
- }; //*** interface IWEExtendWizard
- /////////////////////////////////////////////////////////////////////////
- //
- // IWCContextMenuCallback
- //
- /////////////////////////////////////////////////////////////////////////
- [
- object,
- uuid(97DEDE64-FC6B-11CF-B5F5-00A0C90AB505),
- helpstring("IWCContextMenuCallback Interface"),
- pointer_default(unique)
- ]
- interface IWCContextMenuCallback : IUnknown
- {
- import "oaidl.idl";
- HRESULT AddExtensionMenuItem(
- [in] BSTR lpszName,
- [in] BSTR lpszStatusBarText,
- [in] ULONG nCommandID,
- [in] ULONG nSubmenuCommandID,
- [in] ULONG uFlags
- );
- }; //*** interface IWCContextMenuCallback
- /////////////////////////////////////////////////////////////////////////
- //
- // IWEExtendContextMenu
- //
- /////////////////////////////////////////////////////////////////////////
- [
- object,
- uuid(97DEDE65-FC6B-11CF-B5F5-00A0C90AB505),
- helpstring("IWEExtendContextMenu Interface"),
- pointer_default(unique)
- ]
- interface IWEExtendContextMenu : IUnknown
- {
- import "oaidl.idl";
- HRESULT AddContextMenuItems(
- [in] IUnknown * piData,
- [in] IWCContextMenuCallback * piCallback
- );
- }; //*** interface IWEExtendContextMenu
- /////////////////////////////////////////////////////////////////////////
- //
- // IWEInvokeCommand
- //
- /////////////////////////////////////////////////////////////////////////
- [
- object,
- uuid(97DEDE66-FC6B-11CF-B5F5-00A0C90AB505),
- helpstring("IWEInvokeCommand Interface"),
- pointer_default(unique)
- ]
- interface IWEInvokeCommand : IUnknown
- {
- import "oaidl.idl";
- HRESULT InvokeCommand(
- [in] ULONG nCommandID,
- [in] IUnknown * piData
- );
- }; //*** interface IWEInvokeCommand
- /////////////////////////////////////////////////////////////////////////
- //
- // IWCWizard97Callback
- //
- /////////////////////////////////////////////////////////////////////////
- [
- object,
- uuid(97DEDE67-FC6B-11CF-B5F5-00A0C90AB505),
- helpstring("IWCWizard97Callback Interface"),
- pointer_default(unique)
- ]
- interface IWCWizard97Callback : IUnknown
- {
- import "oaidl.idl";
- HRESULT AddWizard97Page(
- [in] HPROPSHEETPAGE hpage
- );
- HRESULT EnableNext(
- [in] HPROPSHEETPAGE hpage,
- [in] BOOL bEnable
- );
- }; //*** interface IWCWizard97Callback
- /////////////////////////////////////////////////////////////////////////
- //
- // IWEExtendWizard97
- //
- /////////////////////////////////////////////////////////////////////////
- [
- object,
- uuid(97DEDE68-FC6B-11CF-B5F5-00A0C90AB505),
- helpstring("IWEExtendWizard97 Interface"),
- pointer_default(unique)
- ]
- interface IWEExtendWizard97 : IUnknown
- {
- import "oaidl.idl";
- HRESULT CreateWizard97Pages(
- [in] IUnknown * piData,
- [in] IWCWizard97Callback * piCallback
- );
- }; //*** interface IWEExtendWizard97
- /////////////////////////////////////////////////////////////////////////////
- #endif // _CLUADMEX_IDL_
|