Recently I made a new User Account with UAC enabled , okay...
Then if I wanted to run any program as admin the screen would be covered with a black transparent bitmap and it will show up a confirmation box . . .
So, how do I make that kind of confirmation boxes in c++ WINAPI
My goal is a simple message box on the centre of the screen with buttons yes and no
but the screen should be covered with that black bitmap . . .
something kind of a secure desktop, I guess . . .
Can someone please please help me out . . .
I would love to have a code snippet too :)
I don't know how Windows makes that prompt and I'm not exactly up to date on the winapi, but you could probably use a fullscreen borderless layered window with partial transparency and a modal dialog box on top of it to make the prompt.
I would strongly suggest you do run-time elevation, it will not only give you more dynamic support over the whole UAC prompt, but you can prompt the client\end-user to elevate the application when ever you wish.
Instead of me giving code I suggest you read this article: