winapi - Get the class that SetClassLongPtr uses -


i have multiple firefox profiles running each multiple windows. when pick random window each profile , run code on windows hwnd sets icon windows in profile. setclasslongptr(targetwindow_handle, gclp_hiconsm, ctypes.cast(hiconsmall, ctypes.uintptr_t));

i wondering how class?

i tried using getclassname on window handles returns mozillawindowclass windows regardless of profile. yet setclasslongptr not apply across profiles, that's how know class of windows in first profile different class of windows in second profile.

private window classes registered per-process. whilst each of windows used window class same name, names defined relative per-process namespace. so, window class name foo in process different window class named foo in process b.

from knowledge, , facts report in question, appear firefox uses separate processes distinct profiles. imagine different versions of firefox behave differently. seems me implementation detail should not rely upon.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -