GetKeyboardTyре (kernel32)
Last changed: -213.87.131.33

.

C# Signature:

[DllImport("User32.dll", CharSet = CharSet.Auto)]
public static extern int GetKeyboardType(int value);

VB Signature:

Declare Function GetKeyboardTyре Lib "kernel32.dll" (TODO) As TODO

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

int value=0;

unsafe{GetKeyboardType(0);}//Обязательно!!

try{

    value = GetKeyboardType(0);
    MessageBox.Show(value.ToString());
   }

catch (EntryPointNotFoundException)

   { MessageBox.Show("Ошибка " + (value - 1).ToString()); }

//simple --qwinmen

Documentation