PrintScreenLogger
Obtain UEFI Screen Captures
Install / Use
/learn @vscpp/PrintScreenLoggerREADME
========================By vscpp start===============================
The code is from Microsoft MU project.
How to build (Sample)
- Download UDK2018 code
- Copy PrintScreenLogger to ShellPkg/Application/PrintScreenLogger
- DSC Nt32Pkg.dsc change [Components] ShellPkg/Application/PrintScreenLogger/PrintScreenLogger.inf
- Run build command: edksetup.bat --nt32 build -m ShellPkg\Application\PrintScreenLogger\PrintScreenLogger.inf -a X64 -t VS2017 -b RELEASE
- Find the EFI driver PrintScreenLogger.efi in Build\NT32X64\RELEASE_VS2017\X64
How to run
- Boot to UEFI Shell environment
- Run: load PrintScreenLogger.efi
- Refer to "PrintScreenLogger operation"
========================By vscpp end===============================
PrintScreenLogger
About
PrintScreenLogger is a DXE_DRIVER you can include in your platform to obtain Screen Captures during the preboot environment by pressing the Ctrl-PrtScn key combination. This action will creates a 24bbp (Bits Per Pixel) .BMP file of the screen's contents and write it to a enabled USB drive.
Supported Architectures
This package is not architecturally dependent. This package is dependent upon the Gop pixel format, and only supports these two pixel formats:
- PixelRedGreenBlueReserved8BitPerColor
- PixelBlueGreenRedReserved8BitPerColor
PrintScreenLogger operation
During initialization, the Print Screen Loggger registers for notification of the Ctrl-PrtScn key combination is pressed.
When a Print Screen callback occurs:
- Looks for a mounted USB drive that contains a file in the root directory called PrintScreenEnable.txt. This limits PrintScreenLogger to only write to enabled USB devices.
- Looks for the next available filename in the form PrtScreen####.bmp, starting with 0000.
- Creates the new PrtScreen####.bmp file.
- Call GraphicsOutput->Blt to obtain the complete screen.
- Converts the BLT buffer to a 24bbp BMP structure.
- Writes the BMP structure to the new PrtScreen####.bmp file.
Including in your platform
Sample DSC change
[Components.<arch>]
...
...
MsGraphicsPkg/PrintScreenFileLogger/PrintScreenFileLogger.inf
Sample FDF change
[FV.<a DXE firmware volume>]
...
...
INF MsGraphicsPkg/PrintScreenFileLogger/PrintScreenFileLogger.inf
Copyright
Copyright (c) 2018, Microsoft Corporation
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Related Skills
node-connect
343.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
90.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
