Page 1 of 1

Verwenden Sie DLL, kompiliert in Delphi 7 in C#

Posted: 01 Mar 2025, 11:24
by Anonymous
Ich muss eine DLL (Hardware -ID -Extraktor) verwenden, die in Delphi 7 in meiner C# -Anwendung erstellt wurde.// CPU
function GetCPUSpeed: Double;
function CPUFamily: ShortString; { Get cpu identifier from the windows registry }
function GetCpuTheoreticSpeed: Integer; { Get cpu speed (in MHz) }
function IsCPUIDAvailable: Boolean; Register;
function GetCPUID (CpuCore: byte): ShortString;
Function GetCPUVendor: ShortString;

// RAM
function MemoryStatus (MemType: Integer): cardinal; { in Bytes }
function MemoryStatus_MB (MemType: Integer): ShortString; { in MB }

// HDD
function GetPartitionID (Partition : PChar): ShortString; { Get the ID of the specified patition. Example of parameter: 'C:' }
function GetIDESerialNumber(DriveNumber: Byte ): PChar; { DriveNr is from 0 to 4 }
< /code>

Wie kann ich Delphi -String auf C#? < /p zuordnen>