MyCredentialProvider

所属分类:Windows编程
开发工具:Visual C++
文件大小:54KB
下载次数:9
上传日期:2016-06-19 19:08:46
上 传 者LUTHERBEAU
说明:  凭证提供基本代码,可以读取每一个可能的UI控制,封装用户名和密码,提供异步事件处理
(Windows Vista Credential Provider)

文件列表:
SampleCredentialProvider\SampleCredentialProvider\common.h (2624, 2006-10-02)
SampleCredentialProvider\SampleCredentialProvider\CSampleCredential.cpp (14942, 2006-11-29)
SampleCredentialProvider\SampleCredentialProvider\CSampleCredential.h (5407, 2006-11-29)
SampleCredentialProvider\SampleCredentialProvider\CSampleProvider.cpp (15722, 2006-11-29)
SampleCredentialProvider\SampleCredentialProvider\CSampleProvider.h (3337, 2006-11-29)
SampleCredentialProvider\SampleCredentialProvider\Dll.cpp (3981, 2006-10-02)
SampleCredentialProvider\SampleCredentialProvider\Dll.h (458, 2006-10-02)
SampleCredentialProvider\SampleCredentialProvider\guid.cpp (40, 2006-10-02)
SampleCredentialProvider\SampleCredentialProvider\guid.h (113, 2006-10-02)
SampleCredentialProvider\SampleCredentialProvider\helpers.cpp (17890, 2006-11-29)
SampleCredentialProvider\SampleCredentialProvider\helpers.h (2234, 2006-11-29)
SampleCredentialProvider\SampleCredentialProvider\Register.reg (914, 2006-11-09)
SampleCredentialProvider\SampleCredentialProvider\resource.h (32, 2006-10-02)
SampleCredentialProvider\SampleCredentialProvider\resources.rc (107, 2006-11-09)
SampleCredentialProvider\SampleCredentialProvider\SampleCredentialProvider.def (171, 2006-11-09)
SampleCredentialProvider\SampleCredentialProvider\SampleCredentialProvider.vcproj (9442, 2006-11-16)
SampleCredentialProvider\SampleCredentialProvider\tileimage.bmp (49206, 2006-11-09)
SampleCredentialProvider\SampleCredentialProvider\Unregister.reg (362, 2006-11-09)
SampleCredentialProvider\SampleCredentialProvider.sln (1291, 2006-11-09)
SampleCredentialProvider\SampleCredentialProvider (0, 2016-05-08)
SampleCredentialProvider (0, 2016-05-08)

// // 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. 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 unless your machine is non-domain joined and you have enabled the guest account, 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. Please also see Windows Vista Credential Provider Samples Overview.doc, included in this package How to run this sample -------------------------------- Once you have built the project, copy samplecredentialprovider.dll to the System32 directory on a Vista machine and run Register.reg from an elevated command prompt. The credential should appear the next time a logon is invoked (such as when logging off or rebooting the machine). 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) 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

近期下载者

相关文件


收藏者