I don't know about CreateRemoteThread -- never used it.
you probably won't find any "tutorials" because there isn't that much to it. Most of the parameters are 0, unless you want more control over the thread.
First create the thread itself -- name it anything you want. If it is a member of c++ class it must be static method.
DWORD WINAPI ThreadProc( LPVOID lpParameter)
{
// blabla
return 0;
}
now create an instance of the thread in your program
DWORD dwThreadID;
HANDLE hThread = CreateThread(0,0,ThreadProc,0,0,&dwThreadID);
The parameter immediately following ThreadProc is a parameter you want to pass to the thread. So if you want to pass the this pointer (assuming c++ program)
DWORD dwThreadID;
HANDLE hThread = CreateThread(0,0,ThreadProc,this,0,&dwThreadID);
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343