mirror of https://github.com/tongzx/nt5src
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.
72 lines
2.2 KiB
72 lines
2.2 KiB
//////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Copyright (c) 2000-2001 Microsoft Corporation
|
|
//
|
|
// Module Name:
|
|
// ClusDomainPage.h
|
|
//
|
|
// Maintained By:
|
|
// David Potter (DavidP) 21-MAR-2001
|
|
// Geoffrey Pease (GPease) 12-MAY-2000
|
|
//
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
#pragma once
|
|
|
|
class CClusDomainPage
|
|
: public ITaskGetDomainsCallback
|
|
{
|
|
friend class CClusCfgWizard;
|
|
|
|
private: // data
|
|
HWND m_hwnd; // Our HWND
|
|
IServiceProvider * m_psp; // Service Manager
|
|
BSTR * m_pbstrClusterName; // Cluster Name buffer
|
|
ECreateAddMode m_ecamCreateAddMode;// Creating? Adding?
|
|
UINT m_idsDesc; // Resource ID for domain description string.
|
|
BOOL m_fDisplayPage:1; // Indicates whether page should be displayed or not
|
|
|
|
// IUnknown
|
|
LONG m_cRef;
|
|
ITaskGetDomains * m_ptgd; // Get Domains Task
|
|
|
|
// ITaskGetDomainsCallback
|
|
|
|
private: // methods
|
|
CClusDomainPage(
|
|
IServiceProvider * pspIn
|
|
, ECreateAddMode ecamCreateAddModeIn
|
|
, BSTR * pbstrClusterIn
|
|
, UINT idsDescIn
|
|
);
|
|
virtual ~CClusDomainPage( void );
|
|
|
|
LRESULT
|
|
OnInitDialog( void );
|
|
LRESULT
|
|
OnNotify( WPARAM idCtrlIn, LPNMHDR pnmhdrIn );
|
|
LRESULT
|
|
OnNotifySetActive( void );
|
|
LRESULT
|
|
OnNotifyWizNext( void );
|
|
LRESULT
|
|
OnNotifyQueryCancel( void );
|
|
LRESULT
|
|
OnCommand( UINT idNotificationIn, UINT idControlIn, HWND hwndSenderIn );
|
|
HRESULT
|
|
HrUpdateWizardButtons( BOOL fIgnoreCombBoxIn );
|
|
|
|
public: // methods
|
|
static INT_PTR CALLBACK
|
|
S_DlgProc( HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam );
|
|
|
|
// IUnknown
|
|
STDMETHOD( QueryInterface )( REFIID riidIn, LPVOID * ppvOut );
|
|
STDMETHOD_( ULONG, AddRef )( void );
|
|
STDMETHOD_( ULONG, Release )( void );
|
|
|
|
// ITaskGetDomainsCallback
|
|
STDMETHOD( ReceiveDomainResult )( HRESULT hrIn );
|
|
STDMETHOD( ReceiveDomainName )( LPCWSTR pcszDomainIn );
|
|
|
|
}; //*** class CClusDomainPage
|