![]() |
Re: Treiber Handling
Zitat:
Regards, Sven |
Re: Treiber Handling
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. |
Re: Treiber Handling
Yea correct Muetze but then you got PCI Config Read and Write which very usefull IMHO :-D
|
Re: Treiber Handling
Zitat:
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... |
Re: Treiber Handling
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 :oops:
|
Re: Treiber Handling
Zitat:
Zitat:
|
Re: Treiber Handling
Yes i speak english.I mean english as english i am only one on this forum.
|
Re: Treiber Handling
:) Ok i fully translated it.
But now how do i convert the units to lazarus.And how would the make file look. Thanks! |
Re: Treiber Handling
Just try to compile the units with FPC.
E. g. in a shell run
Code:
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":
fpc -Pi386 -FuPath/To/Other/Units yourunit.pas
Code:
If you get errors you might need to add the following between "unit bla;" and "interface":
-Px86_64 -Twin64
Delphi-Quellcode:
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}
{$mode delphi}{$H+} {$endif}
Delphi-Quellcode:
You can also use this inside the declaration of a function.
{$ifdef fpc}TMyFPCType{$else}TMyDelphiType{$endif}
If you have errors you can't solve by yourself, then you might start a new topic in the FPC subforum. Regards, Sven |
Re: Treiber Handling
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. :zwinker:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 00:23 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