Delphi XE2 compatibility
This commit is contained in:
parent
5a4a8d1aca
commit
020b8eaeb6
63
Packages/DXE2/X2Utils.dpk
Normal file
63
Packages/DXE2/X2Utils.dpk
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
package X2Utils;
|
||||||
|
|
||||||
|
{$R *.res}
|
||||||
|
{$IFDEF IMPLICITBUILDING This IFDEF should not be used by users}
|
||||||
|
{$ALIGN 8}
|
||||||
|
{$ASSERTIONS ON}
|
||||||
|
{$BOOLEVAL OFF}
|
||||||
|
{$DEBUGINFO ON}
|
||||||
|
{$EXTENDEDSYNTAX ON}
|
||||||
|
{$IMPORTEDDATA ON}
|
||||||
|
{$IOCHECKS ON}
|
||||||
|
{$LOCALSYMBOLS ON}
|
||||||
|
{$LONGSTRINGS ON}
|
||||||
|
{$OPENSTRINGS ON}
|
||||||
|
{$OPTIMIZATION ON}
|
||||||
|
{$OVERFLOWCHECKS OFF}
|
||||||
|
{$RANGECHECKS OFF}
|
||||||
|
{$REFERENCEINFO ON}
|
||||||
|
{$SAFEDIVIDE OFF}
|
||||||
|
{$STACKFRAMES ON}
|
||||||
|
{$TYPEDADDRESS OFF}
|
||||||
|
{$VARSTRINGCHECKS ON}
|
||||||
|
{$WRITEABLECONST ON}
|
||||||
|
{$MINENUMSIZE 1}
|
||||||
|
{$IMAGEBASE $400000}
|
||||||
|
{$ENDIF IMPLICITBUILDING}
|
||||||
|
{$DESCRIPTION 'X2Utils'}
|
||||||
|
{$LIBSUFFIX 'XE2'}
|
||||||
|
{$RUNONLY}
|
||||||
|
{$IMPLICITBUILD ON}
|
||||||
|
|
||||||
|
requires
|
||||||
|
rtl,
|
||||||
|
vcl,
|
||||||
|
xmlrtl;
|
||||||
|
|
||||||
|
contains
|
||||||
|
X2UtApp in '..\..\X2UtApp.pas',
|
||||||
|
X2UtBits in '..\..\X2UtBits.pas',
|
||||||
|
X2UtGraphics in '..\..\X2UtGraphics.pas',
|
||||||
|
X2UtHandCursor in '..\..\X2UtHandCursor.pas',
|
||||||
|
X2UtHashes in '..\..\X2UtHashes.pas',
|
||||||
|
X2UtHashesVariants in '..\..\X2UtHashesVariants.pas',
|
||||||
|
X2UtMisc in '..\..\X2UtMisc.pas',
|
||||||
|
X2UtOS in '..\..\X2UtOS.pas',
|
||||||
|
X2UtStrings in '..\..\X2UtStrings.pas',
|
||||||
|
X2UtImageInfo in '..\..\X2UtImageInfo.pas',
|
||||||
|
X2UtTempFile in '..\..\X2UtTempFile.pas',
|
||||||
|
X2UtIniParser in '..\..\X2UtIniParser.pas',
|
||||||
|
X2UtProcess in '..\..\X2UtProcess.pas',
|
||||||
|
X2UtSingleInstance in '..\..\X2UtSingleInstance.pas',
|
||||||
|
X2UtStreams in '..\..\X2UtStreams.pas',
|
||||||
|
X2UtNamedFormat in '..\..\X2UtNamedFormat.pas',
|
||||||
|
X2UtPersist in '..\..\X2UtPersist.pas',
|
||||||
|
X2UtPersistForm in '..\..\X2UtPersistForm.pas',
|
||||||
|
X2UtPersistIntf in '..\..\X2UtPersistIntf.pas',
|
||||||
|
X2UtPersistRegistry in '..\..\X2UtPersistRegistry.pas',
|
||||||
|
X2UtElevation in '..\..\X2UtElevation.pas',
|
||||||
|
X2UtPersistXML in '..\..\X2UtPersistXML.pas',
|
||||||
|
X2UtPersistXMLBinding in '..\..\X2UtPersistXMLBinding.pas',
|
||||||
|
XMLDataBindingUtils in '..\..\XMLDataBinding\XMLDataBindingUtils.pas';
|
||||||
|
|
||||||
|
end.
|
189
Packages/DXE2/X2Utils.dproj
Normal file
189
Packages/DXE2/X2Utils.dproj
Normal file
@ -0,0 +1,189 @@
|
|||||||
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup>
|
||||||
|
<ProjectGuid>{3cd28184-f9a5-4320-9ad8-80ef25ba762e}</ProjectGuid>
|
||||||
|
<MainSource>X2Utils.dpk</MainSource>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<DCC_DCCCompiler>DCC32</DCC_DCCCompiler>
|
||||||
|
<DCC_DependencyCheckOutputName>P:\algemeen\bin\D2007\X2Utils2007.bpl</DCC_DependencyCheckOutputName>
|
||||||
|
<FrameworkType>VCL</FrameworkType>
|
||||||
|
<ProjectVersion>13.4</ProjectVersion>
|
||||||
|
<Base>True</Base>
|
||||||
|
<Config Condition="'$(Config)'==''">Debug</Config>
|
||||||
|
<Platform Condition="'$(Platform)'==''">Win32</Platform>
|
||||||
|
<TargetedPlatforms>1</TargetedPlatforms>
|
||||||
|
<AppType>Package</AppType>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Config)'=='Base' or '$(Base)'!=''">
|
||||||
|
<Base>true</Base>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="('$(Platform)'=='Win64' and '$(Base)'=='true') or '$(Base_Win64)'!=''">
|
||||||
|
<Base_Win64>true</Base_Win64>
|
||||||
|
<CfgParent>Base</CfgParent>
|
||||||
|
<Base>true</Base>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="('$(Platform)'=='Win32' and '$(Base)'=='true') or '$(Base_Win32)'!=''">
|
||||||
|
<Base_Win32>true</Base_Win32>
|
||||||
|
<CfgParent>Base</CfgParent>
|
||||||
|
<Base>true</Base>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Config)'=='Release' or '$(Cfg_1)'!=''">
|
||||||
|
<Cfg_1>true</Cfg_1>
|
||||||
|
<CfgParent>Base</CfgParent>
|
||||||
|
<Base>true</Base>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Config)'=='Debug' or '$(Cfg_2)'!=''">
|
||||||
|
<Cfg_2>true</Cfg_2>
|
||||||
|
<CfgParent>Base</CfgParent>
|
||||||
|
<Base>true</Base>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="('$(Platform)'=='Win32' and '$(Cfg_2)'=='true') or '$(Cfg_2_Win32)'!=''">
|
||||||
|
<Cfg_2_Win32>true</Cfg_2_Win32>
|
||||||
|
<CfgParent>Cfg_2</CfgParent>
|
||||||
|
<Cfg_2>true</Cfg_2>
|
||||||
|
<Base>true</Base>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Base)'!=''">
|
||||||
|
<VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo>
|
||||||
|
<RuntimeOnlyPackage>true</RuntimeOnlyPackage>
|
||||||
|
<DCC_ImageBase>00400000</DCC_ImageBase>
|
||||||
|
<DCC_WriteableConstants>true</DCC_WriteableConstants>
|
||||||
|
<DCC_Description>X2Utils</DCC_Description>
|
||||||
|
<DCC_Namespace>Vcl;Vcl.Imaging;Vcl.Touch;Vcl.Samples;Vcl.Shell;System;Xml;Data;Datasnap;Web;Soap;Winapi;System.Win;$(DCC_Namespace)</DCC_Namespace>
|
||||||
|
<GenPackage>true</GenPackage>
|
||||||
|
<VerInfo_Locale>1043</VerInfo_Locale>
|
||||||
|
<GenDll>true</GenDll>
|
||||||
|
<VerInfo_Keys>CompanyName=;FileDescription=;FileVersion=1.0.0.0;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProductName=;ProductVersion=1.0.0.0;Comments=</VerInfo_Keys>
|
||||||
|
<DllSuffix>2007</DllSuffix>
|
||||||
|
<DCC_GenerateStackFrames>true</DCC_GenerateStackFrames>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Base_Win64)'!=''">
|
||||||
|
<Icon_MainIcon>X2Utils_Icon.ico</Icon_MainIcon>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Base_Win32)'!=''">
|
||||||
|
<Icon_MainIcon>X2Utils_Icon.ico</Icon_MainIcon>
|
||||||
|
<DCC_Namespace>Winapi;System.Win;Data.Win;Datasnap.Win;Web.Win;Soap.Win;Xml.Win;Bde;$(DCC_Namespace)</DCC_Namespace>
|
||||||
|
<VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo>
|
||||||
|
<VerInfo_Locale>1033</VerInfo_Locale>
|
||||||
|
<VerInfo_Keys>CompanyName=;FileDescription=;FileVersion=1.0.0.0;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProductName=;ProductVersion=1.0.0.0;Comments=</VerInfo_Keys>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Cfg_1)'!=''">
|
||||||
|
<Version>7.0</Version>
|
||||||
|
<DCC_DebugInformation>False</DCC_DebugInformation>
|
||||||
|
<DCC_WriteableConstants>True</DCC_WriteableConstants>
|
||||||
|
<DCC_LocalDebugSymbols>False</DCC_LocalDebugSymbols>
|
||||||
|
<DCC_GenerateStackFrames>True</DCC_GenerateStackFrames>
|
||||||
|
<DCC_SymbolReferenceInfo>0</DCC_SymbolReferenceInfo>
|
||||||
|
<DCC_Define>RELEASE;$(DCC_Define)</DCC_Define>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Cfg_2)'!=''">
|
||||||
|
<Version>7.0</Version>
|
||||||
|
<DCC_WriteableConstants>True</DCC_WriteableConstants>
|
||||||
|
<DCC_GenerateStackFrames>True</DCC_GenerateStackFrames>
|
||||||
|
<DCC_DcuOutput>$(DELPHILIB)</DCC_DcuOutput>
|
||||||
|
<DCC_ObjOutput>$(DELPHILIB)</DCC_ObjOutput>
|
||||||
|
<DCC_HppOutput>$(DELPHILIB)</DCC_HppOutput>
|
||||||
|
<DCC_BplOutput>$(DELPHIBIN)</DCC_BplOutput>
|
||||||
|
<DCC_DcpOutput>$(DELPHIBIN)</DCC_DcpOutput>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Cfg_2_Win32)'!=''">
|
||||||
|
<DllSuffix>XE2</DllSuffix>
|
||||||
|
<VerInfo_Locale>1033</VerInfo_Locale>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ProjectExtensions>
|
||||||
|
<Borland.Personality>Delphi.Personality.12</Borland.Personality>
|
||||||
|
<Borland.ProjectType>Package</Borland.ProjectType>
|
||||||
|
<BorlandProject>
|
||||||
|
<Delphi.Personality>
|
||||||
|
<Parameters>
|
||||||
|
<Parameters Name="UseLauncher">False</Parameters>
|
||||||
|
<Parameters Name="LoadAllSymbols">True</Parameters>
|
||||||
|
<Parameters Name="LoadUnspecifiedSymbols">False</Parameters>
|
||||||
|
</Parameters>
|
||||||
|
<VersionInfo>
|
||||||
|
<VersionInfo Name="IncludeVerInfo">True</VersionInfo>
|
||||||
|
<VersionInfo Name="AutoIncBuild">False</VersionInfo>
|
||||||
|
<VersionInfo Name="MajorVer">1</VersionInfo>
|
||||||
|
<VersionInfo Name="MinorVer">0</VersionInfo>
|
||||||
|
<VersionInfo Name="Release">0</VersionInfo>
|
||||||
|
<VersionInfo Name="Build">0</VersionInfo>
|
||||||
|
<VersionInfo Name="Debug">False</VersionInfo>
|
||||||
|
<VersionInfo Name="PreRelease">False</VersionInfo>
|
||||||
|
<VersionInfo Name="Special">False</VersionInfo>
|
||||||
|
<VersionInfo Name="Private">False</VersionInfo>
|
||||||
|
<VersionInfo Name="DLL">False</VersionInfo>
|
||||||
|
<VersionInfo Name="Locale">1043</VersionInfo>
|
||||||
|
<VersionInfo Name="CodePage">1252</VersionInfo>
|
||||||
|
</VersionInfo>
|
||||||
|
<VersionInfoKeys>
|
||||||
|
<VersionInfoKeys Name="CompanyName"/>
|
||||||
|
<VersionInfoKeys Name="FileDescription"/>
|
||||||
|
<VersionInfoKeys Name="FileVersion">1.0.0.0</VersionInfoKeys>
|
||||||
|
<VersionInfoKeys Name="InternalName"/>
|
||||||
|
<VersionInfoKeys Name="LegalCopyright"/>
|
||||||
|
<VersionInfoKeys Name="LegalTrademarks"/>
|
||||||
|
<VersionInfoKeys Name="OriginalFilename"/>
|
||||||
|
<VersionInfoKeys Name="ProductName"/>
|
||||||
|
<VersionInfoKeys Name="ProductVersion">1.0.0.0</VersionInfoKeys>
|
||||||
|
<VersionInfoKeys Name="Comments"/>
|
||||||
|
</VersionInfoKeys>
|
||||||
|
<Source>
|
||||||
|
<Source Name="MainSource">X2Utils.dpk</Source>
|
||||||
|
</Source>
|
||||||
|
<Excluded_Packages>
|
||||||
|
<Excluded_Packages Name="$(BDSBIN)\dcloffice2k160.bpl">Microsoft Office 2000 Sample Automation Server Wrapper Components</Excluded_Packages>
|
||||||
|
<Excluded_Packages Name="$(BDSBIN)\dclofficexp160.bpl">Microsoft Office XP Sample Automation Server Wrapper Components</Excluded_Packages>
|
||||||
|
</Excluded_Packages>
|
||||||
|
</Delphi.Personality>
|
||||||
|
<Platforms>
|
||||||
|
<Platform value="Win64">False</Platform>
|
||||||
|
<Platform value="Win32">True</Platform>
|
||||||
|
</Platforms>
|
||||||
|
</BorlandProject>
|
||||||
|
<ProjectFileVersion>12</ProjectFileVersion>
|
||||||
|
</ProjectExtensions>
|
||||||
|
<Import Project="$(BDS)\Bin\CodeGear.Delphi.Targets"/>
|
||||||
|
<ItemGroup>
|
||||||
|
<DelphiCompile Include="$(MainSource)">
|
||||||
|
<MainSource>MainSource</MainSource>
|
||||||
|
</DelphiCompile>
|
||||||
|
<DCCReference Include="rtl.dcp"/>
|
||||||
|
<DCCReference Include="vcl.dcp"/>
|
||||||
|
<DCCReference Include="xmlrtl.dcp"/>
|
||||||
|
<DCCReference Include="..\..\X2UtApp.pas"/>
|
||||||
|
<DCCReference Include="..\..\X2UtBits.pas"/>
|
||||||
|
<DCCReference Include="..\..\X2UtGraphics.pas"/>
|
||||||
|
<DCCReference Include="..\..\X2UtHandCursor.pas"/>
|
||||||
|
<DCCReference Include="..\..\X2UtHashes.pas"/>
|
||||||
|
<DCCReference Include="..\..\X2UtHashesVariants.pas"/>
|
||||||
|
<DCCReference Include="..\..\X2UtMisc.pas"/>
|
||||||
|
<DCCReference Include="..\..\X2UtOS.pas"/>
|
||||||
|
<DCCReference Include="..\..\X2UtStrings.pas"/>
|
||||||
|
<DCCReference Include="..\..\X2UtImageInfo.pas"/>
|
||||||
|
<DCCReference Include="..\..\X2UtTempFile.pas"/>
|
||||||
|
<DCCReference Include="..\..\X2UtIniParser.pas"/>
|
||||||
|
<DCCReference Include="..\..\X2UtProcess.pas"/>
|
||||||
|
<DCCReference Include="..\..\X2UtSingleInstance.pas"/>
|
||||||
|
<DCCReference Include="..\..\X2UtStreams.pas"/>
|
||||||
|
<DCCReference Include="..\..\X2UtNamedFormat.pas"/>
|
||||||
|
<DCCReference Include="..\..\X2UtPersist.pas"/>
|
||||||
|
<DCCReference Include="..\..\X2UtPersistForm.pas"/>
|
||||||
|
<DCCReference Include="..\..\X2UtPersistIntf.pas"/>
|
||||||
|
<DCCReference Include="..\..\X2UtPersistRegistry.pas"/>
|
||||||
|
<DCCReference Include="..\..\X2UtElevation.pas"/>
|
||||||
|
<DCCReference Include="..\..\X2UtPersistXML.pas"/>
|
||||||
|
<DCCReference Include="..\..\X2UtPersistXMLBinding.pas"/>
|
||||||
|
<DCCReference Include="..\..\XMLDataBinding\XMLDataBindingUtils.pas"/>
|
||||||
|
<BuildConfiguration Include="Debug">
|
||||||
|
<Key>Cfg_2</Key>
|
||||||
|
<CfgParent>Base</CfgParent>
|
||||||
|
</BuildConfiguration>
|
||||||
|
<BuildConfiguration Include="Base">
|
||||||
|
<Key>Base</Key>
|
||||||
|
</BuildConfiguration>
|
||||||
|
<BuildConfiguration Include="Release">
|
||||||
|
<Key>Cfg_1</Key>
|
||||||
|
<CfgParent>Base</CfgParent>
|
||||||
|
</BuildConfiguration>
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Condition="Exists('$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\$(PRODUCTVERSION)\UserTools.proj')" Project="$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\$(PRODUCTVERSION)\UserTools.proj"/>
|
||||||
|
</Project>
|
BIN
Packages/DXE2/X2Utils.res
Normal file
BIN
Packages/DXE2/X2Utils.res
Normal file
Binary file not shown.
BIN
Packages/DXE2/X2Utils_Icon.ico
Normal file
BIN
Packages/DXE2/X2Utils_Icon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
@ -3,6 +3,9 @@ program X2UtHashesTest;
|
|||||||
{$APPTYPE CONSOLE}
|
{$APPTYPE CONSOLE}
|
||||||
|
|
||||||
uses
|
uses
|
||||||
|
madListHardware,
|
||||||
|
madListProcesses,
|
||||||
|
madListModules,
|
||||||
madExcept,
|
madExcept,
|
||||||
madLinkDisAsm,
|
madLinkDisAsm,
|
||||||
SysUtils,
|
SysUtils,
|
||||||
|
80
Test/X2UtHashesTest.dproj
Normal file
80
Test/X2UtHashesTest.dproj
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup>
|
||||||
|
<ProjectGuid>{f8e0020e-c40f-4444-ac12-fa457cf72877}</ProjectGuid>
|
||||||
|
<MainSource>X2UtHashesTest.dpr</MainSource>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
<DCC_DCCCompiler>DCC32</DCC_DCCCompiler>
|
||||||
|
<DCC_DependencyCheckOutputName>X2UtHashesTest.exe</DCC_DependencyCheckOutputName>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
|
<Version>7.0</Version>
|
||||||
|
<DCC_DebugInformation>False</DCC_DebugInformation>
|
||||||
|
<DCC_WriteableConstants>True</DCC_WriteableConstants>
|
||||||
|
<DCC_LocalDebugSymbols>False</DCC_LocalDebugSymbols>
|
||||||
|
<DCC_RangeChecking>True</DCC_RangeChecking>
|
||||||
|
<DCC_SymbolReferenceInfo>0</DCC_SymbolReferenceInfo>
|
||||||
|
<DCC_MapFile>3</DCC_MapFile>
|
||||||
|
<DCC_Define>madExcept;RELEASE</DCC_Define>
|
||||||
|
<DCC_Description>IconXP</DCC_Description>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<Version>7.0</Version>
|
||||||
|
<DCC_WriteableConstants>True</DCC_WriteableConstants>
|
||||||
|
<DCC_RangeChecking>True</DCC_RangeChecking>
|
||||||
|
<DCC_MapFile>3</DCC_MapFile>
|
||||||
|
<DCC_Define>madExcept;DEBUG</DCC_Define>
|
||||||
|
<DCC_Description>IconXP</DCC_Description>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ProjectExtensions>
|
||||||
|
<Borland.Personality>Delphi.Personality</Borland.Personality>
|
||||||
|
<Borland.ProjectType>VCLApplication</Borland.ProjectType>
|
||||||
|
<BorlandProject>
|
||||||
|
<BorlandProject xmlns=""> <Delphi.Personality> <Parameters>
|
||||||
|
<Parameters Name="UseLauncher">False</Parameters>
|
||||||
|
<Parameters Name="LoadAllSymbols">True</Parameters>
|
||||||
|
<Parameters Name="LoadUnspecifiedSymbols">False</Parameters>
|
||||||
|
</Parameters>
|
||||||
|
<VersionInfo>
|
||||||
|
<VersionInfo Name="IncludeVerInfo">False</VersionInfo>
|
||||||
|
<VersionInfo Name="AutoIncBuild">False</VersionInfo>
|
||||||
|
<VersionInfo Name="MajorVer">1</VersionInfo>
|
||||||
|
<VersionInfo Name="MinorVer">0</VersionInfo>
|
||||||
|
<VersionInfo Name="Release">0</VersionInfo>
|
||||||
|
<VersionInfo Name="Build">0</VersionInfo>
|
||||||
|
<VersionInfo Name="Debug">False</VersionInfo>
|
||||||
|
<VersionInfo Name="PreRelease">False</VersionInfo>
|
||||||
|
<VersionInfo Name="Special">False</VersionInfo>
|
||||||
|
<VersionInfo Name="Private">False</VersionInfo>
|
||||||
|
<VersionInfo Name="DLL">False</VersionInfo>
|
||||||
|
<VersionInfo Name="Locale">1043</VersionInfo>
|
||||||
|
<VersionInfo Name="CodePage">1252</VersionInfo>
|
||||||
|
</VersionInfo>
|
||||||
|
<VersionInfoKeys>
|
||||||
|
<VersionInfoKeys Name="CompanyName"></VersionInfoKeys>
|
||||||
|
<VersionInfoKeys Name="FileDescription"></VersionInfoKeys>
|
||||||
|
<VersionInfoKeys Name="FileVersion">1.0.0.0</VersionInfoKeys>
|
||||||
|
<VersionInfoKeys Name="InternalName"></VersionInfoKeys>
|
||||||
|
<VersionInfoKeys Name="LegalCopyright"></VersionInfoKeys>
|
||||||
|
<VersionInfoKeys Name="LegalTrademarks"></VersionInfoKeys>
|
||||||
|
<VersionInfoKeys Name="OriginalFilename"></VersionInfoKeys>
|
||||||
|
<VersionInfoKeys Name="ProductName"></VersionInfoKeys>
|
||||||
|
<VersionInfoKeys Name="ProductVersion">1.0.0.0</VersionInfoKeys>
|
||||||
|
<VersionInfoKeys Name="Comments"></VersionInfoKeys>
|
||||||
|
</VersionInfoKeys>
|
||||||
|
<Source>
|
||||||
|
<Source Name="MainSource">X2UtHashesTest.dpr</Source>
|
||||||
|
</Source>
|
||||||
|
</Delphi.Personality> </BorlandProject></BorlandProject>
|
||||||
|
</ProjectExtensions>
|
||||||
|
<ItemGroup />
|
||||||
|
<ItemGroup>
|
||||||
|
<DelphiCompile Include="X2UtHashesTest.dpr">
|
||||||
|
<MainSource>MainSource</MainSource>
|
||||||
|
</DelphiCompile>
|
||||||
|
<DCCReference Include="Forms\FBTree.pas">
|
||||||
|
<Form>frmBTree</Form>
|
||||||
|
</DCCReference>
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildBinPath)\Borland.Delphi.Targets" />
|
||||||
|
</Project>
|
@ -39,6 +39,7 @@ type
|
|||||||
procedure testGet; override;
|
procedure testGet; override;
|
||||||
procedure testDelete; override;
|
procedure testDelete; override;
|
||||||
procedure testIterate; override;
|
procedure testIterate; override;
|
||||||
|
procedure testIterateEmpty;
|
||||||
procedure testEnumerator; override;
|
procedure testEnumerator; override;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -203,6 +204,13 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
procedure THashesSITest.testIterateEmpty;
|
||||||
|
begin
|
||||||
|
Hash.First;
|
||||||
|
CheckFalse(Hash.Next, 'Next');
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
function THashesSITest.GetHash: TX2SIHash;
|
function THashesSITest.GetHash: TX2SIHash;
|
||||||
begin
|
begin
|
||||||
Result := TX2SIHash(FHash);
|
Result := TX2SIHash(FHash);
|
||||||
|
@ -359,7 +359,7 @@ begin
|
|||||||
GetPropList(Strings.ClassInfo, tkStrings, pProps);
|
GetPropList(Strings.ClassInfo, tkStrings, pProps);
|
||||||
|
|
||||||
for iProp := 0 to iCount - 1 do begin
|
for iProp := 0 to iCount - 1 do begin
|
||||||
if VerQueryValue(pBuffer, PChar(cName + '\' + pProps^[iProp]^.Name),
|
if VerQueryValueA(pBuffer, PAnsiChar(cName + AnsiString('\') + pProps^[iProp]^.Name),
|
||||||
Pointer(pValue), dVer) then
|
Pointer(pValue), dVer) then
|
||||||
SetStrProp(Strings, pProps[iProp], pValue);
|
SetStrProp(Strings, pProps[iProp], pValue);
|
||||||
end;
|
end;
|
||||||
|
@ -259,9 +259,9 @@ begin
|
|||||||
RaiseLastOSError;
|
RaiseLastOSError;
|
||||||
|
|
||||||
try
|
try
|
||||||
if RegOpenKeyExA(HKEY_CLASSES_ROOT, PChar(AKey), 0, KEY_READ or KEY_WRITE, keyHandle) = ERROR_SUCCESS then
|
if RegOpenKeyEx(HKEY_CLASSES_ROOT, PChar(AKey), 0, KEY_READ or KEY_WRITE, keyHandle) = ERROR_SUCCESS then
|
||||||
try
|
try
|
||||||
if RegSetValueExA(keyHandle, PChar('AccessPermission'), 0, REG_BINARY, descriptor, size) <> ERROR_SUCCESS then
|
if RegSetValueEx(keyHandle, PChar('AccessPermission'), 0, REG_BINARY, descriptor, size) <> ERROR_SUCCESS then
|
||||||
RaiseLastOSError;
|
RaiseLastOSError;
|
||||||
finally
|
finally
|
||||||
RegCloseKey(keyHandle);
|
RegCloseKey(keyHandle);
|
||||||
@ -336,7 +336,11 @@ begin
|
|||||||
end;
|
end;
|
||||||
except
|
except
|
||||||
on E: Exception do
|
on E: Exception do
|
||||||
|
{$IFDEF VER230}
|
||||||
|
raise EOleRegistrationError.Create(E.Message, 0, 0);
|
||||||
|
{$ELSE}
|
||||||
raise EOleRegistrationError.Create(E.Message);
|
raise EOleRegistrationError.Create(E.Message);
|
||||||
|
{$ENDIF}
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -365,7 +365,8 @@ begin
|
|||||||
|
|
||||||
tkString,
|
tkString,
|
||||||
tkLString,
|
tkLString,
|
||||||
tkWString:
|
tkWString,
|
||||||
|
tkUString:
|
||||||
if ReadString(APropInfo^.Name, stringValue) then
|
if ReadString(APropInfo^.Name, stringValue) then
|
||||||
SetStrProp(AObject, APropInfo, stringValue);
|
SetStrProp(AObject, APropInfo, stringValue);
|
||||||
|
|
||||||
|
@ -102,10 +102,10 @@ const
|
|||||||
var
|
var
|
||||||
buffer: PChar;
|
buffer: PChar;
|
||||||
processInfo: TProcessInformation;
|
processInfo: TProcessInformation;
|
||||||
readPipe: Cardinal;
|
readPipe: THandle;
|
||||||
securityAttr: TSecurityAttributes;
|
securityAttr: TSecurityAttributes;
|
||||||
startupInfo: TStartupInfo;
|
startupInfo: TStartupInfo;
|
||||||
writePipe: Cardinal;
|
writePipe: THandle;
|
||||||
bytesRead: Cardinal;
|
bytesRead: Cardinal;
|
||||||
newConsole: Boolean;
|
newConsole: Boolean;
|
||||||
consoleOutput: THandle;
|
consoleOutput: THandle;
|
||||||
|
Loading…
Reference in New Issue
Block a user