[fpc-pascal] porting fpIoctl() to windows

Burkhard Carstens fpc at bcsoft.de
Mon May 29 23:30:33 CEST 2006


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.

> 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 ..

Burkhard




More information about the fpc-pascal mailing list