Click here to Skip to main content
15,893,668 members
Articles / Programming Languages / C++

Kport Direct Access I/O Ports Under Win NT/2000/XP

Rate me:
Please Sign up or sign in to vote.
3.47/5 (9 votes)
6 Apr 2005CPOL 62.6K   2.8K   29  
Two simple functions for accessing I/O ports, skiping H.A.L.
// Kports-SampleDlgDlg.h: archivo de encabezado
//

#pragma once


// Cuadro de di�logo de CKportsSampleDlgDlg
class CKportsSampleDlgDlg : public CDialog
{
// Construcci�n
public:
	CKportsSampleDlgDlg(CWnd* pParent = NULL);	// Constructor est�ndar

// Datos del cuadro de di�logo
	enum { IDD = IDD_KPORTSSAMPLEDLG_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// Compatibilidad con DDX/DDV


// Implementaci�n
protected:
	HICON m_hIcon;

	// Funciones de asignaci�n de mensajes generadas
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedRead();
	afx_msg void OnBnClickedWrite();
	UINT m_nleido;
	UINT m_nescrito;
};

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
Web Developer
Argentina Argentina
I'm Javier Güerino Palacios.
I know MFC, PHP, C, C++, C#, Java, ASM-8086.
I study Ing. Electronics and Ing. Information systems.

Comments and Discussions