Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "LASTINPUTINFO" in [All]

Structures

.
Summary
The LASTINPUTINFO structure contains the time of the last input.
.

    struct LASTINPUTINFO

.

        public static readonly int SizeOf = Marshal.SizeOf(typeof(LASTINPUTINFO));

.

    Structure LASTINPUTINFO

.

   type LastInputInfo = {

.
Documentation
[LASTINPUTINFO] on MSDN

user32

.

static extern bool GetLastInputInfo(ref LASTINPUTINFO plii);

.

Shared Function GetLastInputInfo(ByRef plii As LASTINPUTINFO) As Boolean

.

static bool GetLastInputInfo(LASTINPUTINFO* plii);

.

   type LastInputInfo = {

.

   extern int GetLastInputInfo(LastInputInfo& lpi);

.

LASTINPUTINFO

.

        LASTINPUTINFO lastInputInfo = new LASTINPUTINFO();

.

        lastInputInfo.cbSize = (uint)Marshal.SizeOf( lastInputInfo );

.

        lastInputInfo.dwTime = 0;

.

        if ( GetLastInputInfo( ref lastInputInfo ) )

.

        uint lastInputTick = lastInputInfo.dwTime;

.

Dim lastInputInf As New LASTINPUTINFO()

.

    If GetLastInputInfo(lastInputInf) Then

.

    LASTINPUTINFO lastInputInfo;

.

    lastInputInfo.cbSize = (UInt32)Marshal::SizeOf(lastInputInfo);

.

    lastInputInfo.dwTime = 0;

.

    if (GetLastInputInfo(&lastInputInfo))

.

        int lastInputTicks = (int)lastInputInfo.dwTime;

.

     let size = Marshal.SizeOf (typeof<LastInputInfo>)

.

     match GetLastInputInfo(&info) with

.

    LASTINPUTINFO lastInputInfo;

.

    lastInputInfo.cbSize = sizeof (lastInputInfo);

.

    lastInputInfo.dwTime = 0;

.

    if (GetLastInputInfo(&lastInputInfo)) {        

.

        int lastInputTicks = (int)lastInputInfo.dwTime;

.
Documentation
[GetLastInputInfo] on MSDN

 
Access PInvoke.net directly from VS: