Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,236 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<ProjectType>Local</ProjectType>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{CD29DF32-44FE-4CC6-A43E-01A74B25B9E3}</ProjectGuid>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ApplicationIcon>
</ApplicationIcon>
<AssemblyKeyContainerName>
</AssemblyKeyContainerName>
<AssemblyName>ODBCAdapterManagement</AssemblyName>
<AssemblyOriginatorKeyFile>ODBCAdapter.snk</AssemblyOriginatorKeyFile>
<DefaultClientScript>JScript</DefaultClientScript>
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
<DefaultTargetSchema>IE50</DefaultTargetSchema>
<DelaySign>false</DelaySign>
<OutputType>Library</OutputType>
<RootNamespace>Microsoft.BizTalk.Adapters.ODBC.ODBCDesignTime</RootNamespace>
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
<StartupObject>
</StartupObject>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<SignAssembly>true</SignAssembly>
<OldToolsVersion>3.5</OldToolsVersion>
<SccProjectName>
</SccProjectName>
<SccLocalPath>
</SccLocalPath>
<SccAuxPath>
</SccAuxPath>
<SccProvider>
</SccProvider>
<IsWebBootstrapper>false</IsWebBootstrapper>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>bin\Debug\</OutputPath>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DocumentationFile>
</DocumentationFile>
<DebugSymbols>true</DebugSymbols>
<FileAlignment>4096</FileAlignment>
<NoStdLib>false</NoStdLib>
<NoWarn>
</NoWarn>
<Optimize>false</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>4</WarningLevel>
<DebugType>full</DebugType>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<OutputPath>bin\Release\</OutputPath>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>TRACE</DefineConstants>
<DocumentationFile>
</DocumentationFile>
<DebugSymbols>false</DebugSymbols>
<FileAlignment>4096</FileAlignment>
<NoStdLib>false</NoStdLib>
<NoWarn>
</NoWarn>
<Optimize>true</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>4</WarningLevel>
<DebugType>none</DebugType>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.BizTalk.Adapter.Framework">
<Name>Microsoft.Biztalk.Adapter.Framework</Name>
<HintPath>..\..\..\Program Files\Microsoft BizTalk Server 2004\Developer Tools\Microsoft.Biztalk.Adapter.Framework.dll</HintPath>
</Reference>
<Reference Include="Microsoft.BizTalk.ExplorerOM">
<Name>Microsoft.BizTalk.ExplorerOM</Name>
<HintPath>..\..\..\Program Files\Microsoft BizTalk Server 2004\Developer Tools\Microsoft.BizTalk.ExplorerOM.dll</HintPath>
</Reference>
<Reference Include="Microsoft.BizTalk.Pipeline">
<Name>Microsoft.BizTalk.Pipeline</Name>
<HintPath>..\..\..\Program Files\Microsoft BizTalk Server 2004\Microsoft.BizTalk.Pipeline.dll</HintPath>
</Reference>
<Reference Include="System">
<Name>System</Name>
</Reference>
<Reference Include="System.Data">
<Name>System.Data</Name>
</Reference>
<Reference Include="System.Drawing">
<Name>System.Drawing</Name>
</Reference>
<Reference Include="System.Drawing.Design">
<Name>System.Drawing.Design</Name>
</Reference>
<Reference Include="System.Windows.Forms">
<Name>System.Windows.Forms</Name>
</Reference>
<Reference Include="System.Xml">
<Name>System.XML</Name>
</Reference>
<ProjectReference Include="..\..\ODBCDriverPrompt\ODBCDriverPrompt.csproj">
<Project>{F25132D9-07AA-4B41-90AD-828E54704692}</Project>
<Name>ODBCDriverPrompt</Name>
</ProjectReference>
<ProjectReference Include="..\..\ODBCSchemaWizard\ODBCSchemaWizard.csproj">
<Project>{3BCB956F-E5FB-4D40-9090-8E44E92C5353}</Project>
<Name>ODBCSchemaWizard</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Compile Include="AdapterManagement.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="AssemblyInfo.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="DatalinkTypeConverter.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="DatalinkUITypeEditor.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="SchemaPicker.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="SQLUITypeEditor.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="WSDLGen.cs">
<SubType>Code</SubType>
</Compile>
<EmbeddedResource Include="ODBCAdapterResource.resx">
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="ReceiveHandler.xsd">
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="ReceiveLocation.xsd">
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="SchemaPicker.resx">
<DependentUpon>SchemaPicker.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="SQLUITypeEditor.resx">
<DependentUpon>SQLUITypeEditor.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="TransmitHandler.xsd">
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="TransmitLocation.xsd">
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="wsdlODBCSchemaReq.xml" />
<None Include="ODBCAdapter.snk" />
<None Include="TransmitHandler.xsx">
<DependentUpon>TransmitHandler.xsd</DependentUpon>
</None>
<None Include="TransmitLocation.xsx">
<DependentUpon>TransmitLocation.xsd</DependentUpon>
</None>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="wsdlODBCSchemaResp.xml" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.2.0">
<Visible>False</Visible>
<ProductName>.NET Framework 2.0 %28x86%29</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.0">
<Visible>False</Visible>
<ProductName>.NET Framework 3.0 %28x86%29</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>false</Install>
</BootstrapperPackage>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>CALL "%25VS100COMNTOOLS%25vsvars32.bat"
gacutil.exe /i "$(TargetPath)"</PostBuildEvent>
</PropertyGroup>
</Project>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
/*************************************************************************
* Copyright (c) 1999-2002 Microsoft Corporation. All rights reserved. *
* *
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY *
* KIND, WHETHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE *
* IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR *
* PURPOSE. THE ENTIRE RISK OF USE OR RESULTS IN CONNECTION WITH THE USE *
* OF THIS CODE AND INFORMATION REMAINS WITH THE USER. *
*************************************************************************/
using System;
using System.ComponentModel;
using System.Globalization;

using Microsoft.BizTalk.Adapter.Framework;

namespace Microsoft.BizTalk.Adapters.ODBC.ODBCDesignTime
{
/// <summary>
/// Class <c>DatalinkTypeConverter</c>.
/// </summary>
public class DatalinkTypeConverter : StringConverter
{
#region Methods

public override bool CanConvertTo( ITypeDescriptorContext context, Type destinationType )
{
return ( typeof( string ) == destinationType ) || base.CanConvertTo( context, destinationType );
}

/// <summary>
/// Convert actual value to desired type for display.
/// </summary>
/// <remarks>
/// The parameter value contains the actual connection string,
/// including password. For security reasons, the password
/// must be masked.
/// </remarks>
/// <param name="context">
/// Property grid cell context.
/// </param>
/// <param name="culture">
/// Culture to use for localized formatting.
/// </param>
/// <param name="value">
/// Actual value to display in grid cell.
/// </param>
/// <param name="destinationType">
/// Desired type to display (grid cell's type).
/// </param>
/// <returns>
/// Converted value with password masked.
/// </returns>
public override object ConvertTo( ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType )
{
if ( typeof( string ) == destinationType && value is string )
{
string pass = base.ConvertTo( context, culture, value, destinationType ) as string;
return SecurePassword( pass );//FIXConnectionString.SecurePassword(pass);
}
return base.ConvertTo( context, culture, value, destinationType );
}

private string SecurePassword( string ConnectionString )
{
if ( ConnectionString != "" )
{
int iPasswordIndex = ConnectionString.IndexOf( "PWD=", 1 );

if ( iPasswordIndex > 0 )
{
int iEndOfPassword = ConnectionString.IndexOf( ";", iPasswordIndex );

//Deal with the fact that we may not have a ; at the end of our statement
if ( iEndOfPassword < 0 )
iEndOfPassword = ConnectionString.Length;

string password = ConnectionString.Substring( iPasswordIndex + 4, iEndOfPassword - ( iPasswordIndex + 4 ) );
return ConnectionString.Replace( password, "*********" );

}
else
{
return ConnectionString;
}
}
else
{
return String.Empty;
}

}

#endregion
}
}
Loading