Inp & Out Functions (XP Friendly and very easy to use)

Share your advanced PureBasic knowledge/code with the community.
kawasaki
Enthusiast
Enthusiast
Posts: 182
Joined: Thu Oct 16, 2003 8:09 pm

Inp & Out Functions (XP Friendly and very easy to use)

Post by kawasaki »

Code updated for 5.20+

To use Inp and Out as functions in whatever you may be brewing in purebasic, you will need the following;


The InpOut32.dll from: Here


And the following source code;

Code: Select all

OpenLibrary(0,"InpOut32.dll")

Procedure Inp(Port)
  CallFunction(0,"Inp32",Port)
EndProcedure

Procedure Out(Port,Value)
  CallFunction(0,"Out32",Port,Value)
EndProcedure