[fpc-pascal] porting fpIoctl() to windows
M.Santhoff at t-online.de
Mon May 29 23:53:42 CEST 2006
Am Montag, den 29.05.2006, 23:30 +0200 schrieb Burkhard Carstens:
> Am Montag, 29. Mai 2006 22:47 schrieb Marc Santhoff:
> > Hi,
> > on FreeBSD I use fpOpen, fpIoctl, etc. to drive some generic device.
> > In my porting efforts to win32 I have found the more generic
> > FileOpen, but no equivalent of fpIoctl or it's underlying unix system
> > call ioctl().
> > An old win32.hlp told me Windows has "DeviceIoCtl()", but I'm not
> > really sure if this is what I need. At least there is ntohing about
> > this funtion in the RTL sources of fps 2.0.2.
> DeviceIOControl is the one I use in Delphi to talk to my vxd driver ..
> it is linked to kernel32.dll. Should be pretty much what you want.
Okay, I'll give it a try. I oly wanted to make sure there is no meore
general (in sense of platform independant) way to do it and my docs are
not to old.
> > How can I port this calls?
> check, how other winapi calls are implemented ..
> I am not that far yet. Did it in Delphi, but now trying to do it on
> linux ..
This is where I'm coming from (FreeBSD should be as much Posix as Linux,
Somewhere deep down in the darkness of NT and OS/2 there must be
artefacts of Unix in Windows 2k and XP. ;)
More information about the fpc-pascal