Header discrepancies

My x64 port of InpOut32
Post Reply
New User
Posts: 1
Joined: Mon Sep 06, 2010 4:10 pm

Header discrepancies

Post by PaulG »


I have just discovered this project and am looking to replace the DLPort drivers I currently use. However, I have been struggling with the DlPortWritePortUshort and DlPortReadPortUshort.

To cut a long story short, it seems that they have been incorrectly defined in the inpout32drv.cpp file used to generate the DLL. In the .h file they are defined as

Code: Select all

USHORT  _stdcall DlPortReadPortUshort (USHORT port);
void    _stdcall DlPortWritePortUshort(USHORT port, USHORT Value);
In the .cpp file, they are

Code: Select all

USHORT DlPortReadPortUshort (USHORT port)
void DlPortWritePortUshort (USHORT port, USHORT Value)
They are missing the _stdcall directive. This is also the case for the DlPortReadPortUlong and DlPortWritePortUlong functions though I haven't tried to use those yet.

For information, the DLPort DLL has all the functions as _stdcall

Thanks for the project


User avatar
Site Admin
Posts: 6391
Joined: Sun Apr 06, 2003 11:12 pm

Re: Header discrepancies

Post by phil »

Sorry for the massive delay in answering this - I must have missed the notifications on this post :oops:
Of course you are right - my mistake I'm afraid. I will fix it in the next build.

Thanks for the feedback.
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9, Logitech MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, Intel i5-9600k, Asus Z390-ROG, 16GB DDR4,
nVidia GeForce GTX 970, Evo 970 500Gb NVME, 2x2TB WD Black (RAID1)

Post Reply