dwDesiredAccess 【in】指定对
事件对象的请求访问权限,如果
安全描述符指定的对象不允许要求通过对调用该函数的过程,函数将返回失败。
The OpenEvent function enables multiple processes to open handles of the same event object. The function succeeds only if some process has already created the event using the
CreateEvent function. The calling process can use the returned handle in any function that requires a handle to an event object, subject to the limitations of the access specified in the dwDesiredAccess parameter.
Use the DuplicateHandle function to duplicate the handle. Use the CloseHandle function to close the handle. The system closes the handle automatically when the process terminates. The event object is destroyed when its last handle has been closed.