diff options
author | gdong1 <gdong1@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-11-10 10:03:05 +0000 |
---|---|---|
committer | gdong1 <gdong1@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-11-10 10:03:05 +0000 |
commit | aa115881945d47a31f7a62291df61af2b325a342 (patch) | |
tree | 47b57580fd74629e17107ce9ed1a8d5e4a4be09f /Nt32Pkg/Library | |
parent | c896d682576a9159a58b1d8e3840019d0c835593 (diff) | |
download | edk2-aa115881945d47a31f7a62291df61af2b325a342.tar.gz edk2-aa115881945d47a31f7a62291df61af2b325a342.tar.bz2 edk2-aa115881945d47a31f7a62291df61af2b325a342.zip |
Enable UID support in NT32 platform
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9402 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Nt32Pkg/Library')
-rw-r--r-- | Nt32Pkg/Library/Nt32BdsLib/BdsPlatform.c | 65 | ||||
-rw-r--r-- | Nt32Pkg/Library/Nt32BdsLib/BdsPlatform.h | 7 | ||||
-rw-r--r-- | Nt32Pkg/Library/Nt32BdsLib/Nt32BdsLib.inf | 3 |
3 files changed, 75 insertions, 0 deletions
diff --git a/Nt32Pkg/Library/Nt32BdsLib/BdsPlatform.c b/Nt32Pkg/Library/Nt32BdsLib/BdsPlatform.c index edfcbcfd58..0e5b9f5953 100644 --- a/Nt32Pkg/Library/Nt32BdsLib/BdsPlatform.c +++ b/Nt32Pkg/Library/Nt32BdsLib/BdsPlatform.c @@ -345,6 +345,11 @@ PlatformBdsPolicyBehavior ( PlatformBdsConnectSequence ();
//
+ // Perform user identification process
+ //
+ PlatformBdsUserIdentify ();
+
+ //
// Notes: current time out = 0 can not enter the
// front page
//
@@ -363,6 +368,10 @@ PlatformBdsPolicyBehavior ( PlatformBdsConnectConsole (gPlatformConsole);
PlatformBdsDiagnostics (EXTENSIVE, FALSE, BaseMemoryTest);
BdsLibConnectAll ();
+ //
+ // Perform user identification process
+ //
+ PlatformBdsUserIdentify ();
ProcessCapsules (BOOT_ON_FLASH_UPDATE);
break;
@@ -375,6 +384,11 @@ PlatformBdsPolicyBehavior ( PlatformBdsDiagnostics (EXTENSIVE, FALSE, BaseMemoryTest);
//
+ // Perform user identification process
+ //
+ PlatformBdsUserIdentify ();
+
+ //
// In recovery boot mode, we still enter to the
// frong page now
//
@@ -404,6 +418,11 @@ PlatformBdsPolicyBehavior ( PlatformBdsConnectSequence ();
//
+ // Perform user identification process
+ //
+ PlatformBdsUserIdentify ();
+
+ //
// Give one chance to enter the setup if we
// have the time out
//
@@ -558,3 +577,49 @@ LockKeyboards ( {
return EFI_UNSUPPORTED;
}
+
+
+EFI_STATUS
+PlatformBdsUserIdentify (
+ VOID
+ )
+/*++
+
+ Routine Description:
+
+ This function is to identify a valid user, if successed, handle the deferred images.
+
+ Arguments:
+
+ None.
+
+ Returns:
+
+ EFI_SUCCESS - User successfully identified.
+
+--*/
+{
+ EFI_STATUS Status;
+ EFI_USER_MANAGER_PROTOCOL *Manager;
+ EFI_USER_PROFILE_HANDLE User;
+
+ //
+ // Locate user manager driver
+ //
+ Status = gBS->LocateProtocol (
+ &gEfiUserManagerProtocolGuid,
+ NULL,
+ &Manager
+ );
+ if (EFI_ERROR (Status)) {
+ return Status;
+ }
+
+ //
+ // Identity user
+ //
+ Status = Manager->Identify (Manager, &User);
+ return Status;
+}
+
+
diff --git a/Nt32Pkg/Library/Nt32BdsLib/BdsPlatform.h b/Nt32Pkg/Library/Nt32BdsLib/BdsPlatform.h index d9aafc8fcd..02136a29ea 100644 --- a/Nt32Pkg/Library/Nt32BdsLib/BdsPlatform.h +++ b/Nt32Pkg/Library/Nt32BdsLib/BdsPlatform.h @@ -37,6 +37,8 @@ Abstract: #include <Protocol/WinNtThunk.h>
#include <Protocol/WinNtIo.h>
+#include <Protocol/LoadedImage.h>
+#include <Protocol/UserManager.h>
#include <Guid/WinNtSystemConfig.h>
extern BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole[];
@@ -116,4 +118,9 @@ PlatformBdsEnterFrontPage ( IN BOOLEAN ConnectAllHappened
);
+EFI_STATUS
+PlatformBdsUserIdentify (
+ VOID
+ );
+
#endif // _BDS_PLATFORM_H
diff --git a/Nt32Pkg/Library/Nt32BdsLib/Nt32BdsLib.inf b/Nt32Pkg/Library/Nt32BdsLib/Nt32BdsLib.inf index 3708d679cb..c74e4d3dd3 100644 --- a/Nt32Pkg/Library/Nt32BdsLib/Nt32BdsLib.inf +++ b/Nt32Pkg/Library/Nt32BdsLib/Nt32BdsLib.inf @@ -56,6 +56,9 @@ [Guids]
gEfiWinNtSystemConfigGuid
+[Protocols]
+ gEfiUserManagerProtocolGuid
+
[Pcd.common]
gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow
gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn
|