So is there advantage of either solution? Why was it written with assembler?
Thanks
The assembler version theoretically works on any x86 target (older Windows versions, OSX or others when you are using FPC) but I never tested it.
Using the windows
API restricts it to Windows XP/Server 2003 and up but works well.
There is also
another implementation (
asm based for x86 only though) out there but I never got it to work properly (just mentioning it for completeness).