Use DLL compilado no Delphi 7 em c #

Eu preciso usar uma DLL (Hardware ID Extractor) feita no Delphi 7 no meu aplicativo C #.

As funções exportadas por essa DLL são:

Funções exportadas:

<code>// 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>

Eu sei (obviamente) que a cadeia no Delphi não é terminada em nulo e é byte (ASCII). Mas eu não tenho idéia de como mapear essas cadeias Delphi para C #.

Obrigado.

questionAnswers(3)

yourAnswerToTheQuestion