📄 event.h
字号:
/* * event.h * * Copyright (C) 2006 Insigme Co., Ltd * * Authors: * - Limin Jin * * This software has been developed while working on the Linux Unified Kernel * project (http://linux.insigma.com.cn) in the Insigma Reaserch Institute, * which is a subdivision of Insigma Co., Ltd (http://www.insigma.com.cn). * * The project is sponsored by Insigma Co., Ltd. * * The authors can be reached at linux@insigma.com.cn. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or (at your * option) any later version. * * Revision History: * Jan 2006 - Created. */ /* * event.h: win32 event definition * Reference to Kernel-win32 code */#ifndef _EVENT_H#define _EVENT_H#include <linux/module.h>#include "win32.h"#include "thread.h"#include "process.h"#include "objwait.h"#ifdef CONFIG_UNIFIED_KERNEL/* * event object definition */struct win32_event { rwlock_t we_lock; /* data lock */ char we_manreset; /* T if manual-reset requested */ char we_state; /* event state */};struct event_args { ACCESS_MASK DesiredAccess; POBJECT_ATTRIBUTES ObjectAttributes; EVENT_TYPE EventType; BOOLEAN InitialState;};extern void EventClassInit(void);NTSTATUS STDCALL NtCreateEvent(OUT PHANDLE EventHandle, IN ACCESS_MASK DesiredAccess, IN POBJECT_ATTRIBUTES ObjectAttributes, IN EVENT_TYPE EventType, IN BOOLEAN InitialState);NTSTATUS STDCALL NtOpenEvent(OUT PHANDLE EventHandle, IN ACCESS_MASK DesiredAccess, IN POBJECT_ATTRIBUTES ObjectAttributes);NTSTATUS STDCALL NtSetEvent(IN HANDLE EventHandle, OUT PLONG PreviousState);NTSTATUS STDCALL NtResetEvent(IN HANDLE EventHandle, OUT PLONG PreviousState);NTSTATUS STDCALL NtPulseEvent(IN HANDLE EventHandle, OUT PLONG PreviousState);#endif /* CONFIG_UNIFIED_KERNEL */#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -