F
Fortress
API: SetKeyboardState
Description: Here is the source for enabling NumLock. It, however,
doesn't work in remote desktop. Bug or limitation or feature ? Any
comment or solution? Thanks
My Delphi code:
function SetNumLock: boolean;
var keyState :TKeyboardState;
begin
GetKeyboardState(keyState);
keyState[VK_NUMLOCK] := 1;
Result := SetKeyboardState(keyState);
end;
Description: Here is the source for enabling NumLock. It, however,
doesn't work in remote desktop. Bug or limitation or feature ? Any
comment or solution? Thanks
My Delphi code:
function SetNumLock: boolean;
var keyState :TKeyboardState;
begin
GetKeyboardState(keyState);
keyState[VK_NUMLOCK] := 1;
Result := SetKeyboardState(keyState);
end;