]>
git.saurik.com Git - apple/mdnsresponder.git/blob - mDNSWindows/Applications/DNSServiceBrowser/WindowsCE/Sources/Application.cpp
2 * Copyright (c) 2002-2003 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
21 * @APPLE_LICENSE_HEADER_END@
23 Change History (most recent first):
25 $Log: Application.cpp,v $
26 Revision 1.1 2003/08/21 02:16:10 bradley
27 Rendezvous Browser for HTTP services for Windows CE/PocketPC.
33 #include "DNSServices.h"
35 #include "BrowserDialog.h"
37 #include "Application.h"
42 static char THIS_FILE
[] = __FILE__
;
45 //===========================================================================================================================
47 //===========================================================================================================================
49 BEGIN_MESSAGE_MAP(Application
, CWinApp
)
50 //{{AFX_MSG_MAP(Application)
51 // NOTE - the ClassWizard will add and remove mapping macros here.
52 // DO NOT EDIT what you see in these blocks of generated code!
56 //===========================================================================================================================
58 //===========================================================================================================================
62 //===========================================================================================================================
64 //===========================================================================================================================
66 Application::Application()
72 //===========================================================================================================================
74 //===========================================================================================================================
76 BOOL
Application::InitInstance()
82 dnsInitialized
= FALSE
;
84 if( !AfxSocketInit() )
86 AfxMessageBox( IDP_SOCKETS_INIT_FAILED
);
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();