Tips & Tricks for Using Key Windows Vista Native APIs from Managed Code



Similar documents
MICROSOFT OUTLOOK 2011 READ, SEARCH AND PRINT S

Quick Start Guide. Microsoft Access 2013 looks different from previous versions, so we created this guide to help you minimize the learning curve.

Working with SQL Server Integration Services

Quick Start Guide. Microsoft Access 2013 looks different from previous versions, so we created this guide to help you minimize the learning curve.

Microsoft Access 2007

Teradata SQL Assistant Version 13.0 (.Net) Enhancements and Differences. Mike Dempsey

Chapter 4 Accessing Data

Essentials of Developing Windows Store Apps Using C# MOC 20484

Microsoft Office System Tip Sheet

How to get the most out of Windows 10 File Explorer

Programming with the Microsoft.NET Framework Using Microsoft Visual Studio 2005 (VB)

Excel 2013 What s New. Introduction. Modified Backstage View. Viewing the Backstage. Process Summary Introduction. Modified Backstage View

Using FileMaker Pro with Microsoft Office

Business Insight Report Authoring Getting Started Guide

Subscribe to RSS in Outlook Find RSS Feeds. Exchange Outlook 2007 How To s / RSS Feeds 1of 7

Save and Share Files in the Cloud with OneDrive for Business

Microsoft Office System Tip Sheet

Version: July Windows 7

SAP HANA Core Data Services (CDS) Reference

1. Contents 1. Introduction Installation Preparing for the installation Installing the Pre-Requisites Components... 2.

Microsoft SharePoint 2010 End User Quick Reference Card

In This Issue: Excel Sorting with Text and Numbers

Microsoft Office Access 2007 Basics

PROJECT ON MICROSOFT ACCESS (HOME TAB AND EXTERNAL DATA TAB) SUBMITTED BY: SUBMITTED TO: NAME: ROLL NO: REGN NO: BATCH:

Implementing Mission Control in Microsoft Outlook 2010

Implicit Sync. Professional Edition Users Guide

Crystal Converter User Guide

Use Office 365 on your Android phone

Key Benefits of Microsoft Visual Studio 2008

ParishSOFT Remote Installation

MICROSOFT ACCESS 2007 BOOK 2

3 What s New in Excel 2007

Personalizing your Access Database with a Switchboard

Microsoft Access 2007 Introduction

Windows 7 and File Management

Colligo Manager 6.0. Connected Mode - User Guide

Important Notes for WinConnect Server VS Software Installation:

Where do I find? Global Outlook options and features

Save and share files in the cloud by using

Colligo Manager 5.1. User Guide

MAS 500 Intelligence Tips and Tricks Booklet Vol. 1

CHAPTER 1: CLIENT/SERVER INTEGRATED DEVELOPMENT ENVIRONMENT (C/SIDE)

The LSUHSC N.O. Archive

Project Server Plus Risk to Issue Escalator User Guide v1.1

Save and share files in the cloud by using OneDrive for Business

Reporting. Microsoft Dynamics GP enterpri se. Dynamics GP. Christopher Liley. Create and manage business reports with.

XF Extracellular Flux Analyzer. Installation and Troubleshooting Guide

Getting Started with the Aloha Community Template for Salesforce Identity

MICROSOFT ACCESS 2003 TUTORIAL

Lab Activity File Management with Windows Explorer Windows XP, Vista, Windows 7 and Windows 8 Brought to you by RMRoberts.com

Microsoft Office Series

Visual Studio 2008: Windows Presentation Foundation

Interworks. Interworks Cloud Platform Installation Guide

Release Document Version: User Guide: SAP BusinessObjects Analysis, edition for Microsoft Office

Release 2.1 of SAS Add-In for Microsoft Office Bringing Microsoft PowerPoint into the Mix ABSTRACT INTRODUCTION Data Access

Developing and Implementing Windows-Based Applications With Microsoft Visual C#.NET and Microsoft Visual Studio.NET

Adam Rauch Partner, LabKey Software Extending LabKey Server Part 1: Retrieving and Presenting Data

PEARL SETUP FOR ACCESS 2007 AND ACCESS 2010

Crystal Reports. For Visual Studio.NET. Reporting Off ADO.NET Datasets

Polar Help Desk 4.1. User s Guide

Microsoft Office Access 2007 which I refer to as Access throughout this book

Introduction to Search in SharePoint Hands-On Lab. Lab Manual

Developing Mapping Applications with ArcGIS Runtime SDK for Windows Mobile. Jay Chen Justin Colville

How to Recover Data From an Outlook

BIGPOND ONLINE STORAGE USER GUIDE Issue August 2005

Documentum Desktop Client on Windows 2000 Terminal Services

INTRODUCTION: SQL SERVER ACCESS / LOGIN ACCOUNT INFO:

Video Administration Backup and Restore Procedures

Hands-on Guide. FileMaker Pro. Using FileMaker Pro with Microsoft Office

Lab 2: MS ACCESS Tables

Instant Messaging and Video Conferencing with Skype for Business

Whats New in CRM 2015 Update 1

Microsoft Dynamics GP. Business Analyzer

Google Drive: Access and organize your files

Site Configuration Mobile Entrée 4

Jumble for Microsoft Outlook

ProperSync 1.3 User Manual. Rev 1.2

SAP BusinessObjects Financial Consolidation Web User Guide

Beginning C# 5.0. Databases. Vidya Vrat Agarwal. Second Edition

Using the Query Analyzer

OFFICE 365 TRAINING GUIDE

TECHNICAL DOCUMENTATION SPECOPS DEPLOY / APP 4.7 DOCUMENTATION

Trial version of GADD Dashboards Builder

Visual basic string search function, download source code visual basic 6.0 gratis. > Visit Now <

Microsoft Access to Microsoft Word Performing a Mail Merge from an Access Query

Applying the Principle of Least Privilege to Windows 7

WINDOWS 7 EXPLORE INTERNET EXPLORER 8

Introduction to the use of the environment of Microsoft Visual Studio 2008

Fleet Maintenance Software

Go paperless with OneNote 2016

Desktop, Web and Mobile Testing Tutorials

Release Document Version: 1.4 SP What's New Guide: SAP BusinessObjects Analysis, edition for Microsoft Office

ACCESS Importing and Exporting Data Files. Information Technology. MS Access 2007 Users Guide. IT Training & Development (818)

Setting Up and Using the Funambol Outlook Sync Client v8.0

Visual Basic. murach's TRAINING & REFERENCE

Pipeliner CRM Phaenomena Guide Add-In for MS Outlook Pipelinersales Inc.

INFOPATH FORMS FOR OUTLOOK, SHAREPOINT, OR THE WEB

User Services. Intermediate Microsoft Access. Use the new Microsoft Access. Getting Help. Instructors OBJECTIVES. July 2009

Transcription:

Tips & Tricks for Using Key Windows Vista Native APIs from Managed Code Dave Webster blogs.msdn.com/davewebster davidjw@microsoft.com Developer Evangelist Microsoft EMEA blo

What We'll Cover Today Tips & Tricks User Account Control (UAC) How to make your app UAC-aware Windows Vista Desktop Search How to integrate desktop search into your app Windows Vista Win32 User Interface Elements How to use command links in Windows Forms How to use the new common file dialogs 2

User Account Control Feature Review Apps run as standard user Privilege elevation requires user consent Security shield icon identifies privileged operations 3

Making an App "UAC-Aware" What managed code developers need to know: How to embed a manifest in a managed executable How to launch an elevated process How to set the security shield icon How to debug UAC-aware apps in Visual Studio 2005 4

Demo: Making an App UAC-Aware Dave Webster Developer Evangelist Microsoft EMEA Developer Evangelist Microsoft EMEA dows Vista Technical Evangelist

What We'll Cover Today Tips & Tricks User Account Control (UAC) How to make your app UAC-aware Windows Vista Desktop Search How to integrate desktop search into your app Windows Vista Win32 User Interface Elements How to use command links in Windows Forms How to use the new common file dialogs 17

Windows Vista Desktop Search Feature review Search is fully integrated in Windows Vista Start Menu, Control Panel, Explorer Windows Single, built-in, client indexing platform and a new Property System Used by Explorer, Outlook 2007 and OneNote 2007 Can be used by third party applications OLE DB Provider for Windows Search ISearchQueryHelper

Windows Desktop Search OLE DB Provider for Windows Search What managed code developers need to know: The provider can be easily used from ADO.NET System.Data.OleDb classes Connection string format Query syntax

Demo: Using the OLE DB Provider for Windows Search Dave Webster Developer Evangelist Microsoft EMEA

Windows Vista Desktop Search Hidden slide: covered in demo OLE DB Provider connection string format Beta 2 and later "Provider=Search.CollatorDSO;Extended Properties= Application=Windows ;" Feb CTP and previous builds Provider=USearch.CollatorDSO;Extended Properties= Application=Windows ;"

What We'll Cover Today Tips & Tricks User Account Control (UAC) How to make your app UAC-aware Windows Vista Desktop Search How to integrate desktop search into your app Windows Vista Win32 User Interface Elements How to use command links in Windows Forms How to use the new common file dialogs 26

Command Link Feature Review New Win32 UI element in Windows Vista New button style (BS_COMMANDLINK) New button messages (BCM_SETNOTE, BCM_GETNOTE) 27

Using Command Links in Windows Forms What you need to know: How to add the BS_COMMANDLINK style How to call the BCM_SETNOTE message How to provide design-time support (optional)

Windows Vista File Open Dialog Anatomy of a Dialog Box friendly address bar navigation buttons enhanced column headers: sort, group and filter Live Icons Instant Search box Command bar (for context-based tasks) extensible Favorite Links file properties Details Pane custom controls

Common File Dialogs The API Story New COM API IFileDialog, IFileOpenDialog, IFileSaveDialog IFileDialogEvents, IFileDialogControlEvents IFileDialogCustomize Existing Win32 API GetOpenFileName / Get SaveFileName functions Still supported on Windows Vista Displays new Windows Vista dialogs (unless certain customization options are specified)

Using the New Common File Dialogs What you need to know: Windows Forms and WPF wrap the Win32 APIs - and they both provide a customization To get the new dialogs, you must change your code Current COM interop challenges

Using the New Common File Dialogs Current COM interop challenges Additional work is needed before you can call Add R eference No interop assembly available The new COM APIs are standard v-table based interfaces (i.e. they do not support IDispatch) Defined in IDL No type library available Also applies to other new COM APIs KnownFolders API, Property Provider API, etc

Using the New Common File Dialogs Options for managed code developers Advanced techniques Hand-craft the interop definitions Build a managed wrapper using C++ More approachable options PInvoke to Win32 APIs U se the W indow s Vista B ridge S D K sam ples!

Dave Webster Demo: Using the New Common File Dialogs Developer Evangelist Microsoft EMEA

Demo: Using the TaskDialog Dave Webster Developer Evangelist Microsoft EMEA

Summary Many valuable Windows Vista features are currently exposed only through native APIs These features can be used from managed code Existing tools can be used today Better tool support will be available in future releases of Visual Studio New Win32 UI elements can be used to make your apps look more like a Windows Vista app Interoping with some of the new COM APIs can be challenging The W indow s Vista B ridge S D K S am ples dem onstrate m any interop techniques in detail

2006 M icrosoft C orporation. A ll rights reserved. T his presentation is for inform ational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY. 44