GetDoubleClickTime function (Windows)

Switch View :
ScriptFree
GetDoubleClickTime function

Applies to: desktop apps only

Retrieves the current double-click time for the mouse. A double-click is a series of two clicks of the mouse button, the second occurring within a specified time after the first. The double-click time is the maximum number of milliseconds that may occur between the first and second click of a double-click. The maximum double-click time is 5000 milliseconds.

Syntax

UINT WINAPI GetDoubleClickTime(void);

Parameters

This function has no parameters.

Return value

Type: UINT

The return value specifies the current double-click time, in milliseconds. The maximum return value is 5000 milliseconds.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Winuser.h (include Windows.h)

Library

User32.lib

DLL

User32.dll

See also

Reference
SetDoubleClickTime
Conceptual
Mouse Input

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Community Content

dmex
C# syntax
[DllImport("user32.dll", CharSet=CharSet.Auto, ExactSpelling=true)]
public static extern int GetDoubleClickTime();

dmex
vb.net syntax
<DllImport("user32.dll", CharSet:=CharSet.Auto, ExactSpelling:=True)> _
Public Shared Function GetDoubleClickTime() As Integer
End Function