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

Вниз

Вопрос по ф-ии MsgWaitForMultipleObjects.   Найти похожие ветки 

 
iNew   (2003-08-22 04:20) [0]

Подойдет ли эта ф-ия, для того-чтобы определить изменился ли хандл на файл? Т.е было FileOpen = -1, а стало FileOpen > 0
И если можно примерчик использования.


 
Reindeer Moss Eater   (2003-08-22 09:13) [1]

The WaitForSingleObject function can wait for the following objects:

Object Description
Change notification The FindFirstChangeNotification function returns the handle. A change notification object"s state is signaled when a specified type of change occurs within a specified directory or directory tree.
Console input The handle is returned by the CreateFile function when the CONIN$ value is specified, or by the GetStdHandle function. The object"s state is signaled when there is unread input in the console"s input buffer, and it is nonsignaled when the input buffer is empty.
Event The CreateEvent or OpenEvent function returns the handle. An event object"s state is set explicitly to signaled by the SetEvent or PulseEvent function. A manual-reset event object"s state must be reset explicitly to nonsignaled by the ResetEvent function. For an auto-reset event object, the wait function resets the object"s state to nonsignaled before returning. Event objects are also used in overlapped operations, in which the state is set by the system.
Mutex The CreateMutex or OpenMutex function returns the handle. A mutex object"s state is signaled when it is not owned by any thread. The wait function requests ownership of the mutex for the calling thread, changing the mutex"s state to nonsignaled when ownership is granted.
Process The CreateProcess or OpenProcess function returns the handle. A process object"s state is signaled when the process terminates.
Semaphore The CreateSemaphore or OpenSemaphore function returns the handle. A semaphore object maintains a count between zero and some maximum value. Its state is signaled when its count is greater than zero and nonsignaled when its count is zero. If the current state is signaled, the wait function decreases the count by one.
Thread The CreateProcess, CreateThread, or CreateRemoteThread function returns the handle. A thread object"s state is signaled when the thread terminates.
Timer The CreateWaitableTimer or OpenWaitableTimer function returns the handle. Activate the timer by calling the SetWaitableTimer function. The state of an active timer is signaled when it reaches its due time. You can deactivate the timer by calling the CancelWaitableTimer function. The state of an active timer is signaled when it reaches its due time. You can deactivate the timer by calling the CancelWaitableTimer function.

Как видим, никаких хендлов открытых файлов.


 
Digitman   (2003-08-22 09:15) [2]

нет , не подойдет.
хэндл файла не является объектом синхронизации



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

Форум: "WinAPI";
Текущий архив: 2003.10.27;
Скачать: [xml.tar.bz2];

Наверх




Память: 0.45 MB
Время: 0.01 c
3-89141
Sedunov Vitaly
2003-10-07 09:10
2003.10.27
@@spid и PacketRecords


4-89638
Andrey_g
2003-08-21 18:52
2003.10.27
Как прочитать данные по конкретному адресу на CD


1-89317
Андерсон
2003-10-17 11:09
2003.10.27
Нужно скрыть программу при Ctrl+Alt+Del и чтобы......


1-89329
Ivolg
2003-10-16 15:50
2003.10.27
Числовые значения!!!!!!!!!!!!!!!!


3-89135
Roger
2003-10-07 18:05
2003.10.27
Из БД типа Access в таблицу Excel





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
Английский Французский Немецкий Итальянский Португальский Русский Испанский