I have write something like this:
procedure TForm1.Button1Click(Sender
var
R : TRegistry;
buffer: pointer;
Const
SubKey : String = 'SYSTEM\CurrentControlSet\
Data: array[0..23] of byte = ($00,$00,$00, $00,$00,$00,$00,$00,$03,$0
begin
buffer := @data;
R := TRegistry.Create;
with R do
begin
RootKey := HKEY_LOCAL_MACHINE;
OpenKey(SubKey,false);
WriteBinaryData('scancode map', buffer, sizeof(buffer));
Free;
end;
end;
The result in the registry was a REG_BINARY Entry like:
40 fd 44 00
The Windows Key, still enabled!
I have made something wrong?
Main Topics
Browse All Topics





by: MFriesePosted on 2004-12-06 at 05:04:44ID: 12753561
create or modify the following entry in your registry:
\CurrentCo ntrolSet\C ontrol\Key board Layout]
[HKEY_LOCAL_MACHINE\SYSTEM
Scancode Map
to
00 00 00 00 00 00 00 00 03 00 00 00 00 00 5B E0 00 00 5C E0 00 00 00 00
Type is REG_BINARY.
In Delphi use TRegistry to do that.