I want to call the Windows api to draw the text on the top of the screen, even in the full-screen mode of the game, it can be displayed. How do I do this?

天凯 刘 1 Reputation point
2021-08-23T18:02:27.213+00:00

I want to call the Windows api to draw the text on the top of the screen, even in the full-screen mode of the game, it can be displayed. How do I do this?
I hope to be able to draw text that displays information such as the temperature of the graphics card and the usage of the video memory in the full-screen mode of the game
I tried it myself, but the text I drew cannot be displayed in the game in full screen mode. It can only be displayed in window mode.
I have been searching in Windows api for a long time, but I don’t know which one can be used.
I hope the expert can tell me which Windows API can realize the above-mentioned functions.
Thank you again, please help me

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
711 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,387 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Xiaopo Yang - MSFT 11,081 Reputation points Microsoft Vendor
    2021-08-24T01:07:23.42+00:00

    Please refer to the Question which has the same requirement. @RLWA32 had given a answer, running with UIAccess=true and with a window that is WS_EX_TOPMOST.


  2. 天凯 刘 1 Reputation point
    2021-09-20T08:56:26.713+00:00

    How is the xbox window displayed by pressing the win key + G key realized? What if it can be displayed in the front of the game in full-screen mode?
    I really want to know, press win key + G key. How is the displayed window layer realized? Are there any API commands? Press the win key + G key. The window layer displayed can actually be the top and top of the screen

    0 comments No comments