Leaked source code of windows server 2003
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.
|
|
// Copyright (C) 2000 Microsoft Corporation
//
// Dynamic DNS detection/diagnostic page
//
// 22 Aug 2000 sburns
#ifndef DYNAMICDNSPAGE_HPP_INCLUDED
#define DYNAMICDNSPAGE_HPP_INCLUDED
#include "MultiLineEditBoxThatForwardsEnterKey.hpp"
class DynamicDnsPage : public DCPromoWizardPage { public:
DynamicDnsPage() throw (Win::Error);
protected:
virtual ~DynamicDnsPage();
// Dialog overrides
virtual void OnInit();
virtual bool OnCommand( HWND windowFrom, unsigned controlIdFrom, unsigned code);
virtual bool OnNotify( HWND windowFrom, UINT_PTR controlIDFrom, UINT code, LPARAM lParam);
// PropertyPage overrides
virtual bool OnSetActive();
// WizardPage overrides
virtual bool OnWizBack();
// DCPromoWizardPage overrides
virtual int Validate();
private:
enum DiagnosticCode { // These codes correspond to the message numbers in the spec diagram
// of the diagnostic algorithm.
SUCCESS = 1, SERVER_CANT_UPDATE = 2, ERROR_TESTING_SERVER = 3, UNEXPECTED_FINDING_SERVER = 4, ERROR_FINDING_SERVER = 6, ZONE_IS_ROOT = 8, TIMEOUT = 11 };
DiagnosticCode DiagnoseDnsRegistration( const String& newDomainDnsName, DNS_STATUS& errorCode, String& authZone, String& authServer, String& authServerIpAddress);
void DoDnsTestAndUpdatePage();
void SelectRadioButton(int buttonResId);
void UpdateMessageWindow(const String& message);
void ShowButtons(bool hidden);
DiagnosticCode diagnosticResultCode; String details; String helpTopicLink; bool needToKillSelection; LONG originalMessageHeight; unsigned testPassCount; MultiLineEditBoxThatForwardsEnterKey multiLineEdit; static HINSTANCE richEditHInstance;
// not defined; no copying allowed
DynamicDnsPage(const DynamicDnsPage&); const DynamicDnsPage& operator=(const DynamicDnsPage&); };
#endif // DYNAMICDNSPAGE_HPP_INCLUDED
|