Changeset 129 for trunk/Packages/Common/UCommon.pas
- Timestamp:
- Jan 17, 2022, 10:11:05 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/Common/UCommon.pas
r122 r129 6 6 7 7 uses 8 {$ ifdef Windows}Windows,{$endif}9 {$ ifdef Linux}baseunix,{$endif}8 {$IFDEF WINDOWS}Windows,{$ENDIF} 9 {$IFDEF UNIX}baseunix,{$ENDIF} 10 10 Classes, SysUtils, StrUtils, Dialogs, Process, LCLIntf, 11 11 FileUtil; //, ShFolder, ShellAPI; … … 35 35 DLLHandle1: HModule; 36 36 37 {$IFDEF W indows}37 {$IFDEF WINDOWS} 38 38 GetUserNameEx: procedure (NameFormat: DWORD; 39 39 lpNameBuffer: LPSTR; nSize: PULONG); stdcall; … … 292 292 function Explode(Separator: char; Data: string): TArrayOfString; 293 293 begin 294 Result := nil; 294 295 SetLength(Result, 0); 295 296 while Pos(Separator, Data) > 0 do begin … … 346 347 Name: UtsName; 347 348 begin 349 Name := Default(UtsName); 348 350 fpuname(Name); 349 351 Result := Name.Nodename; … … 505 507 I: Integer; 506 508 begin 509 Result := Default(TArrayOfString); 507 510 SetLength(Result, Length(A) + Length(B)); 508 511 for I := 0 to Length(A) - 1 do
Note:
See TracChangeset
for help on using the changeset viewer.