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

📄 functionunit.pas

📁 闭路电视收费系统
💻 PAS
字号:
unit FunctionUnit;

interface

uses
  Windows,Messages, SysUtils, Classes;

type
  RefClass = Class
  public
    IntegrateRate,StockRate,EduationRate,VideoRate:Integer;
  end;
    

function myComputerName:String;

implementation


function myComputerName: String;
var
   pcComputer : PChar;
   dwCSize    : DWORD;
begin
  dwCSize := MAX_COMPUTERNAME_LENGTH + 1;
  GetMem( pcComputer, dwCSize ); // allocate memory for the string
  try
    if Windows.GetComputerName( pcComputer, dwCSize ) then
      Result := pcComputer;
  finally
    FreeMem( pcComputer ); // now free the memory allocated for the string
  end;
end;

end.

⌨️ 快捷键说明

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