diff options
| author | alexke-dev <[email protected]> | 2023-08-10 16:28:02 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-08-10 16:28:02 -0700 |
| commit | cbbd53eda55fbdf65f22b5f57c7dbc4b1ea594fd (patch) | |
| tree | 50df874afbb353d7d3864b559c6b7641f1208924 /print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver | |
| parent | 6ea518dd65b6c2c3b298bb8e7ed5e9124b8a4981 (diff) | |
Remove Print Driver Samples (#1017)
* Remove print driver samples. Add README.md to redirect consumers to Print Support App (PSA) development guide.
* Remove en-us from URL.
Diffstat (limited to 'print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver')
15 files changed, 0 insertions, 1341 deletions
diff --git a/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/HostBasedSampleDriver.sln b/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/HostBasedSampleDriver.sln deleted file mode 100644 index da7ca087..00000000 --- a/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/HostBasedSampleDriver.sln +++ /dev/null @@ -1,53 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2013 -VisualStudioVersion = 12.0 -MinimumVisualStudioVersion = 12.0 -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Package", "Package", "{1AB32C08-868F-4CE2-9C2A-CE2CF2279ADD}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "package", "Package\package.VcxProj", "{B756657D-AC58-4D5A-A446-1582707D012E}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HostBasedSampleDriver", "HostBasedSampleDriver.vcxproj", "{9D446972-7555-4D86-9665-CB304793A0C7}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Win32 = Debug|Win32 - Release|Win32 = Release|Win32 - Debug|x64 = Debug|x64 - Release|x64 = Release|x64 - Debug|ARM64 = Debug|ARM64 - Release|ARM64 = Release|ARM64 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {B756657D-AC58-4D5A-A446-1582707D012E}.Debug|Win32.ActiveCfg = Debug|Win32 - {B756657D-AC58-4D5A-A446-1582707D012E}.Debug|Win32.Build.0 = Debug|Win32 - {B756657D-AC58-4D5A-A446-1582707D012E}.Release|Win32.ActiveCfg = Release|Win32 - {B756657D-AC58-4D5A-A446-1582707D012E}.Release|Win32.Build.0 = Release|Win32 - {B756657D-AC58-4D5A-A446-1582707D012E}.Debug|x64.ActiveCfg = Debug|x64 - {B756657D-AC58-4D5A-A446-1582707D012E}.Debug|x64.Build.0 = Debug|x64 - {B756657D-AC58-4D5A-A446-1582707D012E}.Release|x64.ActiveCfg = Release|x64 - {B756657D-AC58-4D5A-A446-1582707D012E}.Release|x64.Build.0 = Release|x64 - {B756657D-AC58-4D5A-A446-1582707D012E}.Debug|ARM64.ActiveCfg = Debug|ARM64 - {B756657D-AC58-4D5A-A446-1582707D012E}.Debug|ARM64.Build.0 = Debug|ARM64 - {B756657D-AC58-4D5A-A446-1582707D012E}.Release|ARM64.ActiveCfg = Release|ARM64 - {B756657D-AC58-4D5A-A446-1582707D012E}.Release|ARM64.Build.0 = Release|ARM64 - {9D446972-7555-4D86-9665-CB304793A0C7}.Debug|Win32.ActiveCfg = Debug|Win32 - {9D446972-7555-4D86-9665-CB304793A0C7}.Debug|Win32.Build.0 = Debug|Win32 - {9D446972-7555-4D86-9665-CB304793A0C7}.Release|Win32.ActiveCfg = Release|Win32 - {9D446972-7555-4D86-9665-CB304793A0C7}.Release|Win32.Build.0 = Release|Win32 - {9D446972-7555-4D86-9665-CB304793A0C7}.Debug|x64.ActiveCfg = Debug|x64 - {9D446972-7555-4D86-9665-CB304793A0C7}.Debug|x64.Build.0 = Debug|x64 - {9D446972-7555-4D86-9665-CB304793A0C7}.Release|x64.ActiveCfg = Release|x64 - {9D446972-7555-4D86-9665-CB304793A0C7}.Release|x64.Build.0 = Release|x64 - {9D446972-7555-4D86-9665-CB304793A0C7}.Debug|ARM64.ActiveCfg = Debug|ARM64 - {9D446972-7555-4D86-9665-CB304793A0C7}.Debug|ARM64.Build.0 = Debug|ARM64 - {9D446972-7555-4D86-9665-CB304793A0C7}.Release|ARM64.ActiveCfg = Release|ARM64 - {9D446972-7555-4D86-9665-CB304793A0C7}.Release|ARM64.Build.0 = Release|ARM64 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(NestedProjects) = preSolution - {B756657D-AC58-4D5A-A446-1582707D012E} = {1AB32C08-868F-4CE2-9C2A-CE2CF2279ADD} - EndGlobalSection -EndGlobal diff --git a/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/HostBasedSampleDriver.vcxproj b/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/HostBasedSampleDriver.vcxproj deleted file mode 100644 index 6f345409..00000000 --- a/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/HostBasedSampleDriver.vcxproj +++ /dev/null @@ -1,221 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <ItemGroup Label="ProjectConfigurations"> - <ProjectConfiguration Include="Debug|Win32"> - <Configuration>Debug</Configuration> - <Platform>Win32</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Release|Win32"> - <Configuration>Release</Configuration> - <Platform>Win32</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Debug|x64"> - <Configuration>Debug</Configuration> - <Platform>x64</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Release|x64"> - <Configuration>Release</Configuration> - <Platform>x64</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Debug|ARM64"> - <Configuration>Debug</Configuration> - <Platform>ARM64</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Release|ARM64"> - <Configuration>Release</Configuration> - <Platform>ARM64</Platform> - </ProjectConfiguration> - </ItemGroup> - <PropertyGroup Label="Globals"> - <ProjectGuid>{9D446972-7555-4D86-9665-CB304793A0C7}</ProjectGuid> - <RootNamespace>$(MSBuildProjectName)</RootNamespace> - <SupportsPackaging>false</SupportsPackaging> - <RequiresPackageProject>true</RequiresPackageProject> - <Configuration Condition="'$(Configuration)' == ''">Debug</Configuration> - <Platform Condition="'$(Platform)' == ''">Win32</Platform> - <SampleGuid>{45B64CBB-A777-46C3-9D54-DFBCE999343B}</SampleGuid> - </PropertyGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> - <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> - <TargetVersion>Windows10</TargetVersion> - <UseDebugLibraries>False</UseDebugLibraries> - <DriverTargetPlatform>Desktop</DriverTargetPlatform> - <DriverType>None</DriverType> - <PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset> - <ConfigurationType>Utility</ConfigurationType> - </PropertyGroup> - <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> - <TargetVersion>Windows10</TargetVersion> - <UseDebugLibraries>True</UseDebugLibraries> - <DriverTargetPlatform>Desktop</DriverTargetPlatform> - <DriverType>None</DriverType> - <PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset> - <ConfigurationType>Utility</ConfigurationType> - </PropertyGroup> - <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> - <TargetVersion>Windows10</TargetVersion> - <UseDebugLibraries>False</UseDebugLibraries> - <DriverTargetPlatform>Desktop</DriverTargetPlatform> - <DriverType>None</DriverType> - <PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset> - <ConfigurationType>Utility</ConfigurationType> - </PropertyGroup> - <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> - <TargetVersion>Windows10</TargetVersion> - <UseDebugLibraries>True</UseDebugLibraries> - <DriverTargetPlatform>Desktop</DriverTargetPlatform> - <DriverType>None</DriverType> - <PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset> - <ConfigurationType>Utility</ConfigurationType> - </PropertyGroup> - <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'"> - <TargetVersion>Windows10</TargetVersion> - <UseDebugLibraries>False</UseDebugLibraries> - <DriverTargetPlatform>Desktop</DriverTargetPlatform> - <DriverType>None</DriverType> - <PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset> - <ConfigurationType>Utility</ConfigurationType> - </PropertyGroup> - <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'"> - <TargetVersion>Windows10</TargetVersion> - <UseDebugLibraries>True</UseDebugLibraries> - <DriverTargetPlatform>Desktop</DriverTargetPlatform> - <DriverType>None</DriverType> - <PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset> - <ConfigurationType>Utility</ConfigurationType> - </PropertyGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> - <PropertyGroup> - <OutDir>$(IntDir)</OutDir> - </PropertyGroup> - <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> - <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" /> - </ImportGroup> - <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> - <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" /> - </ImportGroup> - <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> - <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" /> - </ImportGroup> - <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> - <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" /> - </ImportGroup> - <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'"> - <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" /> - </ImportGroup> - <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'"> - <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" /> - </ImportGroup> - <ItemGroup Label="WrappedTaskItems" /> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> - <TargetName>HostBasedSampleDriver</TargetName> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> - <TargetName>HostBasedSampleDriver</TargetName> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> - <TargetName>HostBasedSampleDriver</TargetName> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> - <TargetName>HostBasedSampleDriver</TargetName> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'"> - <TargetName>HostBasedSampleDriver</TargetName> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'"> - <TargetName>HostBasedSampleDriver</TargetName> - </PropertyGroup> - <ItemGroup> - <FilesToPackage Include="usb_host_based_sample-manifest.ini" /> - <FilesToPackage Include="usb_host_based_sample-pipelineconfig.xml" /> - <FilesToPackage Include="usb_host_based_sample.gpd" /> - <FilesToPackage Include="usb_host_based_sample.js" /> - <FilesToPackage Include="usb_host_based_sample_events.xml" /> - <FilesToPackage Include="usb_host_based_sample_extension.xml" /> - </ItemGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> - <ClCompile> - <ExceptionHandling> - </ExceptionHandling> - </ClCompile> - <DriverSign> - <FileDigestAlgorithm>sha256</FileDigestAlgorithm> - </DriverSign> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> - <ClCompile> - <ExceptionHandling> - </ExceptionHandling> - </ClCompile> - <DriverSign> - <FileDigestAlgorithm>sha256</FileDigestAlgorithm> - </DriverSign> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> - <ClCompile> - <ExceptionHandling> - </ExceptionHandling> - </ClCompile> - <DriverSign> - <FileDigestAlgorithm>sha256</FileDigestAlgorithm> - </DriverSign> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> - <ClCompile> - <ExceptionHandling> - </ExceptionHandling> - </ClCompile> - <DriverSign> - <FileDigestAlgorithm>sha256</FileDigestAlgorithm> - </DriverSign> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'"> - <ClCompile> - <ExceptionHandling> - </ExceptionHandling> - </ClCompile> - <DriverSign> - <FileDigestAlgorithm>sha256</FileDigestAlgorithm> - </DriverSign> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'"> - <ClCompile> - <ExceptionHandling> - </ExceptionHandling> - </ClCompile> - <DriverSign> - <FileDigestAlgorithm>sha256</FileDigestAlgorithm> - </DriverSign> - </ItemDefinitionGroup> - <ItemGroup> - <Inf Exclude="@(Inf)" Include="*.inf" /> - <FilesToPackage Include="$(TargetPath)" Condition="'$(ConfigurationType)'=='Driver' or '$(ConfigurationType)'=='DynamicLibrary'" /> - </ItemGroup> - <ItemGroup> - <None Include="*.txt" Exclude="@(None)" /> - <None Include="*.htm" Exclude="@(None)" /> - <None Include="*.html" Exclude="@(None)" /> - <None Include="*.ico" Exclude="@(None)" /> - <None Include="*.cur" Exclude="@(None)" /> - <None Include="*.bmp" Exclude="@(None)" /> - <None Include="*.dlg" Exclude="@(None)" /> - <None Include="*.rct" Exclude="@(None)" /> - <None Include="*.gif" Exclude="@(None)" /> - <None Include="*.jpg" Exclude="@(None)" /> - <None Include="*.jpeg" Exclude="@(None)" /> - <None Include="*.wav" Exclude="@(None)" /> - <None Include="*.jpe" Exclude="@(None)" /> - <None Include="*.tiff" Exclude="@(None)" /> - <None Include="*.tif" Exclude="@(None)" /> - <None Include="*.png" Exclude="@(None)" /> - <None Include="*.rc2" Exclude="@(None)" /> - <None Include="*.def" Exclude="@(None)" /> - <None Include="*.bat" Exclude="@(None)" /> - <None Include="*.hpj" Exclude="@(None)" /> - <None Include="*.asmx" Exclude="@(None)" /> - </ItemGroup> - <ItemGroup> - <ClInclude Exclude="@(ClInclude)" Include="*.h;*.hpp;*.hxx;*.hm;*.inl;*.xsd" /> - </ItemGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> -</Project>
\ No newline at end of file diff --git a/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/HostBasedSampleDriver.vcxproj.Filters b/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/HostBasedSampleDriver.vcxproj.Filters deleted file mode 100644 index 74551d65..00000000 --- a/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/HostBasedSampleDriver.vcxproj.Filters +++ /dev/null @@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <ItemGroup> - <Filter Include="Source Files"> - <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx;*</Extensions> - <UniqueIdentifier>{ACA7BBB6-5F3F-4E43-930C-EBC0AD55CE0E}</UniqueIdentifier> - </Filter> - <Filter Include="Header Files"> - <Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions> - <UniqueIdentifier>{76D922C6-8F3F-45D8-B77F-0D8C423990B9}</UniqueIdentifier> - </Filter> - <Filter Include="Resource Files"> - <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms;man;xml</Extensions> - <UniqueIdentifier>{46CA4945-E191-4A29-88D3-EB75CD9E68C5}</UniqueIdentifier> - </Filter> - <Filter Include="Driver Files"> - <Extensions>inf;inv;inx;mof;mc;</Extensions> - <UniqueIdentifier>{CF26C539-5603-4EBD-9502-6AFF1DBCE063}</UniqueIdentifier> - </Filter> - </ItemGroup> - <ItemGroup> - <FilesToPackage Include="usb_host_based_sample-pipelineconfig.xml"> - <Filter>Resource Files</Filter> - </FilesToPackage> - <FilesToPackage Include="usb_host_based_sample_events.xml"> - <Filter>Resource Files</Filter> - </FilesToPackage> - <FilesToPackage Include="usb_host_based_sample_extension.xml"> - <Filter>Resource Files</Filter> - </FilesToPackage> - <None Include="usb_host_based_sample-pipelineconfig.xml"> - <Filter>Resource Files</Filter> - </None> - <None Include="usb_host_based_sample_events.xml"> - <Filter>Resource Files</Filter> - </None> - <None Include="usb_host_based_sample_extension.xml"> - <Filter>Resource Files</Filter> - </None> - </ItemGroup> -</Project>
\ No newline at end of file diff --git a/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/Package/package.VcxProj b/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/Package/package.VcxProj deleted file mode 100644 index 8bd189b0..00000000 --- a/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/Package/package.VcxProj +++ /dev/null @@ -1,128 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <ItemGroup Label="ProjectConfigurations"> - <ProjectConfiguration Include="Debug|Win32"> - <Configuration>Debug</Configuration> - <Platform>Win32</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Release|Win32"> - <Configuration>Release</Configuration> - <Platform>Win32</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Debug|x64"> - <Configuration>Debug</Configuration> - <Platform>x64</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Release|x64"> - <Configuration>Release</Configuration> - <Platform>x64</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Debug|ARM64"> - <Configuration>Debug</Configuration> - <Platform>ARM64</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Release|ARM64"> - <Configuration>Release</Configuration> - <Platform>ARM64</Platform> - </ProjectConfiguration> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="..\HostBasedSampleDriver.vcxproj"> - <Project>{9D446972-7555-4D86-9665-CB304793A0C7}</Project> - </ProjectReference> - </ItemGroup> - <PropertyGroup Label="PropertySheets"> - <PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset> - <ConfigurationType>Utility</ConfigurationType> - <DriverType>Package</DriverType> - <DisableFastUpToDateCheck>true</DisableFastUpToDateCheck> - <Configuration>Debug</Configuration> - </PropertyGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> - <PropertyGroup Label="Globals"> - <ProjectGuid>{B756657D-AC58-4D5A-A446-1582707D012E}</ProjectGuid> - <SampleGuid>{CE9EE2B8-13CF-44F8-9F72-BB9F84A2A645}</SampleGuid> - <RootNamespace>$(MSBuildProjectName)</RootNamespace> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> - <TargetVersion>Windows10</TargetVersion> - <UseDebugLibraries>true</UseDebugLibraries> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> - <TargetVersion>Windows10</TargetVersion> - <UseDebugLibraries>false</UseDebugLibraries> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> - <TargetVersion>Windows10</TargetVersion> - <UseDebugLibraries>true</UseDebugLibraries> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> - <TargetVersion>Windows10</TargetVersion> - <UseDebugLibraries>false</UseDebugLibraries> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="Configuration"> - <TargetVersion>Windows10</TargetVersion> - <UseDebugLibraries>true</UseDebugLibraries> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="Configuration"> - <TargetVersion>Windows10</TargetVersion> - <UseDebugLibraries>false</UseDebugLibraries> - </PropertyGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> - <ImportGroup Label="ExtensionSettings"> - </ImportGroup> - <ImportGroup Label="PropertySheets"> - <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> - </ImportGroup> - <PropertyGroup Label="UserMacros" /> - <PropertyGroup /> - <PropertyGroup> - <DebuggerFlavor>DbgengKernelDebugger</DebuggerFlavor> - <ImportToStore>False</ImportToStore> - <InstallMode>None</InstallMode> - <HardwareIdString /> - <CommandLine /> - <ScriptPath /> - <DeployFiles /> - <ScriptName /> - <ScriptDeviceQuery>%PathToInf%</ScriptDeviceQuery> - <EnableVerifier>False</EnableVerifier> - <AllDrivers>False</AllDrivers> - <VerifyProjectOutput>True</VerifyProjectOutput> - <VerifyDrivers /> - <VerifyFlags>133563</VerifyFlags> - </PropertyGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> - <DriverSign> - <FileDigestAlgorithm>sha256</FileDigestAlgorithm> - </DriverSign> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> - <DriverSign> - <FileDigestAlgorithm>sha256</FileDigestAlgorithm> - </DriverSign> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> - <DriverSign> - <FileDigestAlgorithm>sha256</FileDigestAlgorithm> - </DriverSign> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> - <DriverSign> - <FileDigestAlgorithm>sha256</FileDigestAlgorithm> - </DriverSign> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'"> - <DriverSign> - <FileDigestAlgorithm>sha256</FileDigestAlgorithm> - </DriverSign> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'"> - <DriverSign> - <FileDigestAlgorithm>sha256</FileDigestAlgorithm> - </DriverSign> - </ItemDefinitionGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> - <ImportGroup Label="ExtensionTargets"> - </ImportGroup> -</Project>
\ No newline at end of file diff --git a/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/Package/package.VcxProj.Filters b/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/Package/package.VcxProj.Filters deleted file mode 100644 index 85797e90..00000000 --- a/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/Package/package.VcxProj.Filters +++ /dev/null @@ -1,21 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <ItemGroup> - <Filter Include="Source Files"> - <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx;*</Extensions> - <UniqueIdentifier>{2EF8CCC7-8C3B-4E62-95C2-B620E0CE232B}</UniqueIdentifier> - </Filter> - <Filter Include="Header Files"> - <Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions> - <UniqueIdentifier>{AF7E4E12-189E-4CBC-B989-CE143905316E}</UniqueIdentifier> - </Filter> - <Filter Include="Resource Files"> - <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms;man;xml</Extensions> - <UniqueIdentifier>{AEB5CD35-F331-4D44-90DD-157D4199F069}</UniqueIdentifier> - </Filter> - <Filter Include="Driver Files"> - <Extensions>inf;inv;inx;mof;mc;</Extensions> - <UniqueIdentifier>{EAD2021B-7399-48F2-900F-E003121D6C41}</UniqueIdentifier> - </Filter> - </ItemGroup> -</Project>
\ No newline at end of file diff --git a/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/README.md b/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/README.md deleted file mode 100644 index 3c7bfba2..00000000 --- a/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/README.md +++ /dev/null @@ -1,67 +0,0 @@ ---- -page_type: sample -description: "Demonstrates how to support host-based devices that use the v4 print driver model and are connected via USB." -languages: -- javascript -- xml -products: -- windows -- windows-wdk ---- - -# USB Host-Based Print Driver Sample - -This driver sample demonstrates how to support host-based devices that use the v4 print driver model, and are connected via USB. - -> [!NOTE] -> This sample is for the v4 print driver model. - -Windows enables manufacturers to support Bidirectional Communication (Bidi) for USB devices, by using a combination of both a Bidi XML file and a Javascript file known as a USB Bidi extender. The *usb\_host\_based\_sample.js* file that is included with the sample, plays the role of the USB Bidi extender. - -The USB Bidi extender allows apps to use Bidi with USB as the transport mechanism. The Javascript implementation does not support any device flow control, or any multiplexing of control information with print jobs during printing. - -By default, Bidi queries and status requests are routed over the USB device interface that is used for printing. - -In addition to extending Bidi communication, this driver sample also specifies the schema elements that it supports. The *usb\_host\_based\_sample\_extension.xml* file that is included with the sample, provides information about the supported schema elements. - -The Bidi schema is a hierarchy of printer attributes, some of which are properties and others that are values (or value entries): - -- *Property* - - - A property is a node in the schema hierarchy. A property can have one or more children, and these children can be other properties or values. - -- *Value* - - - A value is a leaf in the schema hierarchy that represents either a single data item or a list of related data items. A value has a name, a data type, and a data value. A value cannot have child elements. - -For more information, see [USB Bidi Extender](https://docs.microsoft.com/windows-hardware/drivers/print/usb-bidi-extender) and [Bidi Communication Schema](https://docs.microsoft.com/windows-hardware/drivers/print/bidirectional-communication-schema). - -## File manifest - -Here are the core files that you will find in this sample: - -### usb\_host\_based\_sample.js - -A USB Bidi Extension JavaScript file which includes support for controlling printing for host-based devices. This is the only code in the driver sample. It is invoked by USBMon and it communicates with the device to do the following: - -- Determine if the device is ready to receive data - -- Check to see if there is an error condition - -- Read the device status - -### usb\_host\_based\_sample\_events.xml - -A 'driver events' XML file that specifies an event which detects when the user needs to flip over the paper in the tray. - -### usb\_host\_based\_sample\_extension.xml - -A USB Bidi Extension XML file that specifies the supported Bidi Schema elements for this driver. - -## Build the sample - -For information and instructions about how to test and deploy drivers, see [Developing, Testing, and Deploying Drivers](https://docs.microsoft.com/windows-hardware/drivers/develop/). - -## Run the sample - -To understand how to run this sample as a Windows driver, see the [v4 Printer Driver](https://docs.microsoft.com/windows-hardware/drivers/print/v4-printer-driver) collection of topics. diff --git a/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/usb_host_based_sample-manifest.ini b/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/usb_host_based_sample-manifest.ini deleted file mode 100644 index 3205ffcf..00000000 --- a/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/usb_host_based_sample-manifest.ini +++ /dev/null @@ -1,13 +0,0 @@ -[DriverConfig] -DriverCategory=PrintFax.Printer -DataFile=usb_host_based_sample.gpd - -; Note: Please replace the GUID below when building a production driver. -PrinterDriverID={00000000-0000-0000-0000-000000000000} -Flags=HostBasedDevice -EventFile=usb_host_based_sample_events.xml -RequiredFiles=UNIRES.DLL,STDNAMES.GPD,MSXPSINC.GPD - -[BidiFiles] -BidiUSBFile=usb_host_based_sample_extension.xml -BidiUSBJSFile=usb_host_based_sample.js diff --git a/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/usb_host_based_sample-pipelineconfig.xml b/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/usb_host_based_sample-pipelineconfig.xml deleted file mode 100644 index 905358a2..00000000 --- a/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/usb_host_based_sample-pipelineconfig.xml +++ /dev/null @@ -1 +0,0 @@ -<Filters /> diff --git a/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/usb_host_based_sample.gpd b/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/usb_host_based_sample.gpd deleted file mode 100644 index 1f37334c..00000000 --- a/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/usb_host_based_sample.gpd +++ /dev/null @@ -1,138 +0,0 @@ -*% -*% This file is a sample GPD demonstrating basic printer features/options -*% -*% - -*%****************************************************************************** -*%: The following root-level attributes should be modified to suit your printer -*%****************************************************************************** -*GPDFileName: "usb_host_based.GPD" -*GPDFileVersion: "1.0" -*GPDSpecVersion: "1.0" -*Include: "StdNames.gpd" -*%************************************************** -*% V4 GPD-based printer drivers must include msxpsinc.GPD file -*%************************************************** -*Include: "msxpsinc.gpd" -*ModelName: "Microsft USB Host Based Sample Driver" -*MasterUnits: PAIR(1200, 1200) -*PrinterType: PAGE -*MaxCopies: 1 -*Command: CmdSendBlockData { *Cmd : "" } - -*PrintSchemaPrivateNamespaceURI: "http://www.microsoft.com/USBHostBasedSample" - -*%****************************************************************************** -*% Orientation -*%****************************************************************************** -*Feature: Orientation -{ - *rcNameID: =ORIENTATION_DISPLAY - *DefaultOption: PORTRAIT - - *Option: PORTRAIT - { - *rcNameID: =PORTRAIT_DISPLAY - } - - *Option: LANDSCAPE_CC270 - { - *rcNameID: =LANDSCAPE_DISPLAY - } -} - - -*%****************************************************************************** -*% Resolution -*%****************************************************************************** -*Feature: Resolution -{ - *rcNameID: =RESOLUTION_DISPLAY - *DefaultOption: Option1 - - *Option: Option1 - { - *Name: "600 x 600 " =DOTS_PER_INCH - *DPI: PAIR(600, 600) - *TextDPI: PAIR(600, 600) - *SpotDiameter: 100 - } -} - -*%****************************************************************************** -*% Input Bin -*%****************************************************************************** -*Feature: InputBin -{ - *rcNameID: =PAPER_SOURCE_DISPLAY - *DefaultOption: FORMSOURCE - - *Option: FORMSOURCE - { - *rcNameID: =AUTO_DISPLAY - } - *Option: UPPER - { - *rcNameID: =UPPER_TRAY_DISPLAY - } -} - -*%****************************************************************************** -*% Paper Size -*%****************************************************************************** -*Feature: PaperSize -{ - *rcNameID: =PAPER_SIZE_DISPLAY - *DefaultOption: LETTER - - *Option: LETTER - { - *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *% 1000 - *switch: Orientation - { - *case: PORTRAIT - { - *PrintableArea: PAIR(9000, 12600) - *PrintableOrigin: PAIR(200, 200) - *CursorOrigin: PAIR(0, 0) - } - *case: LANDSCAPE_CC270 - { - *PrintableArea: PAIR(9000, 12600) - *PrintableOrigin: PAIR(200, 200) - *CursorOrigin: PAIR(0, 0) - } - } - } - - *Option: A4 - { - *rcNameID: =RCID_DMPAPER_SYSTEM_NAME *% 1008 - *switch: Orientation - { - *case: PORTRAIT - { - *PrintableArea: PAIR(9000, 12600) - *PrintableOrigin: PAIR(200, 200) - *CursorOrigin: PAIR(0, 0) - } - *case: LANDSCAPE_CC270 - { - *PrintableArea: PAIR(9000, 12600) - *PrintableOrigin: PAIR(200, 200) - *CursorOrigin: PAIR(0, 0) - } - } - } -} - -*%****************************************************************************** -*% Cursor Commands -*% The following cursor commands are mandatory -*% -*% Learn more: Cursor Commands -*% http://msdn.microsoft.com/en-us/library/ff547223(VS.85).aspx -*%****************************************************************************** -*Command: CmdCR { *Cmd : "" } -*Command: CmdLF { *Cmd : "" } -*Command: CmdFF { *Cmd : "" } diff --git a/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/usb_host_based_sample.inf b/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/usb_host_based_sample.inf Binary files differdeleted file mode 100644 index ae7f6e05..00000000 --- a/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/usb_host_based_sample.inf +++ /dev/null diff --git a/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/usb_host_based_sample.js b/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/usb_host_based_sample.js Binary files differdeleted file mode 100644 index f7131583..00000000 --- a/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/usb_host_based_sample.js +++ /dev/null diff --git a/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/usb_host_based_sample_events.xml b/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/usb_host_based_sample_events.xml deleted file mode 100644 index bf6953df..00000000 --- a/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/usb_host_based_sample_events.xml +++ /dev/null @@ -1,11 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<DriverEvents xmlns="http://schemas.microsoft.com/windows/2011/08/printing/driverevents" schemaVersion="4.0"> - <DriverEvent xmlns="" eventId="{B3E280B0-7DCD-4CD0-AFF7-BA2AF06D1235}"> - <Transport>USB</Transport> - <Query>\Printer.Extension</Query> - <Trigger result="\Printer.Extension:ManualDuplexEvent" comparison="EqualTo" value=""> - <!-- Represents the resource ID IDS_ASYNCUI_TEXT_DUPLEX_NEEDS_OTHER_SIDE --> - <StandardMessage resourceId="1100" /> - </Trigger> - </DriverEvent> -</DriverEvents>
\ No newline at end of file diff --git a/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/usb_host_based_sample_extension.xml b/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/usb_host_based_sample_extension.xml deleted file mode 100644 index 7d892878..00000000 --- a/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/usb_host_based_sample_extension.xml +++ /dev/null @@ -1,8 +0,0 @@ -<?xml version='1.0'?> -<bidi:Schema xmlns:bidi="http://schemas.microsoft.com/windows/2010/09/printing/usbbidi"> - <Property name='Printer'> - <Property name='Extension'> - <Event name="ManualDuplexEvent" /> - </Property> - </Property> -</bidi:Schema> diff --git a/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/v4PrintDriver-Intellisense-Windows8.1.js b/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/v4PrintDriver-Intellisense-Windows8.1.js deleted file mode 100644 index bbbc31a0..00000000 --- a/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/v4PrintDriver-Intellisense-Windows8.1.js +++ /dev/null @@ -1,126 +0,0 @@ -/// <reference path="v4PrintDriver-Intellisense.js" /> - -v4PrintDriverIntellisense.appendInterfaceMethods( - IPrintSchemaTicket, - { - GetParameterInitializer: function (name, namespaceUri) { - /// <summary> - /// Method maps to COM IPrintSchemaTicket2::GetParameterInitializer. - /// </summary> - /// <param name="name" type="String" /> - /// <param name="namespaceUri" type="String" /> - /// <returns type="IPrintSchemaParameterInitializer" /> - } - }); - -v4PrintDriverIntellisense.appendInterfaceMethods( - IPrintSchemaCapabilities, - { - GetParameterDefinition: function (name, namespaceUri) { - /// <summary> - /// Method maps to COM IPrintSchemaCapabilities2::GetParameterDefinition. - /// </summary> - /// <param name="name" type="String" /> - /// <param name="namespaceUri" type="String" /> - /// <returns type="IPrintSchemaParameterDefinition" /> - } - }); - -IPrintSchemaParameterInitializer = function () { } -v4PrintDriverIntellisense.createInterface( - IPrintSchemaParameterInitializer, - IPrintSchemaElement, - { - /// <field name="Value" type="String/Number"> - /// Property-get/set maps to COM IPrintSchemaParameterInitializer::Value. - /// </field> - Value: null, - }); - -IPrintSchemaParameterDefinition = function () { } -v4PrintDriverIntellisense.createInterface( - IPrintSchemaParameterDefinition, - IPrintSchemaDisplayableElement, - { - /// <field name="UserInputRequired" type="Boolean"> - /// Property-get maps to COM IPrintSchemaParameterDefinition::UserInputRequired. - /// </field> - UserInputRequired: null, - /// <field name="UnitType" type="String"> - /// Property-get maps to COM IPrintSchemaParameterDefinition::UnitType. - /// </field> - UnitType: null, - /// <field name="DataType" type="PrintSchemaParameterDataType"> - /// Property-get maps to COM IPrintSchemaParameterDefinition::DataType. - /// </field> - DataType: null, - /// <field name="RangeMin" type="Number"> - /// Property-get maps to COM IPrintSchemaParameterDefinition::RangeMin. - /// </field> - RangeMin: null, - /// <field name="RangeMax" type="Number"> - /// Property-get maps to COM IPrintSchemaParameterDefinition::RangeMax. - /// </field> - RangeMax: null - }); - -IPrinterScriptUsbJobContextReturnCodes = function () { } -v4PrintDriverIntellisense.createInterface( - IPrinterScriptUsbJobContextReturnCodes, - null, - { - /// <field name="Success" type="Number" integer="true"> - /// Property-get maps to COM IPrinterScriptUsbJobContextReturnCodes::Success. - /// </field> - Success: null, - /// <field name="Failure" type="Number" integer="true"> - /// Property-get maps to COM IPrinterScriptUsbJobContextReturnCodes::Failure. - /// </field> - Failure: null, - /// <field name="Retry" type="Number" integer="true"> - /// Property-get maps to COM IPrinterScriptUsbJobContextReturnCodes::Retry. - /// </field> - Retry: null, - /// <field name="DeviceBusy" type="Number" integer="true"> - /// Property-get maps to COM IPrinterScriptUsbJobContextReturnCodes::DeviceBusy. - /// </field> - DeviceBusy: null, - /// <field name="AbortTheJob" type="Number" integer="true"> - /// Property-get maps to COM IPrinterScriptUsbJobContextReturnCodes::AbortTheJob. - /// </field> - AbortTheJob: null - }); - -IPrinterScriptUsbWritePrintDataProgress = function () { } -v4PrintDriverIntellisense.createInterface( - IPrinterScriptUsbWritePrintDataProgress, - null, - { - /// <field name="ProcessedByteCount" type="Number"> - /// Property-get/set maps to COM IPrinterScriptUsbWritePrintDataProgress::ProcessedByteCount. - /// </field> - ProcessedByteCount: null - }); - -IPrinterScriptUsbJobContext = function () { } -v4PrintDriverIntellisense.createInterface( - IPrinterScriptUsbJobContext, - null, - { - /// <field name="JobPropertyBag" type="IPrinterScriptablePropertyBag"> - /// Property-get maps to COM IPrinterScriptUsbJobContext::JobPropertyBag. - /// </field> - JobPropertyBag: null, - /// <field name="ReturnCodes" type="IPrinterScriptUsbJobContextReturnCodes"> - /// Property-get maps to COM IPrinterScriptUsbJobContext::ReturnCodes. - /// </field> - ReturnCodes: null, - /// <field name="TemporaryStreams" type="Array"> - /// Property-get maps to COM IPrinterScriptUsbJobContext::TemporaryStreams. Provides an array of IPrinterScriptableSequentialStream. - /// </field> - TemporaryStreams: null, - /// <field name="PrintedPageCount" type="Number"> - /// Property-get/set maps to COM IPrinterScriptUsbJobContext::PrintedPageCount. - /// </field> - PrintedPageCount: null - });
\ No newline at end of file diff --git a/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/v4PrintDriver-Intellisense.js b/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/v4PrintDriver-Intellisense.js deleted file mode 100644 index 2386541d..00000000 --- a/print/v4PrintDriverSamples/v4PrintDriver-HostBasedSampleDriver/v4PrintDriver-Intellisense.js +++ /dev/null @@ -1,513 +0,0 @@ -// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF -// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO -// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A -// PARTICULAR PURPOSE. -// -// Copyright (c) Microsoft Corporation. All rights reserved -// -// File Name: -// -// v4PrintDriver-Intellisense.js -// -// Abstract: -// -// This file defines intellisense to be used by JavaScript extensions in v4 print drivers. - -var v4PrintDriverIntellisense = { - /// <summary>Intended for use by v4 print driver JavaScript Intellisense.</summary> - createInterface: function (childInterface, baseType, prototype) { - /// <summary>Intended for use by v4 print driver JavaScript Intellisense.</summary> - childInterface.__class = true; - - if (prototype) { - childInterface.prototype = prototype; - } - - if (baseType) { - childInterface.__baseType = baseType; - childInterface.__basePrototypePending = true; - v4PrintDriverIntellisense.resolveInheritance(childInterface); - } - }, - appendInterfaceMethods: function (baseType, prototype) { - /// <summary>Intended for use by v4 print driver JavaScript Intellisense.</summary> - for (var memberName in prototype) { - baseType.prototype[memberName] = prototype[memberName]; - } - }, - resolveInheritance: function (childInterface) { - /// <summary>Intended for use by v4 print driver JavaScript Intellisense.</summary> - var baseType = childInterface.__baseType; - if (!baseType) { - return; - } - - if (baseType.__baseType) { - resolveInheritance(baseType); - } - - if (!childInterface.__basePrototypePending) { - return; - } - - for (var memberName in baseType.prototype) { - var memberValue = baseType.prototype[memberName]; - if (!childInterface.prototype[memberName]) { - childInterface.prototype[memberName] = memberValue; - } - } - - delete childInterface.__basePrototypePending; - } -} - -IPrintSchemaElement = function () { } -v4PrintDriverIntellisense.createInterface( - IPrintSchemaElement, - null, - { - /// <field name="XmlNode" type="XML DOM"> - /// Property-get maps to COM IPrintSchemaElement::XmlNode. - /// </field> - XmlNode: null, - /// <field name="Name" type="String"> - /// Property-get maps to COM IPrintSchemaElement::Name. - /// </field> - Name: null, - /// <field name="NamespaceUri" type="String"> - /// Property-get maps to COM IPrintSchemaElement::NamespaceUri. - /// </field> - NamespaceUri: null - }); - -IPrintSchemaDisplayableElement = function () { } -v4PrintDriverIntellisense.createInterface( - IPrintSchemaDisplayableElement, - IPrintSchemaElement, - { - /// <field name="DisplayName" type="String"> - /// Property-get maps to COM IPrintSchemaDisplayableElement::DisplayName. - /// </field> - DisplayName: null - }); - - -IPrintSchemaOption = function () { } -v4PrintDriverIntellisense.createInterface( - IPrintSchemaOption, - IPrintSchemaDisplayableElement, - { - /// <field name="Selected" type="Boolean"> - /// Property-get maps to COM IPrintSchemaOption::Selected. - /// </field> - Selected: null, - /// <field name="Constrained" type="PrintSchemaConstrainedSetting"> - /// Property-get maps to COM IPrintSchemaOption::Constrained. - /// </field> - Constrained: null, - GetPropertyValue: function (name, namespaceUri) { - /// <summary> - /// Method maps to COM IPrintSchemaOption::GetPropertyValue. - /// </summary> - /// <param name="name" type="String" /> - /// <param name="namespaceUri" type="String" /> - /// <returns type="XML DOM" /> - }, - /// <field name="PagesPerSheet" type="Number" integer="true"> - /// Property-get maps to COM IPrintSchemaNUpOption::PagesPerSheet. Valid for NUp option only. - /// </field> - PagesPerSheet: null, - /// <field name="WidthInMicrons" type="Number" integer="true"> - /// Property-get maps to COM IPrintSchemaPageMediaSizeOption::WidthInMicrons. Valid for PageMediaSize option only. - /// </field> - WidthInMicrons: null, - /// <field name="HeightInMicrons" type="Number" integer="true"> - /// Property-get maps to COM IPrintSchemaPageMediaSizeOption::HeightInMicrons. Valid for PageMediaSize option only. - /// </field> - HeightInMicrons: null - - }); - -IPrintSchemaOptionCollection = function () { } -v4PrintDriverIntellisense.createInterface( - IPrintSchemaOptionCollection, - null, - { - /// <field name="Count" type="Number" integer="true"> - /// Property-get maps to COM IPrintSchemaOptionCollection::Count. - /// </field> - Count: null, - GetAt: function (index) { - /// <summary> - /// Property-get maps to COM IPrintSchemaOptionCollection::GetAt. - /// </summary> - /// <param name="index" type="Number" integer="true" /> - /// <returns type="IPrintSchemaOption" /> - } - }); - - -IPrintSchemaFeature = function () { } -v4PrintDriverIntellisense.createInterface( - IPrintSchemaFeature, - IPrintSchemaDisplayableElement, - { - /// <field name="SelectedOption" type="IPrintSchemaOption"> - /// Property-set/get maps to COM IPrintSchemaFeature::SelectedOption. - /// </field> - SelectedOption: null, - /// <field name="SelectionType" type="PrintSchemaSelectionType"> - /// Property-get maps to COM IPrintSchemaFeature::SelectionType. - /// </field> - SelectionType: null, - GetOption: function (name, namespaceUri) { - /// <summary> - /// Method maps to COM IPrintSchemaFeature::GetOption. - /// </summary> - /// <param name="name" type="String" /> - /// <param name="namespaceUri" type="String" /> - /// <returns type="IPrintSchemaOption" /> - }, - /// <field name="DisplayUI" type="Boolean"> - /// Property-get maps to COM IPrintSchemaFeature::DisplayUI. - /// </field> - DisplayUI: null - }); - - -IPrintSchemaPageImageableSize = function () { } -v4PrintDriverIntellisense.createInterface( - IPrintSchemaPageImageableSize, - IPrintSchemaElement, - { - /// <field name="ImageableSizeWidthInMicrons" type="Number" integer="true"> - /// Property-get maps to COM IPrintSchemaPageImageableSize::ImageableSizeWidthInMicrons. - /// </field> - ImageableSizeWidthInMicrons: null, - /// <field name="ImageableSizeHeightInMicrons" type="Number" integer="true"> - /// Property-get maps to COM IPrintSchemaPageImageableSize::ImageableSizeHeightInMicrons. - /// </field> - ImageableSizeHeightInMicrons: null, - /// <field name="OriginWidthInMicrons" type="Number" integer="true"> - /// Property-get maps to COM IPrintSchemaPageImageableSize::OriginWidthInMicrons. - /// </field> - OriginWidthInMicrons: null, - /// <field name="OriginHeightInMicrons" type="Number" integer="true"> - /// Property-get maps to COM IPrintSchemaPageImageableSize::OriginHeightInMicrons. - /// </field> - OriginHeightInMicrons: null, - /// <field name="ExtentWidthInMicrons" type="Number" integer="true"> - /// Property-get maps to COM IPrintSchemaPageImageableSize::ExtentWidthInMicrons. - /// </field> - ExtentWidthInMicrons: null, - /// <field name="ExtentHeightInMicrons" type="Number" integer="true"> - /// Property-get maps to COM IPrintSchemaPageImageableSize::ExtentHeightInMicrons. - /// </field> - ExtentHeightInMicrons: null - }); - - -IPrintSchemaCapabilities = function () { } -v4PrintDriverIntellisense.createInterface( - IPrintSchemaCapabilities, - IPrintSchemaElement, - { - GetFeatureByKeyName: function (keyName) { - /// <summary> - /// Method maps to COM IPrintSchemaCapabilities::GetFeatureByKeyName. - /// </summary> - /// <param name="keyName" type="String" /> - /// <returns type="IPrintSchemaFeature" /> - }, - GetFeature: function (name, namespaceUri) { - /// <summary> - /// Method maps to COM IPrintSchemaCapabilities::GetFeature. - /// </summary> - /// <param name="name" type="String" /> - /// <param name="namespaceUri" type="String" /> - /// <returns type="IPrintSchemaFeature" /> - }, - /// <field name="PageImageableSize" type="IPrintSchemaPageImageableSize"> - /// Property-get maps to COM IPrintSchemaCapabilities::PageImageableSize. - /// </field> - PageImageableSize: null, - /// <field name="JobCopiesAllDocumentsMinValue" type="Number" integer="true"> - /// Property-get maps to COM IPrintSchemaCapabilities::JobCopiesAllDocumentsMinValue. - /// </field> - JobCopiesAllDocumentsMinValue: null, - /// <field name="JobCopiesAllDocumentsMaxValue" type="Number" integer="true"> - /// Property-get maps to COM IPrintSchemaCapabilities::JobCopiesAllDocumentsMaxValue. - /// </field> - JobCopiesAllDocumentsMaxValue: null, - GetSelectedOptionInPrintTicket: function (feature) { - /// <summary> - /// Method maps to COM IPrintSchemaCapabilities::GetSelectedOptionInPrintTicket. - /// </summary> - /// <param name="feature" type="IPrintSchemaFeature" /> - /// <returns type="IPrintSchemaOption" /> - }, - GetOptions: function (feature) { - /// <summary> - /// Method maps to COM IPrintSchemaCapabilities::GetOptions. - /// </summary> - /// <param name="feature" type="IPrintSchemaFeature" /> - /// <returns type="IPrintSchemaOptionCollection" /> - } - }); - - -IPrintSchemaTicket = function () { } -v4PrintDriverIntellisense.createInterface( - IPrintSchemaTicket, - IPrintSchemaElement, - { - GetFeatureByKeyName: function (keyName) { - /// <summary> - /// Method maps to COM IPrintSchemaTicket::GetFeatureByKeyName. - /// </summary> - /// <param name="keyName" type="String" /> - /// <returns type="IPrintSchemaFeature" /> - }, - GetFeature: function (name, namespaceUri) { - /// <summary> - /// Method maps to COM IPrintSchemaTicket::GetFeature. - /// </summary> - /// <param name="name" type="String" /> - /// <param name="namespaceUri" type="String" /> - /// <returns type="IPrintSchemaFeature" /> - }, - NotifyXmlChanged: function () { - /// <summary> - /// Method maps to COM IPrintSchemaTicket::NotifyXmlChanged. - /// </summary> - }, - GetCapabilities: function () { - /// <summary> - /// Method maps to COM IPrintSchemaTicket::GetCapabilities. - /// </summary> - /// <returns type="IPrintSchemaCapabilities" /> - }, - /// <field name="JobCopiesAllDocuments" type="Number" integer="true"> - /// Property-get/put maps to IPrintSchemaTicket::JobCopiesAllDocuments. - /// </field> - JobCopiesAllDocuments: null - }); - - -IPrinterScriptableSequentialStream = function () { } -v4PrintDriverIntellisense.createInterface( - IPrinterScriptableSequentialStream, - null, - { - Read: function (count) { - /// <summary> - /// Method maps to COM IPrinterScriptableSequentialStream::Read. - /// </summary> - /// <param name="count" type="Number" integer="true" /> - /// <returns type="Array" /> - }, - Write: function (array) { - /// <summary> - /// Method maps to COM IPrinterScriptableSequentialStream::Write. - /// </summary> - /// <param name="array" type="Array" /> - /// <returns type="Number" integer="true"/> - } - }); - -IPrinterScriptableStream = function () { } -v4PrintDriverIntellisense.createInterface( - IPrinterScriptableStream, - IPrinterScriptableSequentialStream, - { - Commit: function () { - /// <summary> - /// Method maps to COM IPrinterScriptableStream::Commit. - /// </summary> - }, - Seek: function (offset, streamSeek) { - /// <summary> - /// Method maps to COM IPrinterScriptableStream::Seek - /// </summary> - /// <param name="offset" type="Number" integer="true" /> - /// <param name="streamSeek" type="STREAM_SEEK" /> - /// <returns type="Number" integer="true"/> - }, - SetSize: function (size) { - /// <summary> - /// Method maps to COM IPrinterScriptableStream::SetSize. - /// </summary> - /// <param name="size" type="Number" integer="true" /> - } - }); - - -IPrinterScriptablePropertyBag = function () { } -v4PrintDriverIntellisense.createInterface( - IPrinterScriptablePropertyBag, - null, - { - GetBool: function (name) { - /// <summary> - /// Method maps to COM IPrinterScriptablePropertyBag::GetBool. - /// </summary> - /// <param name="name" type="String" /> - /// <returns type="Boolean" /> - }, - SetBool: function (name, value) { - /// <summary> - /// Method maps to COM IPrinterScriptablePropertyBag::SetBool. - /// </summary> - /// <param name="name" type="String" /> - /// <param name="value" type="Boolean" /> - }, - GetInt32: function (name) { - /// <summary> - /// Method maps to COM IPrinterScriptablePropertyBag::GetInt32. - /// </summary> - /// <param name="name" type="String" /> - /// <returns type="Number" integer="true"/> - }, - SetInt32: function (name, value) { - /// <summary> - /// Method maps to COM IPrinterScriptablePropertyBag::SetInt32. - /// </summary> - /// <param name="name" type="String" /> - /// <param name="value" type="Number" integer="true" /> - }, - GetString: function (name) { - /// <summary> - /// Method maps to COM IPrinterScriptablePropertyBag::GetString. - /// </summary> - /// <param name="name" type="String" /> - /// <returns type="String" /> - }, - SetString: function (name, value) { - /// <summary> - /// Method maps to COM IPrinterScriptablePropertyBag::SetString. - /// </summary> - /// <param name="name" type="String" /> - /// <param name="value" type="String" /> - }, - GetReadStream: function (name) { - /// <summary> - /// Method maps to COM IPrinterScriptablePropertyBag::GetReadStream. - /// </summary> - /// <param name="name" type="String" /> - /// <returns type="IPrinterScriptableStream" /> - }, - GetWriteStream: function (name) { - /// <summary> - /// Method maps to COM IPrinterScriptablePropertyBag::GetWriteStream. - /// </summary> - /// <param name="name" type="String" /> - /// <returns type="IPrinterScriptableStream" /> - } - }); - - -IPrinterScriptContext = function () { } -v4PrintDriverIntellisense.createInterface( - IPrinterScriptContext, - null, - { - /// <field name="DriverProperties" type="IPrinterScriptablePropertyBag"> - /// Property-get maps to COM IPrinterScriptContext::DriverProperties. - /// </field> - DriverProperties: null, - /// <field name="QueueProperties" type="IPrinterScriptablePropertyBag"> - /// Property-get maps to COM IPrinterScriptContext::QueueProperties. - /// </field> - QueueProperties: null, - /// <field name="UserProperties" type="IPrinterScriptablePropertyBag"> - /// Property-get maps to COM IPrinterScriptContext::UserProperties. - /// </field> - UserProperties: null - }); - -IPrinterBidiSchemaElement = function () { } -v4PrintDriverIntellisense.createInterface( - IPrinterBidiSchemaElement, - null, - { - /// <field name="Name" type="String"> - /// Property-get maps to COM IPrinterBidiSchemaElement::Name. - /// </field> - Name: null, - /// <field type="PrinterBidiSchemaElementType"> - /// Property-get maps to COM IPrinterBidiSchemaElement::BidiType. - /// </field> - BidiType: null, - /// <field type="Object"> - /// Property-get maps to COM IPrinterBidiSchemaElement::Value. - /// </field> - Value: null - }); - -IPrinterBidiSchemaResponses = function () { } -v4PrintDriverIntellisense.createInterface( - IPrinterBidiSchemaResponses, - null, - { - AddNull: function (schema) { - /// <summary> - /// Method maps to COM IPrinterBidiSchemaResponses::AddNull. - /// </summary> - /// <param name="schema" type="String" /> - }, - AddString: function (schema, value) { - /// <summary> - /// Method maps to COM IPrinterBidiSchemaResponses::AddString. - /// </summary> - /// <param name="schema" type="String" /> - /// <param name="value" type="String" /> - }, - AddText: function (schema, value) { - /// <summary> - /// Method maps to COM IPrinterBidiSchemaResponses::AddText. - /// </summary> - /// <param name="schema" type="String" /> - /// <param name="value" type="String" /> - }, - AddEnum: function (schema, value) { - /// <summary> - /// Method maps to COM IPrinterBidiSchemaResponses::AddEnum. - /// </summary> - /// <param name="schema" type="String" /> - /// <param name="value" type="String" /> - }, - AddInt32: function (schema, value) { - /// <summary> - /// Method maps to COM IPrinterBidiSchemaResponses::AddInt32. - /// </summary> - /// <param name="schema" type="String" /> - /// <param name="value" type="Number" integer="true" /> - }, - AddBool: function (schema, value) { - /// <summary> - /// Method maps to COM IPrinterBidiSchemaResponses::AddBool. - /// </summary> - /// <param name="schema" type="String" /> - /// <param name="value" type="Boolean" /> - }, - AddFloat: function (schema, value) { - /// <summary> - /// Method maps to COM IPrinterBidiSchemaResponses::AddFloat. - /// </summary> - /// <param name="schema" type="String" /> - /// <param name="value" type="Number" /> - }, - AddBlob: function (schema, array) { - /// <summary> - /// Method maps to COM IPrinterBidiSchemaResponses::AddBlob. - /// </summary> - /// <param name="schema" type="String" /> - /// <param name="array" type="Array" /> - }, - AddRequeryKey: function (queryKey) { - /// <summary> - /// Method maps to COM IPrinterBidiSchemaResponses::AddRequeryKey. - /// </summary> - /// <param name="queryKey" type="String" /> - } - }); |
