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);
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Offline 21,953 posts
since Aug 2005