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().

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.