AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Treiber Handling

Ein Thema von nanix · begonnen am 24. Dez 2009 · letzter Beitrag vom 30. Dez 2009
Antwort Antwort
Seite 2 von 3     12 3      
Benutzerbild von JamesTKirk
JamesTKirk

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

Re: Treiber Handling

  Alt 24. Dez 2009, 22:19
Zitat von nanix:
ntddk.cpp is like 400kb translating all of it would be craaazyyy.But would be perfect and mad at the same time.
That's why I decided to follow the "translate on demand" approach. At least until the port is mature enough to "stand on its own feet" and others start to contribute.

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

n/a Beiträge
 
#12

Re: Treiber Handling

  Alt 24. Dez 2009, 22:22
CPUID is not a privileged instruction and can be used in user mode (ring 3). So there is no need to use a driver for this instruction.

RDMSR is mostly usable from user mode, example is the TSC MSR register 10h, so RDTSC is also executable in user mode.
  Mit Zitat antworten Zitat
nanix
(Gast)

n/a Beiträge
 
#13

Re: Treiber Handling

  Alt 24. Dez 2009, 22:29
Yea correct Muetze but then you got PCI Config Read and Write which very usefull IMHO
  Mit Zitat antworten Zitat
Muetze1
(Gast)

n/a Beiträge
 
#14

Re: Treiber Handling

  Alt 24. Dez 2009, 23:02
Zitat von nanix:
Yea correct Muetze but then you got PCI Config Read and Write which very usefull IMHO :-D
Why write? PCI Configuration Registered are written (and configured) partly by the BIOS (PnP OS false) and at least by the OS. The OS is the system knowing all memory, port and address spaces and can configure the devices. When you write anything under an OS like Windows to these registers, you get in trouble as the OS does not get informed about these changes.

If you just want to get information for an system information tool, you can use the WMI and HAL interfaces to gather these informations.

All your posts just reminds me of razor...
  Mit Zitat antworten Zitat
nanix
(Gast)

n/a Beiträge
 
#15

Re: Treiber Handling

  Alt 25. Dez 2009, 00:25
Becouse i will make write.No i am not Razor.I find this forum very interesting.Lots of good people here.Sad to see you equal every english people
  Mit Zitat antworten Zitat
alzaimar
(Moderator)

Registriert seit: 6. Mai 2005
Ort: Berlin
4.956 Beiträge
 
Delphi 2007 Enterprise
 
#16

Re: Treiber Handling

  Alt 25. Dez 2009, 14:06
Zitat von nanix:
No i am not Razor.
"Only the true Messiah denies His divinity."

Zitat von nanix:
Sad to see you equal every english people
Sure you're english?
"Wenn ist das Nunstruck git und Slotermeyer? Ja! Beiherhund das Oder die Flipperwaldt gersput!"
(Monty Python "Joke Warefare")
  Mit Zitat antworten Zitat
nanix
(Gast)

n/a Beiträge
 
#17

Re: Treiber Handling

  Alt 25. Dez 2009, 14:14
Yes i speak english.I mean english as english i am only one on this forum.
  Mit Zitat antworten Zitat
nanix
(Gast)

n/a Beiträge
 
#18

Re: Treiber Handling

  Alt 27. Dez 2009, 14:27
Ok i fully translated it.

But now how do i convert the units to lazarus.And how would the make file look.
Thanks!
  Mit Zitat antworten Zitat
Benutzerbild von JamesTKirk
JamesTKirk

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

Re: Treiber Handling

  Alt 27. Dez 2009, 16:58
Just try to compile the units with FPC.

E. g. in a shell run

Code:
fpc -Pi386 -FuPath/To/Other/Units yourunit.pas
When you try this on Windows you should use "\" of course. If you need to compile for Win64 then you need to use this instead of "-Pi386":

Code:
-Px86_64 -Twin64
If you get errors you might need to add the following between "unit bla;" and "interface":

Delphi-Quellcode:
{$ifdef fpc}
  {$mode delphi}{$H+}
{$endif}
Also you might need to correct some types. If you have types that are different from Delphi to Free Pascal then use the following construct:

{$ifdef fpc}TMyFPCType{$else}TMyDelphiType{$endif} You can also use this inside the declaration of a function.

If you have errors you can't solve by yourself, then you might start a new topic in the FPC subforum.

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

n/a Beiträge
 
#20

Re: Treiber Handling

  Alt 27. Dez 2009, 17:00
I tested the driver on a 32 bit Vista Home Premium and it works OK.Just like the original one coded with C.Now just the 64 bit one.
  Mit Zitat antworten Zitat
Antwort Antwort
Seite 2 von 3     12 3      


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 19:09 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz