это не константа:
Цитата:
The thread handle returned by the CreateThread and CreateProcess functions has THREAD_TERMINATE access, so any caller holding one of these handles can terminate your thread.
|
и что все-таки с GetLastError ? и почему бы не завершить поток корректно, без утечки ресурсов?