Article View: cn.bbs.comp.program
Article #1125Read/Write I/O port in Windows 95 applications
From: �ϵ�
Date: Wed, 22 Apr 1998 00:00
Date: Wed, 22 Apr 1998 00:00
45 lines
2670 bytes
2670 bytes
������: bluesea (����), ����: Win95_win3.x
�� ��: Read/Write I/O port in Windows 95 applications
����վ: BBS ˮľ�廪վ (Sun Dec 14 21:42:26 1997)
�� �� wlm (wlm) �Ĵ������ᵽ: ��
: ����Win95�������кIO�˿ڣ�outportb �������ˣ�
(1) You can read/write a port with inport()/outport() functions
or inline assembly within a 16-bit application or DLL in
Windows 95;
(2) Access the hardware resources by the standard way of VxD.
This is the recommended method of Win32 development. To do
this, u may have know something about DDK;
(3) Some third-party Tools such as Windriver or WinTools ...
may also help. You have to gather more information from inet;
(4) For a compromise, your Win32 application can also call a 16-bit
DLL in witch u can use traditional I/O method. This's called
'Thunk' technology and u can get more knowledge from online
help and docs of MSVC 4.x-5.x. There are 3 difference thunk,
for Win32s, Win32 of 95 and Windows NT 4.x and they aren't
compatible very well each other.
(5) Also, a MS-DOS driver (.sys in config.sys or exe/com in autoexec)
can work with Windows 95 quite well. you can control the driver
by software interrupt (int xxx) or by the way of a piece of
shared MS-DOS memory. This method is not suited for the
high-speed / large-quantity data transfer usage.
Apologized for my poor English.
--
0;37m_______________________________________________________________________________0m
7;44m 0m
7;44m ��ɫ����Ϊ��ɫ̫Ũ��Ե�ʣ����ɫӵ�������е�ɫ�ʡ��� 0m
7;44m_______________________________________________________________________________0m
6m�� ��:��bluesea � Dec 14 21:48:20 �ı��ġ�[FROM: 202.112.145.96]m
m7m�� ��Դ:��BBS ˮľ�廪վ bbs.net.tsinghua.edu.cn��[FROM: 202.112.145.96]m
--
[m[1;33m�� ��Դ:���ϴ�С�ٺ���Ϣ����վ bbs.nju.edu.cn��[FROM: a507yjh.nju.edu][m
Technical Details
Message-ID:
<3OCidJ$tb5@bbs.nju.edu.cn>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: fc86e,6a2d08bfb968593b,start X-Google-Attributes: gidfc86e,public From: mendy.bbs@bbs.nju.edu.cn (�ϵ�) Subject: Read/Write I/O port in Windows 95 applications Date: 1998/04/22 Message-ID: <3OCidJ$tb5@bbs.nju.edu.cn> X-Deja-AN: 347439446 X-Filename: Programming/M.893244259.A Organization: nju_bbs Newsgroups: cn.bbs.comp.program