KillTimer (user32)
Last changed: -217.115.65.17

.
Summary

C# Signature:

[DllImport("user32.dll", ExactSpelling=true)]
[return: MarshalAs(UnmanagedType.Bool)]
static extern bool KillTimer(IntPtr hWnd, IntPtr uIDEvent);

VB Signature:

<DllImport("user32.dll", SetLastError:=True)> _
Public Shared Function KillTimer(ByVal hWnd As IntPtr, ByVal nIDEvent As IntPtr) As Boolean
End Function

User-Defined Types:

None.

Notes:

The native method is actually prototyped to take an unsigned event ID, but because unsigned types are not CLS compliant, declaring it as signed makes it somewhat easier to work with.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

System.Windows.Forms.Timer

Documentation
KillTimer on MSDN