lexikos wrote: ↑27 Feb 2021, 06:27
The current Microsoft documentation is incomplete. It is missing a paragraph which applies to OS versions that Microsoft (and AutoHotkey v2) no longer support.
Windows Server 2003, Windows XP, and Windows 2000: If this parameter is
TRUE, the system suspends operation immediately; if it is FALSE, the system
broadcasts a PBT_APMQUERYSUSPEND event to each application to request
permission to suspend operation.
Hi
@lexikos,
Thank you for looking into this. I am not surprised that the Microsoft documentation page is incomplete, seeing that those operating systems (Windows Server 2003, Windows XP, and Windows 2000) haven't been supported for at least 5 years. Seeing that AutoHotkey still supports Windows XP, I would suggest the following change for the
v1 documentation page
Parameter #2: Pass 1 instead of 0 to suspend immediately rather than asking each application for permission. For Windows Vista+ this parameter has no effect.
and the following change for the
v2 documentation page.
Parameter #2: This parameter has no effect.