1. [pywin32] win32event 소개

pywin32/win32event|2020. 8. 20. 00:39

윈도우의 대기 이벤트, 타이머, 뮤텍스, 세마포어에 관련된 모듈입니다.

 

다음의 20개 함수를 제공합니다.

 

  • CreateEvent
  • WaitForSingleObject
  • OpenEvent
  • SetEvent
  • ResetEvent
  • PulseEvent
  • CreateWaitableTimer
  • OpenWaitableTimer
  • CancelWaitableTimer
  • SetWaitableTimer
  • CreateMutex
  • OpenMutex
  • ReleaseMutex
  • CreateSemaphore
  • OpenSemaphore
  • ReleaseSemaphore
  • WaitForMultipleObjects
  • WaitForSingleObjectEx
  • WaitForMultipleObjectsEx
  • WaitForInputIdle

 

[pywin32/win32event] - 2. [pywin32] CreateEvent 함수

 

2. [pywin32] CreateEvent 함수

PyHANDLE = CreateEvent(EventAttributes, bManualReset , bInitialState , Name ) 이벤트를 생성하는 함수입니다. 인자로는 EventAttributes : PySECURITY_ATTRIBUTES, bManualReset : bool, bInitialState : boo..

ssjune.tistory.com

[pywin32/win32event] - 3. [pywin32] WaitForSingleObject 함수

 

3. [pywin32] WaitForSingleObject 함수

int = WaitForSingleObject(hHandle, milliseconds ) 이벤트 하나를 등록시켜놓고 이벤트가 셋트 되면 이를 알려주는 함수입니다. 인자로는 hHandle : PyHANDLE, milliseconds : int 가 있습니다. hHandle: 대기상..

ssjune.tistory.com

[pywin32/win32event] - 4. [pywin32] OpenEvent 함수

 

4. [pywin32] OpenEvent 함수

PyHANDLE = OpenEvent(desiredAccess, bInheritHandle , name ) CreateEvent로 만들어진 이벤트를 여는 함수입니다. 인자로는 desiredAccess : int, bInheritHandle : bool, name : PyUnicode 가 있습니다. desire..

ssjune.tistory.com

[pywin32/win32event] - 5. [pywin32] SetEvent 함수

 

5. [pywin32] SetEvent 함수

SetEvent(hEvent) 이벤트를 셋트 시키는 함수입니다. 인자로는 hEvent : PyHANDLE 가 있습니다. hEvent: 셋트 시킬 이벤트의 핸들입니다. 보통 OpenEvent 함수의 리턴값을 사용하게 됩니다. import win32event imp..

ssjune.tistory.com

[pywin32/win32event] - 6. [pywin32] ResetEvent 함수

 

6. [pywin32] ResetEvent 함수

ResetEvent(hEvent) 이벤트를 리셋 시키는 함수입니다. 인자로는 hEvent : PyHANDLE 가 있습니다. hEvent: 리셋시킬 이벤트 핸들입니다. 보통 OpenEvent 함수의 리턴값을 사용합니다. 이 함수를 실험하기 전에 Wa

ssjune.tistory.com

[pywin32/win32event] - 7. [pywin32] PulseEvent 함수

 

7. [pywin32] PulseEvent 함수

PulseEvent(hEvent) 이벤트를 셋트로 설정 후 리셋 시키는 함수입니다. SetEvent 함수와 ResetEvent 함수를 순서대로 호출한다고 봐도 무방할 것 같습니다. 인자로는 hEvent : PyHANDLE 가 있습니다. hEvent: 셋트..

ssjune.tistory.com

[pywin32/win32event] - 8. [pywin32] CreateWaitableTimer 함수

 

8. [pywin32] CreateWaitableTimer 함수

PyHANDLE = CreateWaitableTimer(TimerAttributes, ManualReset , TimerName ) 대기 타이머를 생성하는 함수입니다. 인자로는 TimerAttributes : PySECURITY_ATTRIBUTES, ManualReset : bool, TimerName : str 가..

ssjune.tistory.com

[pywin32/win32event] - 9. [pywin32] OpenWaitableTimer 함수

 

9. [pywin32] OpenWaitableTimer 함수

PyHANDLE = OpenWaitableTimer(desiredAccess, bInheritHandle , timerName ) CreateWaitableTimer로 생성된 타이머를 오픈하는 함수입니다. 인자로는 desiredAccess : int, bInheritHandle : bool, timerName : s..

ssjune.tistory.com

[pywin32/win32event] - 10. [pywin32] CancelWaitableTimer 함수

 

10. [pywin32] CancelWaitableTimer 함수

CancelWaitableTimer(handle) 동작하는 타이머를 종료하는 함수입니다. 인자로는 handle이 있습니다. handle은 종료시킬 타이머의 핸들값입니다. import win32event import win32con import win32api evtHandle =..

ssjune.tistory.com

[pywin32/win32event] - 11. [pywin32] SetWaitableTimer 함수

 

11. [pywin32] SetWaitableTimer 함수

SetWaitableTimer(handle, dueTime, period, func, param, resume_state) 대기 타이머를 셋트 시키는 함수입니다. 인자로는 handle : PyHANDLE, dueTime : long, period : int, func : object, param : object, re..

ssjune.tistory.com

[pywin32/win32event] - 12. [pywin32] CreateMutex 함수

 

12. [pywin32] CreateMutex 함수

PyHANDLE = CreateMutex(MutexAttributes, InitialOwner , Name ) 인자로는 MutexAttributes : PySECURITY_ATTRIBUTES, InitialOwner : bool, Name : PyUnicode 가 있습니다. MutexAttributes는 뮤텍스에 대한 보..

ssjune.tistory.com

[pywin32/win32event] - 13. [pywin32] OpenMutex 함수

 

13. [pywin32] OpenMutex 함수

PyHANDLE = OpenMutex(desiredAccess, bInheritHandle , name ) 인자로는 desiredAccess : int, bInheritHandle : bool, name : PyUnicode 가 있습니다. desiredAccess는 뮤텍스에 대한 접근권한을 나타냅니다. -..

ssjune.tistory.com

[pywin32/win32event] - 14. [pywin32] ReleaseMutex 함수

 

14. [pywin32] ReleaseMutex 함수

ReleaseMutex(hEvent) CreateMutex나 OpenMutex로 만든 뮤텍스의 점유를 해제하는 함수입니다. 인자로는 hEvent : PyHANDLE 가 있습니다. hEvent는 뮤텍스의 핸들값입니다. import threading import win32event im..

ssjune.tistory.com

[pywin32/win32event] - 15. [pywin32] CreateSemaphore 함수

 

15. [pywin32] CreateSemaphore 함수

PyHANDLE = CreateSemaphore(SemaphoreAttributes, InitialCount , MaximumCount , SemaphoreName ) 인자로는 SemaphoreAttributes : PySECURITY_ATTRIBUTES, InitialCount : int, MaximumCount : int, SemaphoreN..

ssjune.tistory.com

[pywin32/win32event] - 16. [pywin32] OpenSemaphore 함수

 

16. [pywin32] OpenSemaphore 함수

PyHANDLE = OpenSemaphore(desiredAccess, bInheritHandle , name ) 만들어진 세마포어를 오픈하는 함수입니다. 인자로는 desiredAccess : int, bInheritHandle : bool, name : PyUnicode 가 있습니다. desiredAcc..

ssjune.tistory.com

[pywin32/win32event] - 17. [pywin32] ReleaseSemaphore 함수

 

17. [pywin32] ReleaseSemaphore 함수

int = ReleaseSemaphore(hEvent, lReleaseCount ) WaitForSingleObject로 점유한 세마포어의 점유를 해제하는 함수입니다. 인자로는 hEvent : PyHANDLE, lReleaseCount : int 가 있습니다. hEvent는 세마포어의 핸..

ssjune.tistory.com

[pywin32/win32event] - 18. [pywin32] WaitForMultipleObjects 함수

 

18. [pywin32] WaitForMultipleObjects 함수

int = WaitForMultipleObjects(handleList, bWaitAll , milliseconds ) WaitForSingleObjects가 하나의 이벤트 핸들에 대해서 대기를 한다면, 이 함수는 여러개의 이벤트 핸들에 대해서 대기를 할 수 있습니다. 인..

ssjune.tistory.com

[pywin32/win32event] - 19. [pywin32] WaitForSingleObjectEx 함수

 

19. [pywin32] WaitForSingleObjectEx 함수

int = WaitForSingleObjectEx(hHandle, milliseconds , bAlertable ) 기본적인 기능은 WaitForSingleObject와 같습니다. [pywin32/win32event] - 3. [pywin32] WaitForSingleObject 함수 3. [pywin32] WaitForSing..

ssjune.tistory.com

[pywin32/win32event] - 20. [pywin32] WaitForMultipleObjectsEx 함수

 

20. [pywin32] WaitForMultipleObjectsEx 함수

int = WaitForMultipleObjectsEx(handleList, bWaitAll , milliseconds , bAlertable ) 기본적인 기능은 WaitForMultipleObjects와 같습니다. [pywin32/win32event] - 18. [pywin32] WaitForMultipleObjects 함수..

ssjune.tistory.com

[pywin32/win32event] - 21. [pywin32] WaitForInputIdle 함수

 

21. [pywin32] WaitForInputIdle 함수

int = WaitForInputIdle(hProcess, milliseconds ) WaitForInputIdle은 특정 프로세스가 만들어지고 완전히 초기화가 될 때까지 대기하는 함수입니다. 인자로는 hProcess : PyHANDLE, milliseconds : int 가 있습..

ssjune.tistory.com

 

반응형

'pywin32 > win32event' 카테고리의 다른 글

6. [pywin32] ResetEvent 함수  (0) 2020.08.31
5. [pywin32] SetEvent 함수  (0) 2020.08.31
4. [pywin32] OpenEvent 함수  (0) 2020.08.31
3. [pywin32] WaitForSingleObject 함수  (0) 2020.08.31
2. [pywin32] CreateEvent 함수  (0) 2020.08.30

댓글()