⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 biosid.pas

📁 Delphi里 用于读取计算机的BIOS信息
💻 PAS
字号:
unit BiosId;

interface

function GetBiosId:String;
function GetBiosType:String;
function GetBiosDate:String;

implementation

function GetBiosIdA(P:PChar):LongBool;stdcall;External 'BiosID.dll' Name 'GetBiosId';
function GetBiosTypeA(P:PChar):LongBool;stdcall;External 'BiosID.dll' Name 'GetBiosType';
function GetBiosDateA(P:PChar):LongBool;stdcall;External 'BiosID.dll' Name 'GetBiosDate';

function GetBiosId:String;
var S:array[0..255] of Char;
begin
    GetBiosIdA(S);
    Result:=String(S);
end;

function GetBiosType:String;
var S:array[0..255] of Char;
begin
    GetBiosTypeA(S);
    Result:=String(S);
end;

function GetBiosDate:String;
var S:array[0..255] of Char;
begin
    GetBiosDateA(S);
    Result:=String(S);
end;


end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -