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 "SetTimer" in [All]

ntdll

.

static extern int NtSetTimerResolution(int DesiredResolution, bool SetResolution, out int CurrentResolution );

.

Declare Function NtSetTimerResolution Lib "ntdll.dll" (ByVal DesiredResolution as UInteger, ByVal SetResolution as Boolean, ByRef CurrentResolution as UInteger)

.

NtSetTimerResolution(0.5, True, 0)

.
Documentation
[NtSetTimerResolution] on MSDN

user32

.
Summary
.

static extern IntPtr SetTimer(IntPtr hWnd, IntPtr nIDEvent, uint uElapse, TimerProc lpTimerFunc);

.

static extern IntPtr SetTimer(IntPtr hWnd, IntPtr nIDEvent, uint uElapse, IntPtr lpTimerFunc);

.

Public Shared Function SetTimer _

.

Public Shared Function SetTimer _

.

When using the version that takes a delegate make sure that the delegate is kept alive, i.e. there must be a managed reference to the delegate. Typically this means that after creating the delegate and before passing it to the SetTimer method you should asign it to some private field.

.
Documentation
[SetTimer] on MSDN

kernel32

3: set
.

    public void SetTimer(long Interval)

.

        public void SetTimer(long Interval)


 
Access PInvoke.net directly from VS: