@BladeTiger12
I'm writing in C# so it's not that simple cause I can't use asm in there.
I'd have to wrap this code up into a dll in C++ or delphi and then use imported function.
For now I'm fine with calling WinApi functions, but thanks for showing other methods.
Maybe some day I use them