Skip to content

Commit

Permalink
Fix UTF-8 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Windows classic samples committed Jun 12, 2020
1 parent 88977b0 commit 200c330
Show file tree
Hide file tree
Showing 28 changed files with 213 additions and 95 deletions.
2 changes: 1 addition & 1 deletion Samples/BasicHologram/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
---
page_type: sample
languages:
- cppwinrt
Expand Down
6 changes: 3 additions & 3 deletions Samples/DataDedupBackupRestore/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ To run the sample:
1. Install the Data Deduplication component.
2. Set up a Data Deduplication-enabled volume with some test files, and run a Deduplication Optimization job to optimize the files first.
**Note** The following sequence of PowerShell cmdlets assumes that your test volume is T:.
1. **Enable-DedupVolume -volume T:**
2. **Set-DedupVolume -volume T: -MinimumFileAgeDays 0**
3. **Start-DedupJob -volume T: -type Optimization -wait**
1. **Enable-DedupVolume -volume T:**
2. **Set-DedupVolume -volume T: -MinimumFileAgeDays 0**
3. **Start-DedupJob -volume T: -type Optimization -wait**

For more information, see the [Enable-DedupVolume](http://technet.microsoft.com/library/4a752894-524d-4a64-8483-f06a73ab0ed0) PowerShell cmdlet documentation.
3. Navigate to the directory that contains the new executable file, using the **Command Prompt** or **File Explorer**.
Expand Down
2 changes: 1 addition & 1 deletion Samples/DirectCompositionEffects/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ DirectComposition effects with Direct2D bitmap content sample

This sample shows how to use Microsoft DirectComposition to apply animations and effects to visuals that have Direct2D bitmap content.

The sample creates two DirectComposition visual trees. The visual tree on the right consists of a single root visual, and the visual tree on the left consists of a root visual and four child visuals. Clicking the left mouse button applies animated 3-D transformation effects to the visual trees, including rotation, scaling, perspective, and translation transformations. In addition, animation is applied to the right visual's Opacity property to change the visual's opacity from transparent to opaque. Pressing the 14 number keys changes the color of the right visual.
The sample creates two DirectComposition visual trees. The visual tree on the right consists of a single root visual, and the visual tree on the left consists of a root visual and four child visuals. Clicking the left mouse button applies animated 3-D transformation effects to the visual trees, including rotation, scaling, perspective, and translation transformations. In addition, animation is applied to the right visual's Opacity property to change the visual's opacity from transparent to opaque. Pressing the 1-4 number keys changes the color of the right visual.

**Warning** This sample requires Microsoft Visual Studio 2013 or a later version (any SKU) and will not compile in Microsoft Visual Studio Express 2013 for Windows.

Expand Down
6 changes: 3 additions & 3 deletions Samples/ShareSource/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# WPF Sharing content source app sample
# WPF Sharing content source app sample

Shows how a managed Win32 app can participate in the [Share contract](https://docs.microsoft.com/en-us/windows/uwp/app-to-app/share-data).
There is a corresponding [Sharing content UWP source app sample](http://go.microsoft.com/fwlink/p/?LinkId=620596) available.

Some of the classes you might want to review in more detail are the
[DataTransferManager](http://msdn.microsoft.com/library/windows/apps/br205932) class,
which you use to initiate a share operation, and the [DataPackage](http://msdn.microsoft.com/library/windows/apps/br205873) class,
which you use to package the content. Because each share scenario usually involves two appsthe source app
and a target app that receives the contentwe recommend you install and deploy the
which you use to package the content. Because each share scenario usually involves two apps (the source app
and a target app that receives the content) we recommend you install and deploy the
[Sharing content target app sample](http://go.microsoft.com/fwlink/p/?linkid=231519) when you install and run this one.
This way, you can see how sharing works from end to end.

Expand Down
2 changes: 1 addition & 1 deletion Samples/UIAutomationCleanShutdown/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Run the sample

To run the sample after building it, follow these steps:

1. Copy both piecesthe control DLL and the host applicationto the same location. You'll find the control DLL at \<*install\_root*\>\\UI Automation Clean Shutdown Sample\\C++\\UiaCleanShutdownControl\\Debug\\UiaCleanShutdownControl.dll, and the host application at \<*install\_root*\>\\UI Automation Clean Shutdown Sample\\C++\\UiaCleanShutdownHost\\Debug\\UiaCleanShutdownHost.exe.
1. Copy both pieces (the control DLL and the host application) to the same location. You'll find the control DLL at \<*install\_root*\>\\UI Automation Clean Shutdown Sample\\C++\\UiaCleanShutdownControl\\Debug\\UiaCleanShutdownControl.dll, and the host application at \<*install\_root*\>\\UI Automation Clean Shutdown Sample\\C++\\UiaCleanShutdownHost\\Debug\\UiaCleanShutdownHost.exe.
2. Navigate to the location where you copied both pieces of the sample.
3. Type UiaCleanShutdownHost.exe at the command line, or double-click the icon for UiaCleanShutdownHost.exe to launch it from Windows Explorer.

8 changes: 4 additions & 4 deletions Samples/Win7Samples/multimedia/Direct2D/DXGISample/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ This sample is written in C++.

## Prerequisites

* Microsoft Windows® 7
* Windows® Software Development Kit (SDK) for Windows 7 and .NET Framework 3.5 Service Pack 1
* Microsoft Windows 7
* Windows Software Development Kit (SDK) for Windows 7 and .NET Framework 3.5 Service Pack 1
* March 2009 DirectX SDK

## Configuring without Visual Studio
Expand Down Expand Up @@ -65,7 +65,7 @@ For building against the Win32 (x86) platform:

1. Launch Visual Studio 2008.

2. Open the Tools menu and select Options. The Options dialog box appears.
2. Open the Tools menu and select Options. The Options dialog box appears.

3. In the left pane of the Options dialog box, expand the Projects and Solutions node.

Expand Down Expand Up @@ -111,7 +111,7 @@ For building against the x64 platform:

1. Launch Visual Studio 2008.

2. Open the Tools menu and select Options. The Options dialog box appears.
2. Open the Tools menu and select Options. The Options dialog box appears.

3. In the left pane of the Options dialog box, expand the Projects and Solutions node.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ This sample is written in C++.

## Prerequisites

* Microsoft Windows® 7
* Windows® Software Development Kit (SDK) for Windows 7 and .NET Framework 3.5 Service Pack 1
* Microsoft Windows 7
* Windows Software Development Kit (SDK) for Windows 7 and .NET Framework 3.5 Service Pack 1


## Building the Sample
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ This sample is written in C++.

## Prerequisites

* Microsoft Windows® 7
* Windows® Software Development Kit (SDK) for Windows 7 and .NET Framework 3.5 Service Pack 1
* Microsoft Windows 7
* Windows Software Development Kit (SDK) for Windows 7 and .NET Framework 3.5 Service Pack 1

## Building the Sample

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ This sample is written in C++.

## Prerequisites

* Microsoft Windows® 7
* Windows® Software Development Kit (SDK) for Windows 7 and .NET Framework 3.5 Service Pack 1
* Microsoft Windows 7
* Windows Software Development Kit (SDK) for Windows 7 and .NET Framework 3.5 Service Pack 1

## Building the Sample

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ This sample is written in C++.

## Prerequisites

* Microsoft Windows® 7
* Windows® Software Development Kit (SDK) for Windows 7 and .NET Framework 3.5 Service Pack 1: Beta release
* Microsoft Windows 7
* Windows Software Development Kit (SDK) for Windows 7 and .NET Framework 3.5 Service Pack 1: Beta release
* March 2009 DirectX SDK

## Configuring without Visual Studio
Expand Down Expand Up @@ -65,7 +65,7 @@ each platform (Win32 or x64) you want to build against.
For building against the Win32 (x86) platform:

1. Launch Visual Studio 2008.
2. Open the Tools menu and select Options. The Options dialog box appears.
2. Open the Tools menu and select Options. The Options dialog box appears.
3. In the left pane of the Options dialog box, expand the Projects and Solutions node.
4. Under Project and Solutions, select VC++ Directories.
5. In the right pane, set the "Platform" drop-down list box to Win32 and the
Expand Down Expand Up @@ -108,7 +108,7 @@ For building against the x64 platform:

1. Launch Visual Studio 2008.

2. Open the Tools menu and select Options. The Options dialog box appears.
2. Open the Tools menu and select Options. The Options dialog box appears.

3. In the left pane of the Options dialog box, expand the Projects and Solutions node.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ This sample is written in C++.

## Prerequisites

* Microsoft Windows® 7
* Windows® Software Development Kit (SDK) for Windows 7 and .NET Framework 3.5 Service Pack 1
* Microsoft Windows 7
* Windows Software Development Kit (SDK) for Windows 7 and .NET Framework 3.5 Service Pack 1

## Building the Sample

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ Files

## Prerequisites

* Microsoft Windows® 7
* Windows® Software Development Kit (SDK) for Windows 7 and .NET Framework 3.5 Service Pack 1
* Microsoft Windows 7
* Windows Software Development Kit (SDK) for Windows 7 and .NET Framework 3.5 Service Pack 1
* March 2009 DirectX SDK

## Configuring without Visual Studio
Expand Down Expand Up @@ -62,7 +62,7 @@ For building against the Win32 (x86) platform:

1. Launch Visual Studio 2008.

2. Open the Tools menu and select Options. The Options dialog box appears.
2. Open the Tools menu and select Options. The Options dialog box appears.

3. In the left pane of the Options dialog box, expand the Projects and Solutions node.

Expand Down Expand Up @@ -108,7 +108,7 @@ For building against the x64 platform:

1. Launch Visual Studio 2008.

2. Open the Tools menu and select Options. The Options dialog box appears.
2. Open the Tools menu and select Options. The Options dialog box appears.

3. In the left pane of the Options dialog box, expand the Projects and Solutions node.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ When you run the sample, it produces an image file named output.png.

## Prerequisites

* Microsoft Windows® 7
* Windows® Software Development Kit (SDK) for Windows 7 and .NET Framework 3.5 Service Pack 1
* Microsoft Windows 7
* Windows Software Development Kit (SDK) for Windows 7 and .NET Framework 3.5 Service Pack 1

## Building the Sample

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ This sample is written in C++.

## Prerequisites

* Microsoft Windows® 7
* Windows® Software Development Kit (SDK) for Windows 7 and .NET Framework 3.5 Service Pack 1
* Microsoft Windows 7
* Windows Software Development Kit (SDK) for Windows 7 and .NET Framework 3.5 Service Pack 1

## Building the Sample

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ This sample is written in C++.

## Prerequisites

* Microsoft Windows® 7
* Windows® Software Development Kit (SDK) for Windows 7 and .NET Framework 3.5 Service Pack 1
* Microsoft Windows 7
* Windows Software Development Kit (SDK) for Windows 7 and .NET Framework 3.5 Service Pack 1


## Building the Sample
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ This sample is written in C++.

## Prerequisites

* Microsoft Windows® 7
* Windows® Software Development Kit (SDK) for Windows 7 and .NET Framework 3.5 Service Pack 1
* Microsoft Windows 7
* Windows Software Development Kit (SDK) for Windows 7 and .NET Framework 3.5 Service Pack 1

## Building the Sample

Expand Down
67 changes: 67 additions & 0 deletions Samples/Win7Samples/multimedia/wpd/wpdapisample/cpp/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
---
page_type: sample
languages:
- cpp
products:
- windows-api-win32
name: WPD API sample
urlFragment: wpd-sample
description: Demonstrates how to use the WPD API.
extendedZipContent:
- path: LICENSE
target: LICENSE
---

# WPD API sample

Demonstrates the following using the WPD API:
- Enumerate portable devices
- Enumerate content on a portable device
- Query the capabilities of a portable device
- Read/Write properties for content on a portable device
- Transfer content on/off a portable device
- Register/Unregister for portable device events

## Suppported operating systems:

Windows Vista
Windows 7

## Sample language implementations

C++

## Files:

- *CommonFunctions.h*
- *ContentEnumeration.cpp*
- *ContentProperties.cpp*
- *ContentTransfer.cpp*
- *DeviceCapabilities.cpp*
- *DeviceEnumeration.cpp*
- *DeviceEvents.cpp*
- *README.md*
- *stdafx.cpp*
- *stdafx.h*
- *WpdApiSample.cpp*
- *WpdApiSample.sln*
- *WpdApiSample.vcproj*

## To build the sample using the command prompt

Note that this sample uses ATL. This means you must install Microsoft Visual Studio to compile this sample.
1. Open the Command Prompt window and navigate to the *WpdApiSample\cpp* directory.
1. Type **msbuild WpdApiSample.sln**.

To build the sample using Visual Studio (preferred method)

1. Open Windows Explorer and navigate to the *WpdApiSample\cpp* directory.
1. Double-click the icon for the *WpdApiSample.sln* file to open the file in Visual Studio.
1. In the **Build** menu, select **Build Solution**. The application will be built in the default *Debug* or *Release* directory.

## To run the sample

Note that this sample requires the Microsoft.VC90.CRT and Microsoft.VC90.ATL redistributables from Microsoft Visual Studio.
1. Connect a portable device.
1. Navigate to the directory that contains the new executable, using the command prompt or Windows Explorer.
1. Type **WpdApiSample.exe** at the command line, or double-click the icon for *WpdApiSample.exe* to launch it from Windows Explorer.
53 changes: 0 additions & 53 deletions Samples/Win7Samples/multimedia/wpd/wpdapisample/cpp/ReadMe.txt

This file was deleted.

4 changes: 2 additions & 2 deletions Samples/Win7Samples/winbase/Eventing/EtwConsumer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ This sample is available in the following language implementations:
1. From an elevated CMD prompt, navigate to the *Samples\WinBase\Eventing\EtwConsumer\Output*.
1. Run the following to start logging to the *LogFile.etl* file.

`logman start "NT Kernel Logger" -o LogFile.etl ets`
`logman start "NT Kernel Logger" -o LogFile.etl -ets`

1. Run the following to stop logging.

Expand All @@ -78,6 +78,6 @@ This sample is available in the following language implementations:
1. From a CMD prompt, navigate to the *Samples\WinBase\Eventing\EtwConsumer\Output* directory.
1. Run the following command.

`EtwConsumer LogFile.etl xml`
`EtwConsumer LogFile.etl -xml`


Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
page_type: sample
languages:
- cpp
products:
- windows-api-win32
name: CrawlScopeCommandLine sample
urlFragment: crawlscopecommandline-sample
description: Demonstrates how to define command line options for Crawl Scope Manager (CSM) indexing operations.
extendedZipContent:
- path: LICENSE
target: LICENSE
---

#CrawlScopeCommandLine sample

The CrawlScopeCommandLine code sample demonstrates how to define command line options for Crawl Scope Manager (CSM) indexing operations.
Loading

0 comments on commit 200c330

Please sign in to comment.