Click here to Skip to main content
15,886,110 members
Articles / Desktop Programming / MFC

Which machines in my LAN are running X DBMS

Rate me:
Please Sign up or sign in to vote.
3.00/5 (3 votes)
10 Jun 2009CPOL4 min read 25.5K   245   15  
Use NetServerEnum to find servers running particular services.
#include "stdafx.h"
#include "FindDBServer.h"
#include "FindDBServerDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CFindDBServerApp

BEGIN_MESSAGE_MAP(CFindDBServerApp, CWinApp)
	//{{AFX_MSG_MAP(CFindDBServerApp)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//    DO NOT EDIT what you see in these blocks of generated code!
	//}}AFX_MSG
	ON_COMMAND(ID_HELP, CWinApp::OnHelp)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CFindDBServerApp construction

CFindDBServerApp::CFindDBServerApp()
{
	// TODO: add construction code here,
	// Place all significant initialization in InitInstance
}

/////////////////////////////////////////////////////////////////////////////
// The one and only CFindDBServerApp object

CFindDBServerApp theApp;

/////////////////////////////////////////////////////////////////////////////
// CFindDBServerApp initialization

BOOL CFindDBServerApp::InitInstance()
{
	CFindDBServerDlg dlg;
	
    
    m_pMainWnd = &dlg;
	
    dlg.DoModal();

	// Since the dialog has been closed, return FALSE so that we exit the
	//  application, rather than start the application's message pump.
	return FALSE;
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Pinnacle Business Systems
United States United States

The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

HTTP 404 - File not found
Internet Information Services

Comments and Discussions