kann man mit winapit die tastatur sperren????
-
kann man mit winapit die tastatur sperren????
wenn ja sagt wie
-
Du könntest evtl einen Hook dazu missbrauchen, aber was soll das überhaupt werden
-
Wie wärs mit EnableHardwareInput(FALSE);
-
Uli schrieb:
Wie wärs mit EnableHardwareInput(FALSE);
Falls du das ernst meinst: Wo ist die Funktion deklariert? Mein platform sdk kennt die nicht.
-
EnableHardwareKeyboard
The EnableHardwareKeyboard function enables or disables the keyboard.Syntax
BOOL EnableHardwareKeyboard (BOOL bEnable)At a Glance
Header file: Winuser.h
Platforms: H/PC
Windows CE versions: 2.0 and later
Complete documentation: Microsoft Platform SDKParameters
bEnable
Boolean value that determines whether to enable or disable the keyboard. Set it to TRUE to enable the keyboard or FALSE to disable it.
Return Values
This function always returns TRUE.Remarks
The EnableHardwareKeyboard function is useful for applications in which a user can write on the touch screen. When the keyboard is disabled, a user can rest a hand on it without causing spurious keyboard input. When EnableHardwareKeyboard changes the enabled state of the keyboard, it causes menus, tabs, buttons and static controls to repaint themselves, so they can change the way they display keyboard accelerators or other relevant information.See Also
GetKeyboardStatus
-
Meinst du wirklich er sucht eine Lösung ausschließlich für Windows CE?
-
@cd9000
ich habe die Funktion noch aus einer älteren Windows-Hilfe für Win 3.1, die bei der Boland Entwicklungsumgbung von 1996 dabei war. Ich habe nicht geschaut, ob es die in neueren Versionen von Windows.h, vielleicht auch in abgewandelter Form noch gibt. Das kann ich leider im Moment auch nicht, da mein P4 Prozessor (2,6 GHz) offensichtlich die 20 % ige Übertaktung nicht mehr mitmachen wollte
Aber ich schaue kommende Woche nocheinmal nach.
-
Die Funktion EnableHardwareKeyboard gibt es sogar noch bei Windows CE .NET.
Nur eben nicht bei den anderen Windows-Versionen.
-
Die Rundll32 hat sehr schöne Parameter...
Auch in Verbindung mit Maus und Tastatur sperren, allerdings kann man das nur per Reboot rückgängig machen...