Crate wallpaper_app

Crate wallpaper_app 

Source

Modules§

drawing

Constants§

SHELLDLL_DEF_VIEW_STR
Used in FindWindowExW(). Is the name of the window class that is the parent of the desktop window:
WORKER_W_STR
Used in FindWindowExW(). Any application that needs to listen to window messages call this Api to create a worker window. Is the name of the window class we are looking for to put our window into as a child:

Functions§

create_desktop_window_fast
Combines low-lewel methods for simplify create window at desktop!
create_window
Create window using window handle.
create_window_class
Create WNDCLASSW and handle to it with custom name and WNDPROC.
create_window_handle
Create window handle for window class (WNDCLASSW) with window_name
enum_windows_proc
It receives top-level window handles and find windows with class SHELLDLL_DEF_VIEW_STR + child with WORKER_W_STR class
find_worker_w
Find the newly created WorkerW Example:
get_progman_handle
Find Progman and get handle. Progman requires for try_spawn_worker_w() func
handle_window_messages
A simple function to handle window messages. You can use it, or define your own. It use PeekMessageW() (https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-peekmessagew)
pull_window_to_desktop
Sets worker_w_handle as parent to handle and set window size to winapi::um::winuser::SM_CXSCREEN x winapi::um::winuser::SM_CYSCREEN
try_spawn_worker_w
Message to Progman to spawn a WorkerW
wide_null
Convert string to windows friedly format.