Changeset 456 for Common/URegistry.pas


Ignore:
Timestamp:
Nov 28, 2012, 7:46:07 AM (12 years ago)
Author:
chronos
Message:
  • Modified: In Common package method DebugLog.Add now expect Text as first parameter.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Common/URegistry.pas

    r434 r456  
    1717    rrKeyDynData = HKEY($80000006));
    1818
     19  { TRegistryContext }
     20
    1921  TRegistryContext = record
    2022    RootKey: HKEY;
    2123    Key: string;
     24    class operator Equal(A, B: TRegistryContext): Boolean;
    2225  end;
    2326
     
    4952  Result.RootKey := RootKey;
    5053  Result.Key := Key;
     54end;
     55
     56{ TRegistryContext }
     57
     58class operator TRegistryContext.Equal(A, B: TRegistryContext): Boolean;
     59begin
     60  Result := (A.Key = B.Key) and (A.RootKey = B.RootKey);
    5161end;
    5262
Note: See TracChangeset for help on using the changeset viewer.