Click here to Skip to main content
15,893,644 members
Articles / Desktop Programming / MFC

Enumerating serial ports - W2K style.

Rate me:
Please Sign up or sign in to vote.
4.56/5 (9 votes)
20 Jul 20021 min read 215.6K   7.6K   37  
Enumerating the serial ports using the SetupDi* API provided with Win2K and later
// SerialEnum.h : main header file for the PROJECT_NAME application
//

#pragma once

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"		// main symbols


// CSerialEnumApp:
// See SerialEnum.cpp for the implementation of this class
//

class CSerialEnumApp : public CWinApp
{
public:
	CSerialEnumApp();

// Overrides
	public:
	virtual BOOL InitInstance();

// Implementation

	DECLARE_MESSAGE_MAP()
};

extern CSerialEnumApp theApp;

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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions