AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Win32/Win64 API (native code) Delphi Hardware Access without Driver?Possible?
Thema durchsuchen
Ansicht
Themen-Optionen

Hardware Access without Driver?Possible?

Ein Thema von nanix · begonnen am 20. Dez 2009 · letzter Beitrag vom 24. Dez 2009
 
Benutzerbild von JamesTKirk
JamesTKirk

Registriert seit: 9. Sep 2004
Ort: München
604 Beiträge
 
FreePascal / Lazarus
 
#10

Re: Hardware Access without Driver?Possible?

  Alt 24. Dez 2009, 20:24
Zitat von nanix:
Drivers in delphi are just as good as one written in C.Sorry but its true!
I never doubted this. This is the reason I began the port of Free Pascal in the first place.

Zitat von nanix:
If you have any test things that you want me to test PM me.I got an x64 cpu.
My current plan is to test this with a x86 QEMU VM. I only need to get a x64 version of a 2003 or XP (as I'm a stundent I'm able to download this legally ). But I might come back to one, once the first tests are successful.

Zitat von nanix:
Its not that delphi can't make drivers.It can but its format won't link sys files.Thats we just use a makefile
This is not the REASON. The format of sys files is not different to that of "normal" Windows executable. The only real differences are the following:
  • The subsystem field is set to PE_SUBSYSTEM_NATIVE (value 1)
  • The file may only link to ntoskrnl.exe and hal.dll (and other drivers like ndis.sys)
  • The checksum needs to be set
  • The entry point must be different

The points 1, 3 and 4 can be done with external tools (my port only needs a tool for point 3), but the second point relies on a modified RTL that uses the correct functions.

You are using a makefile, because it simplifies all these things which force Delphi to produce device drivers. (this "forcing" is not meant in a negative way - don't get me wrong here)

Regards,
Sven
Sven
[Free Pascal Compiler Entwickler]
this post is printed on 100% recycled electrons
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 03:17 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz