Используйте DLL, скомпилированный в Delphi 7 в C#C#

Место общения программистов C#
Anonymous
 Используйте DLL, скомпилированный в Delphi 7 в C#

Сообщение Anonymous »

Мне нужно использовать DLL (экстрактор аппаратного идентификатора), изготовленный в Delphi 7 в моем приложении C#. < /p>
Функции, экспортируемые этим dll: < /p>
Экспортируемые функции (все с помощью коротких строк) < /p>
// 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>

Как составить карту строки Delphi с c#? < /p>

Подробнее здесь: https://stackoverflow.com/questions/101 ... in-c-sharp

Вернуться в «C#»