没有合适的资源?快使用搜索试试~ 我知道了~
Vista_Win7_Credential_Provider_5个例子
4星 · 超过85%的资源 需积分: 35 56 下载量 98 浏览量
2012-07-06
15:21:30
上传
评论
收藏 713KB DOC 举报
温馨提示
试读
19页
Winlogon and Credential Providers Overview of Winlogon and Credential Provider architecture and a sample Credential Provider. Winlogon is the Windows module that performs interactive logon for a logon session. Winlogon behavior can be customized by implementing and registering a Credential Provider. For information about implementing a Credential Provider, see the following topics.
资源推荐
资源详情
资源评论
Windows Vista
Sample Credential Providers Overview
Contents
Terms of Use........................................................................................................................2
Release Notes.......................................................................................................................3
SampleCredentialProvider..................................................................................................3
The SampleCredentialProvider Codebase.......................................................................3
Project Structure...............................................................................................................4
Common Tasks For Extending SampleCredentialProvider.................................................5
Tips & Tricks...................................................................................................................6
Rebooting.....................................................................................................................7
Automating The Deployment Process.........................................................................7
Developing With CredUI.............................................................................................8
Debugging LogonUI....................................................................................................9
If Your System Becomes Unstable............................................................................10
SampleCredUICredentialProvider....................................................................................10
SampleAllControlsCredentialProvider..............................................................................11
SampleHardwareEventCredentialProvider.......................................................................13
SampleWrapExistingCredentialProvider..........................................................................14
Default Tiles.......................................................................................................................17
Wrapping Existing Credential Providers...........................................................................17
Credential Provider Architecture......................................................................................19
Summary............................................................................................................................19
Questions............................................................................................................................19
Terms of Use
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.
Information in this document, including URL and other Internet Web site
references, is subject to change without notice. Unless otherwise noted, the
example companies, organizations, products, domain names, e-mail addresses,
logos, people, places, and events depicted herein are fictitious, and no
association with any real company, organization, product, domain name, e-mail
address, logo, person, place, or event is intended or should be inferred.
Complying with all applicable copyright laws is the responsibility of the user.
Without limiting the rights under copyright, no part of this document may be
reproduced, stored in or introduced into a retrieval system, or transmitted in any
form or by any means (electronic, mechanical, photocopying, recording, or
otherwise), or for any purpose, without the express written permission of
Microsoft Corporation.
Microsoft may have patents, patent applications, trademarks, copyrights, or other
intellectual property rights covering subject matter in this document. Except as
expressly provided in any written license agreement from Microsoft, the
furnishing of this document does not give you any license to these patents,
trademarks, copyrights, or other intellectual property.
Copyright (c) 2006 Microsoft Corporation. All rights
reserved.
Microsoft, Windows Vista, Windows XP, and Visual Studio are either registered
trademarks or trademarks of Microsoft Corporation in the United States and/or
other countries.
2
Introduction
In this document, we’ll take a look at some custom Windows Vista credential
provider samples. Specifically, we’ll cover the following topics:
1. Understanding the base SampleCredentialProvider codebase.
2. Common tasks for extending the base SampleCredentialProvider codebase.
3. SampleCredUICredentialProvider, which supports CredUI.
4. SampleAllControlsCredentialProvider, which exposes each possible UI
control.
5. SampleHardwareEventCredentialProvider, which supports asynchronous
events.
6. SampleWrapExistingCredentialProvider, which wraps the default
username/password credential provider in Windows Vista.
Release Notes
We previously released a version of SampleCredentialProvider. This release of
the samples has the following changes
4 new samples showing uses of additional features of the credential
provider model
Updated the base samplecredentialprovider in the following ways
o Fixed the issue where the release configuration wouldn’t build
o Built & tested in on x64fre
o Fixed a bug in the implementation of GetBitmapValue that caused
the tiles not to show up on some machines. NOTE: Everyone
should make sure they pick up this fix.
o Added an implementation of SetSerialization
SampleCredentialProvider
Out of the box, SampleCredentialProvider provides a DLL project that exposes
the two COM interfaces required to develop a credential provider:
ICredentialProvider and ICredentialProviderCredential. ICredentialProvider
exposes the functionality to enumerate available credentials, and
ICredentialProviderCredential exposes the functionality required for each specific
credential during the authentication process.
The SampleCredentialProvider Codebase
The SampleCredentialProvider project provides a working baseline credential
provider. This sample is hardcoded to expose two accounts: Administrator and
Guest. The following screenshot shows what this might look like on a domain
joined machine.
3
Project Structure
The SampleCredentialProvider project includes a small set of files, each with
their own purpose:
File[s] Purpose
common.h Describes the UI and layout of the credentials.
Edit this file to change the number and type of
UI elements in each credential tile.
CSampleCredential.h/.cpp Defines the behavior of a credential tile. Edit
these files to change the way a tile responds to
user input.
CSampleProvider.h/.cpp Defines the behavior of the credential provider,
which typically manages one or more
CSampleCredentials. Edit this file to change
the way credentials are enumerated.
dll.h/.cpp,
samplecredentialprovider.def
Fulfills baseline support for COM server and
DLL requirements. You shouldn’t need to edit
these files.
guid.h/.cpp Defines the provider’s GUID. You’ll need to
edit guid.h to reference your unique GUID.
helpers.h/.cpp Provides utility methods for working with
UNICODE strings and auth packages. You
shouldn’t need to edit these files.
Register.reg, Unregister.reg Registers and unregisters the sample
credential provider, respectively. You’ll need to
edit these files to use the GUID from guid.h
wherever a GUID appears. You’ll also need to
edit the Register.reg file to reflect the name of
your object (the first two registry keys) and the
name of the DLL (the third registry key).
resource.h, resources.rc Manages provider resources, such as the tile
image. Edit these files if you want to add more
resources, such as images, to the credential
provider.
4
剩余18页未读,继续阅读
Tinna_zhang
- 粉丝: 22
- 资源: 28
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
前往页