Pausing a video on Windows with Win32/COM - windows

Is there a way to pause the currently running media - like, the media that displays on the windows lock screen?
I wish to programmatically achieve the same thing as clicking that pause button in that image in the bottom right (except when the machine is not locked). What COM interface could I use to do this? They are very confusing to look through and there seems to be at least a couple related to media on Windows.

Related

Windows Overlay with timer

I am currently exploring overlays for the Windows system using Python/C++/C# (Any language actually). I would like to program a software that appears on top of every and any program similar to this External Overlay in C++. The issue with the attached video is that it will only work on things that use DirectX and this software should run regardless of whether directX is used or not. It's purpose is to simply show a timer which when it runs out will Suspend/Freeze the Windows machine until a specific keypress combination is used to which it will receive a parameter that restarts the countdown.
How does one start, which are the best available resources for such a feature ? Any help or guidance will be great! (Similar to how the Xbox Overlay works where a key press combo activates the overlay, except it will be persistent)
Thanks a whole bunch in advance !

Programmatically open image full-screen in Windows 10

I'm trying to programmatically open an image from a folder and have it completely fill the screen, and it seems the only way to have an image completely fill the screen is to click the Slideshow button in Windows Photo Viewer and pause the slideshow. However, in Windows 10 it isn't even possible to programmatically open an image (at least, not via the command line, using either Windows Photo Viewer or Photos), let alone paused in slideshow mode.
If not the command-line, are there any other good programmatic solutions for what I want to do?
Hashim - You could quite easily write an app for this using open Lazarus.

Changing z-index of a program

Is there any way for me 2 be able to change the z-index of a program which I downloaded, so it's always on top of whatever is on my screen? Currently it's pre-programmed to be on top of everything, but once I start a full-screen game, it's not on top anymore.
Ps: It's running on Windows 7 (64bit), & it's downloaded here: code.google.com/...
I'd try 2 figure it out from the code but I can't seem to find it, I thought programs on code.google.com are opensource, appearantly not.
No, the point of 'full screen' is 'full screen'. Once a game takes full screen control, usually via DirectX or OpenGL, they've taken over the 'hardware output context', not allowing any more games on top of them.
Many games have the option to run 'windowed' in their video options. That forces the game to remain in regular desktop drawing (at a performance cost) and as such allow interaction with the other windows in the desktop window manager.

Screen capture for multiple-window application

On either Win32 or wxWidgets, is there an easy way to get a screen capture of an application which has several windows open - e.g. floating toolbars and similar - without getting their desktop, etc, as well?
The easiest would be capturing entire desktop, then enumerating windows and their positions so that you create a region/mask which leaves the windows of the process/application in question. Then applying the mask onto captured image would get you the requested snapshot.

How do I get the size of all windows on the screen in windows 7?

I am trying to write a program that gets the windows that are displayed on the screen. Something like screen.getActiveWindow().size would be cool, but it only addresses the active window.
I am looking for the sizes of all windows on the screen, as well as event information when they are resized, cover each other up.
Am I just daydreaming or is there a way to get this information on windows?
You need to use EnumWindow Function go get the hwnd of each window then user EnumChildWindow to get the child windows and finally get windowinfo the clr doesn't have all of the necessary function to do low level window manipulation unless its been added in 4.0 and I haven't noticed.

Resources