for some reason the createremotethread() function is failing when i try it on calc.exe, or notepad.exe....when i use getLastError() it returns an error code of 5 : ACCESS_DENIED

anyone have any ideas how/what i am doing wrong?

and yes i am using OpenProcess(CREATE_THREAD_ACCESS, FALSE, ProcessID);
-thx

>> and yes i am using OpenProcess(CREATE_THREAD_ACCESS, FALSE, ProcessID);

A mere CREATE_THREAD_ACCESS is not enough, see CreateRemoteThread().