User32GetLastInputInfo Method
Retrieves the time of the last input (mouse or keyboard) event.
This function is useful for input idle detection.
However,
GetLastInputInfo(LastInputInfo) does not provide system-wide user input information across all running sessions.
Rather,
GetLastInputInfo(LastInputInfo) provides session-specific user input information for only the
session that invoked the function
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll", SetLastError = true)]
public static bool GetLastInputInfo(
ref LastInputInfo refInfo
)
<DllImportAttribute("User32.dll", SetLastError := true>]
Public Shared Function GetLastInputInfo (
ByRef refInfo As LastInputInfo
) As Boolean
Dim refInfo As LastInputInfo
Dim returnValue As Boolean
returnValue = User32.GetLastInputInfo(refInfo)
public:
[DllImportAttribute(L"User32.dll", SetLastError = true)]
static bool GetLastInputInfo(
LastInputInfo% refInfo
)
[<DllImportAttribute("User32.dll", SetLastError = true)>]
static member GetLastInputInfo :
refInfo : LastInputInfo byref -> bool
No code example is currently available or this language may not be supported.
- refInfo LastInputInfo
-
A pointer to a LastInputInfo structure that receives the time of the last input event..
Boolean
If the function succeeds, the return value is
; otherwise,
.