]>
git.saurik.com Git - apple/mdnsresponder.git/blob - mDNSWindows/DNSServiceBrowser/WindowsCE/Sources/Application.cpp
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.
17 Change History (most recent first):
19 $Log: Application.cpp,v $
20 Revision 1.3 2006/08/14 23:25:55 cheshire
21 Re-licensed mDNSResponder daemon source code under Apache License, Version 2.0
23 Revision 1.2 2004/07/13 21:24:27 rpantos
24 Fix for <rdar://problem/3701120>.
26 Revision 1.1 2004/06/18 04:04:37 rpantos
29 Revision 1.2 2004/01/30 02:56:33 bradley
30 Updated to support full Unicode display. Added support for all services on www.dns-sd.org.
32 Revision 1.1 2003/08/21 02:16:10 bradley
33 DNSServiceBrowser for HTTP services for Windows CE/PocketPC.
39 #include "DNSServices.h"
41 #include "BrowserDialog.h"
43 #include "Application.h"
48 static char THIS_FILE
[] = __FILE__
;
51 //===========================================================================================================================
53 //===========================================================================================================================
55 BEGIN_MESSAGE_MAP(Application
, CWinApp
)
56 //{{AFX_MSG_MAP(Application)
57 // NOTE - the ClassWizard will add and remove mapping macros here.
58 // DO NOT EDIT what you see in these blocks of generated code!
62 //===========================================================================================================================
64 //===========================================================================================================================
68 //===========================================================================================================================
70 //===========================================================================================================================
72 Application::Application()
78 //===========================================================================================================================
80 //===========================================================================================================================
82 BOOL
Application::InitInstance()
88 dnsInitialized
= FALSE
;
90 err
= DNSServicesInitialize( kDNSFlagAdvertise
, 0 );
93 AfxMessageBox( IDP_SOCKETS_INIT_FAILED
);
96 dnsInitialized
= TRUE
;
98 // Display the main browser dialog.
100 m_pMainWnd
= &dialog
;
103 // Dialog has been closed. Return false to exit the app and not start the app's message pump.
108 DNSServicesFinalize();