and actually to be combined with CreateThread()

Code:
HANDLE CreateThread(
  LPSECURITY_ATTRIBUTES lpThreadAttributes, 
  DWORD dwStackSize, 
  LPTHREAD_START_ROUTINE lpStartAddress, 
  LPVOID lpParameter, 
  DWORD dwCreationFlags, 
  LPDWORD lpThreadId
);
(the program now uses this (CreateThread) and i have to minimize the modifications for my purpouses..