It doesn't matter in Delphi or not. You must use the DeviceIoControl function. Read the MSDN article about this.
In short, you will have to select IOCTL codes from the available set. Then you call DeviceIoControl with one of these codes and pass some data, and in the driver you process this request and return something else.
IOCTLS, , ReadFile WriteFile .
", Delphi", . , , Win32/Native Api. , , .