You have a richedit20.dll version 2 instead of version 3.This don't allow the proc to work.I have verify this with your dll in the directory of the proc.
I don't know wich system you have (very old,mine is XP SP3),try windows update.
Perhaps can you find a separate download for it,many dll can be found in separate download.