Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Основная";
Текущий архив: 2004.08.29;
Скачать: [xml.tar.bz2];

Вниз

Функция GetCurrentThread   Найти похожие ветки 

 
Лёня   (2004-08-13 17:02) [0]

Помогите начинающему!
Что возвращает функция GetCurrentThread ? Что такое Thread ?
Спасибо


 
Digitman ©   (2004-08-13 17:06) [1]


> Что возвращает функция GetCurrentThread ?


Return Values

The return value is a pseudohandle for the current thread.

Remarks

A pseudohandle is a special constant that is interpreted as the current thread handle. The calling thread can use this handle to specify itself whenever a thread handle is required. Pseudohandles are not inherited by child processes.
This handle has the maximum possible access to the thread object. For systems that support security descriptors, this is the maximum access allowed by the security descriptor for the calling process. For systems that do not support security descriptors, this is THREAD_ALL_ACCESS.

The function cannot be used by one thread to create a handle that can be used by other threads to refer to the first thread. The handle is always interpreted as referring to the thread that is using it. A thread can create a "real" handle of itself that can be used by other threads, or inherited by other processes, by specifying the pseudohandle as the source handle in a call to the DuplicateHandle function.
The pseudohandle need not be closed when it is no longer needed. Calling the CloseHandle function with this handle has no effect. If the pseudohandle is duplicated by DuplicateHandle, the duplicate handle must be closed.


> Что такое Thread ?


странным кажется то что сначала интерес проявлен к ф-ции, имеющей отношение к некоему объекта ядра, и при этом о самом этом объекте ядра нет вроде бы ни малейшего понятия ... как сие понимать ?


 
Sun bittern ©   (2004-08-13 17:33) [2]

Digitman ©   (13.08.04 17:06) [1]

Выполняем функции онлайн справочника ;)


 
GuAV ©   (2004-08-13 22:08) [3]


> Выполняем функции онлайн справочника ;)

Digitman клиент форума к MSDN подключил ;-)



Страницы: 1 вся ветка

Форум: "Основная";
Текущий архив: 2004.08.29;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.45 MB
Время: 0.037 c
3-1091783806
Diman
2004-08-06 13:16
2004.08.29
Импорт данных .txt, .dbf, .doc в Excel в Делфи 5-7


1-1092643707
an-na2002
2004-08-16 12:08
2004.08.29
Возврат к проверке


3-1091764695
Арт
2004-08-06 07:58
2004.08.29
Создание БД


9-1083875300
Mihey
2004-05-07 00:28
2004.08.29
Вывод графики - всё, что можно


4-1089877699
banderas
2004-07-15 11:48
2004.08.29
Как сделать что бы запускался почтовый клиент по умолчанию





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский