Changeset 358 for Common/UCommon.pas
- Timestamp:
- May 2, 2012, 12:27:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Common/UCommon.pas
r305 r358 45 45 function BCDToInt(Value: Byte): Byte; 46 46 function CompareByteArray(Data1, Data2: TArrayOfByte): Boolean; 47 {$IFDEF Windows}48 47 function GetUserName: string; 49 48 function LoggedOnUserNameEx(Format: TUserNameFormat): string; 50 {$ENDIF}51 49 function SplitString(var Text: string; Count: Word): string; 52 50 function GetBit(Variable: QWord; Index: Byte): Boolean; … … 285 283 L: LongWord; 286 284 begin 285 287 286 L := MAX_USERNAME_LENGTH + 2; 288 287 SetLength(Result, L); … … 317 316 end else Result := GetUserName; 318 317 end; 318 {$ELSE} 319 function GetUserName: string; 320 begin 321 Result := ''; 322 end; 323 324 function LoggedOnUserNameEx(Format: TUserNameFormat): string; 325 begin 326 Result := ''; 327 end; 328 319 329 {$ENDIF} 320 330
Note:
See TracChangeset
for help on using the changeset viewer.