1 /* -*- Mode: C; tab-width: 4 -*-
3 * Copyright (c) 2002-2004 Apple Computer, Inc. All rights reserved.
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
18 #ifndef _ConfigPropertySheet_h
19 #define _ConfigPropertySheet_h
22 #include "ServicesPage.h"
23 #include "RegistrationPage.h"
24 #include "BrowsingPage.h"
31 //---------------------------------------------------------------------------------------------------------------------------
32 // CConfigPropertySheet
33 //---------------------------------------------------------------------------------------------------------------------------
35 class CConfigPropertySheet
: public CPropertySheet
39 CConfigPropertySheet();
40 virtual ~CConfigPropertySheet();
42 typedef std::list
<CString
> StringList
;
44 StringList m_browseDomains
;
48 CServicesPage m_firstPage
;
49 CRegistrationPage m_secondPage
;
50 CBrowsingPage m_thirdPage
;
52 //{{AFX_VIRTUAL(CConfigPropertySheet)
55 DECLARE_DYNCREATE(CConfigPropertySheet
)
57 //{{AFX_MSG(CConfigPropertySheet)
61 afx_msg BOOL
OnInitDialog();
62 afx_msg BOOL
OnCommand( WPARAM wParam
, LPARAM lParam
);
63 afx_msg LRESULT
OnDataReady( WPARAM inWParam
, LPARAM inLParam
);
64 afx_msg LRESULT
OnRegistryChanged( WPARAM inWParam
, LPARAM inLParam
);
76 DecodeDomainName( const char * raw
, CString
& decoded
);
82 DNSServiceFlags flags
,
83 uint32_t interfaceIndex
,
84 DNSServiceErrorType errorCode
,
85 const char * replyDomain
,
89 // This thread will watch for registry changes
91 static unsigned WINAPI
99 HANDLE m_threadExited
;
100 DNSServiceRef m_browseDomainsRef
;
101 CRITICAL_SECTION m_lock
;