Forum: Win32/Win64 API (native code)
Delphi
by flashcoder,
7. Dez 2018
SOLUTION:
Change the code above this way:
if not IsSameDesktop(HOldDesk, HNewDesk) then
begin
if (not SetThreadDesktop(HNewDesk)) then
begin
Forum: Win32/Win64 API (native code)
Delphi
by flashcoder,
7. Dez 2018
The following code makes screenshots of a active desktop (including Winlogon screen if this code is executed in NT Authority account).
I already know that SetThreadDesktop fails if exists some window or hook on same thread that call this function.
Then i want know if exists some solution to show a Form on active desktop of way that SetThreadDesktop also can work? Thank you.
program...