News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

impout32 help

Started by JHER VON ARBANEL, June 17, 2006, 08:23:52 PM

Previous topic - Next topic

JHER VON ARBANEL

hi, everyone weeks ago, i download some code where a smart guy use impout32 to read lpt port calling out32 function from the dll
now i have troubles to read from the same port
a look around and i found imp32 function but it doesnt works well
can any body explain which parametres ihave to pass this function

one more

reading the winapi32 help i found that createfile is used to open any port and readfile , writefile , to read and write to the port
i need a little "explanation" more.


one more sorry

is it posible to use the two last techniques to work with USB port??

thxxxxx and keep on hacking,craccking,freaking,and f***ing jejejejje :U




arafel

Quote from: JHER VON ARBANEL on June 17, 2006, 08:23:52 PM
is it posible to use the two last techniques to work with USB port??

USB is quiet different from parallel ports You can not access it as a "port", instead you will need to communicated with the driver of a particular device. Therefore CreateFile can't be used to get an usb handle.

Although there are exceptions when you can use CreateFile:
When dealing with USB modems. Then all you need is to get the handle of an appropriate COM port and use it as a regular file.
Or when communicating with HID devices (mouse, keyboard). CreateFile then ca be used along some other function to receive/send controlĀ  data structures for manipulating the device (e.g. set current mouse cursor position)