CredentialProviders
所属分类:Windows编程
开发工具:Visual C++
文件大小:96KB
下载次数:103
上传日期:2007-06-02 12:49:39
上 传 者:
zy26
说明: Vista的验证提供器代码。MSDN代码,高质量。演示了智能卡登陆Vista。
This sample implements a simple credential provider. A credential provider allows a 3rd party to provide
an alternate way of logging on
(Vista test code is provided. MSDN code quality. Demonstration of the smart card landing Vista. This sample implements a simple credential pro vider. A credential provider allows a 3rd party to provide an alternate way of logging on )
文件列表:
guid.cpp (40, 2006-08-12)
guid.h (113, 2006-09-06)
helpers.cpp (9257, 2006-08-23)
helpers.h (1578, 2006-08-23)
hybridcredprov.def (161, 2006-09-06)
HybridCredProv.sln (2168, 2006-09-06)
resource.h (32, 2006-05-14)
resources.rc (128, 2006-05-14)
sample.reg (874, 2006-08-27)
tileimage.bmp (49208, 2006-05-14)
HybridCredentialProvider\HybridCredentialProvider.vcproj (5899, 2006-11-07)
lib\MgSc.dll (8704, 2006-08-14)
lib\MgSc.h (2966, 2006-05-13)
lib\MgSc.lib (3680, 2006-08-14)
schelp\PropCert.Cpp (27074, 2006-06-27)
schelp\ScCred.cpp (17285, 2006-08-11)
schelp\ScCred.h (2228, 2006-08-11)
schelp\ScHelp.cpp (14159, 2006-08-23)
schelp\ScHelp.h (719, 2006-08-15)
schelp\schelp.vcproj (4391, 2006-11-07)
schelp\ScWatch.cpp (10351, 2006-07-05)
schelp\ScWatch.h (1865, 2006-07-03)
schelp\stdafx.cpp (293, 2006-06-18)
schelp\stdafx.h (544, 2007-04-05)
WriteCred\stdafx.cpp (296, 2006-08-14)
WriteCred\stdafx.h (429, 2007-04-05)
WriteCred\WriteCred.cpp (7450, 2006-08-23)
WriteCred\WriteCred.vcproj (5249, 2006-11-07)
CHybridCredential.cpp (15298, 2006-09-06)
CHybridCredential.h (4871, 2006-09-06)
CHybridProvider.cpp (12180, 2006-09-06)
common.h (2791, 2006-08-14)
Dll.cpp (4002, 2006-09-06)
Dll.h (458, 2006-05-14)
Eula.doc (46080, 2002-12-02)
debug (0, 2007-04-05)
HybridCredentialProvider (0, 2007-06-02)
lib (0, 2007-04-05)
schelp (0, 2007-06-02)
... ...
//
// 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) 2006 Microsoft Corporation. All rights reserved.
//
//
Overview
--------
This sample implements a simple credential provider. A credential provider allows a 3rd party to provide
an alternate way of logging on.. For example, a fingerprint solution vendor would write a credential
provider to interact with the user and send the appropriate credentials to the system for authentication.
More information can be found in the Credential Provider document provided in this SDK.
Questions should be sent to credprov@microsoft.com.
This sample implements a simplified credential provider that is based on the password credential provider that ships with
Windows Vista. When run, the credential provider should enumerate two tiles, one for the administrator and one for the guest
account. Note that if your machine is domain joined, it is likely that the guest account is disabled and you will
receive an error if you try to use that tile to log on. This is useful, because it allows you to watch what functions are
executed in an error case.
How to run this sample
--------------------------------
Once you have built the project, copy samplecredentialprovider.dll to a Vista machine and run
sample.reg from an elevated command prompt.
Then reboot in order for LogonUI to detect your new credential provider.
What this sample demonstrates
-----------------------------
This sample demonstrates simple password based log on and unlock behavior. It also shows how to construct
a simple user tile and handle the user interaction with that tile.
What this sample does not demonstrate
-------------------------------------
- other credential provider scenarios, like participating in credui or handling change password.
- every possible field that you can put in your user tile
- any network access prior to local authentication (the Pre-Logon Access Provider (PLAP) behavior)
- an event based credential provider (like a smartcard or fingerprint based system)
We may in the future provide additional samples that do demonstrate these capabilities, however
we felt that a basic sample that handles things that are common to almost all credential providers
would be the most generally useful.
Parts of the sample
-------------------
common.h - sets up what a tile looks like
CSampleCredential.h/CSampleCredential.cpp - implements ICredentialProviderCredential, which describes one tile
CSampleProvider.h/CSampleProvider.cpp - implements ICredentialProvider, which is the main interface used by LogonUI
to talk to a credential provider.
Dll.h/Dll.cpp - standard dll setup for a dll that implements COM objects
helpers.h/helpers.cpp - useful functionality to deal with serializing credentials, UNICODE_STRING's, etc
近期下载者:
相关文件:
收藏者: