Windows Store Apps

Windows Store applications can use the Microsoft Rights Management SDK 3.0 to enable integrated information protection in their application by using the Azure Active Directory Rights Management (AAD RM). For Microsoft Rights Management SDK 3.0, both Visual C# and Visual C++ sample code is available.

This topic will guide you through setting up your environment for creating your own new apps and walk you through building and running a sample app included with the SDK.

Prerequisites

You must have the following software on your development system:

  • The Windows 8 operating system.
  • Microsoft Visual Studio 2012.
  • The Microsoft Rights Management SDK 3.0 package for Windows Store Apps. For more information see, Get started.

    This SDK can be used to develop for Windows 8 and later.

Read the What's new topic for information on API updates, device and environment information, release notes, and frequently asked questions (FAQ).

Configuring your development environment for using Microsoft Rights Management SDK 3.0

  • Open Visual Studio.
  • Click File, click New, and then click Project.
  • In the New Project dialog box, click Visual C#, click Windows Store, and then select Blank App (XAML).

    Dn237946.WinRTSetup-pic01(en-us,VS.85).png

  • In Solution Explorer, right-click your project, and select Add Reference to open the Add Reference dialog box.

    Dn237946.WinRTSetup-pic02(en-us,VS.85).png

  • In the Add Reference dialog box, click Browse on the lower left of the dialog box and select the Microsoft.Protection.winmd file that is located in the folder you extracted the package.
  • You are now ready to work with the sample application that is provided in the package.
  • You are now ready to create your own new Windows Store apps.

Building and running the RMSSampleApp sample app

Use the following steps to build and run the RMSSampleApp sample project, included in the SDK.

  • Open Visual Studio, select File, click Open, and then click Project / Solution.
  • Open the RMSSampleApp folder, select the C# project file named "RMSSampleApp", and then click Open.
  • Click Build, and then click Build Solution.
  • To run the sample app in your development environment, you can click Debug, and then click Start without Debugging.
  • You'll now see a simple text editor application. Type some text into the box, and then click Protection.
  • You are prompted for your Windows Azure user name that give you access to the ADD RM services. After you have entered the user name and password, your new document is protected.

For more information about key elements of this example project, see the Windows Store Apps topic in the Code examples section.

See Also

Get started

What's new

Core concepts

Windows 8

Visual Studio 2012

Windows Store apps - code examples

Windows Store App and Windows Phone 8 API Reference

 

 

Show:
© 2014 Microsoft