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.
23 #include <DebugServices.h>
27 //---------------------------------------------------------------------------------------------------------------------------
29 //---------------------------------------------------------------------------------------------------------------------------
31 class CSecondPage
: public CPropertyPage
39 //{{AFX_DATA(CSecondPage)
40 enum { IDD
= IDR_APPLET_PAGE2
};
43 //{{AFX_VIRTUAL(CSecondPage)
44 virtual void DoDataExchange(CDataExchange
* pDX
); // DDX/DDV support
47 DECLARE_DYNCREATE(CSecondPage
)
49 //{{AFX_MSG(CSecondPage)
54 afx_msg
void OnBnClickedSharedSecret();
55 afx_msg
void OnBnClickedAdvertise();
57 void OnAddRegistrationDomain( CString
& domain
);
58 void OnRemoveRegistrationDomain( CString
& domain
);
62 typedef std::list
<CString
> StringList
;
84 SetModified( BOOL bChanged
= TRUE
);
90 Commit( CComboBox
& box
, HKEY key
, DWORD enabled
);
93 CreateKey( CString
& name
, DWORD enabled
);
96 RegQueryString( HKEY key
, CString valueName
, CString
& value
);
98 CComboBox m_regDomainsBox
;
99 CButton m_advertiseServicesButton
;
100 CButton m_sharedSecretButton
;
105 afx_msg
void OnCbnSelChange();
106 afx_msg
void OnCbnEditChange();