Click here to Skip to main content
15,878,852 members
Articles / Desktop Programming / Win32

.NET Shell Extensions - Shell Drop Handlers

Rate me:
Please Sign up or sign in to vote.
5.00/5 (15 votes)
19 Jan 2013CPOL7 min read 53.7K   2.1K   35  
Rapidly create Shell Drop Handler Extensions using .NET
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>8.0.30703</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{B5D5F670-BFBA-4D09-91C6-74BB12B7EDD4}</ProjectGuid>
    <OutputType>Library</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>SharpShell</RootNamespace>
    <AssemblyName>SharpShell</AssemblyName>
    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
    <FileAlignment>512</FileAlignment>
    <SccProjectName>SAK</SccProjectName>
    <SccLocalPath>SAK</SccLocalPath>
    <SccAuxPath>SAK</SccAuxPath>
    <SccProvider>SAK</SccProvider>
    <TargetFrameworkProfile>Client</TargetFrameworkProfile>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
    <PlatformTarget>AnyCPU</PlatformTarget>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
    <DocumentationFile>bin\Release\SharpShell.xml</DocumentationFile>
  </PropertyGroup>
  <PropertyGroup>
    <SignAssembly>true</SignAssembly>
  </PropertyGroup>
  <PropertyGroup>
    <AssemblyOriginatorKeyFile>Key.snk</AssemblyOriginatorKeyFile>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="System" />
    <Reference Include="System.ComponentModel.Composition" />
    <Reference Include="System.Core" />
    <Reference Include="System.Drawing" />
    <Reference Include="System.EnterpriseServices" />
    <Reference Include="System.Windows.Forms" />
    <Reference Include="System.Xml.Linq" />
    <Reference Include="System.Data.DataSetExtensions" />
    <Reference Include="Microsoft.CSharp" />
    <Reference Include="System.Data" />
    <Reference Include="System.Xml" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="..\SharedAssemblyInfo.cs">
      <Link>SharedAssemblyInfo.cs</Link>
    </Compile>
    <Compile Include="Attributes\AssociationType.cs" />
    <Compile Include="Attributes\COMServerAssociationAttribute.cs" />
    <Compile Include="Attributes\CustomUnregisterFunctionAttribute.cs" />
    <Compile Include="Attributes\CustomRegisterFunctionAttribute.cs" />
    <Compile Include="Attributes\ServerTypeAttribute.cs" />
    <Compile Include="Extensions\IDataObjectExtensions.cs" />
    <Compile Include="Interop\IDropTarget.cs" />
    <Compile Include="Interop\IShellIconOverlayIdentifier.cs" />
    <Compile Include="Interop\ISIOI.cs" />
    <Compile Include="Interop\SFGAO.cs" />
    <Compile Include="SharpIconOverlayHandler\SharpIconOverlayHandler.cs" />
    <Compile Include="SharpPropertySheet\SharpPropertyPage.cs">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Include="ShellExtInitServer.cs" />
    <Compile Include="SharpDropHandler\SharpDropHandler.cs" />
    <Compile Include="Interop\IInitializeWithFile.cs" />
    <Compile Include="Interop\IInitializeWithStream.cs" />
    <Compile Include="Interop\QITIPF.cs" />
    <Compile Include="PersistFileServer.cs" />
    <Compile Include="SharpInfoTipHandler\SharpInfoTipHandler.cs" />
    <Compile Include="Diagnostics\ExplorerManager.cs" />
    <Compile Include="Diagnostics\Logging.cs" />
    <Compile Include="Diagnostics\ExplorerConfigurationManager.cs" />
    <Compile Include="Diagnostics\SharpPropertyPageTester.cs" />
    <Compile Include="Extensions\ControlExtensions.cs" />
    <Compile Include="Interop\CLSCTX.cs" />
    <Compile Include="Interop\CMF.cs" />
    <Compile Include="Interop\CMIC.cs" />
    <Compile Include="Interop\CMINVOKECOMMANDINFO.cs" />
    <Compile Include="Interop\CMINVOKECOMMANDINFOEX.cs" />
    <Compile Include="Interop\Comctl32.cs" />
    <Compile Include="Interop\DLGTEMPLATE.cs" />
    <Compile Include="Interop\DS.cs" />
    <Compile Include="Interop\GCS.cs" />
    <Compile Include="Interop\IContextMenu.cs" />
    <Compile Include="Interop\IExtractIcon.cs" />
    <Compile Include="Interop\IQueryInfo.cs" />
    <Compile Include="Interop\IShellExtInit.cs" />
    <Compile Include="Interop\IShellPropSheetExt.cs" />
    <Compile Include="Interop\Kernel32.cs" />
    <Compile Include="Interop\MENUITEMINFO.cs" />
    <Compile Include="Interop\MFS.cs" />
    <Compile Include="Interop\MFT.cs" />
    <Compile Include="Interop\MIIM.cs" />
    <Compile Include="Interop\Ole32.cs" />
    <Compile Include="Interop\POINT.cs" />
    <Compile Include="Interop\PROPSHEETHEADER.cs" />
    <Compile Include="Interop\PROPSHEETPAGE.cs" />
    <Compile Include="Interop\PSPCB.cs" />
    <Compile Include="Interop\Shell32.cs" />
    <Compile Include="Interop\STGM.cs" />
    <Compile Include="Interop\User32.cs" />
    <Compile Include="Interop\WindowsMessages.cs" />
    <Compile Include="Interop\WindowStyles.cs" />
    <Compile Include="Interop\WinError.cs" />
    <Compile Include="ISharpShellServer.cs" />
    <Compile Include="NativeBridge\NativeBridge.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
    <Compile Include="Interop\CLIPFORMAT.cs" />
    <Compile Include="ServerRegistration\RegistrationType.cs" />
    <Compile Include="ServerRegistration\ServerRegistationType.cs" />
    <Compile Include="ServerRegistration\ServerRegistrationInfo.cs" />
    <Compile Include="ServerRegistration\ServerRegistrationManager.cs" />
    <Compile Include="ServerType.cs" />
    <Compile Include="SharpContextMenu\SharpContextMenu.cs" />
    <Compile Include="SharpContextMenu\SharpContextMenuValidator.cs" />
    <Compile Include="SharpContextMenu\NativeContextMenuWrapper.cs" />
    <Compile Include="SharpIconHandler\SharpIconHandler.cs" />
    <Compile Include="SharpPropertySheet\PropertyPageProxy.cs" />
    <Compile Include="SharpPropertySheet\SharpPropertySheet.cs" />
    <Compile Include="SharpShellServer.cs" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Key.snk" />
  </ItemGroup>
  <ItemGroup>
    <EmbeddedResource Include="NativeBridge\SharpShellNativeBridge32.dll" />
    <EmbeddedResource Include="NativeBridge\SharpShellNativeBridge64.dll" />
  </ItemGroup>
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
       Other similar extension points exist, see Microsoft.Common.targets.
  <Target Name="BeforeBuild">
  </Target>
  <Target Name="AfterBuild">
  </Target>
  -->
</Project>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
United Kingdom United Kingdom
Follow my blog at www.dwmkerr.com and find out about my charity at www.childrenshomesnepal.org.

Comments and Discussions