⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 objwait.h

📁 该项目主要是将wingdows程序直接运行在linux上
💻 H
字号:
/* * objwait.h * * Copyright (C) 2006  Insigme Co., Ltd * * Authors:  * - Chenzhan Hu, Lixing Chu, Limin Jin, Liwei Zhou, Zhiqiang Jiao * * 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. */ /* * objwait.h: win32 wait table definition * Reference to Kernel-win32 code */#ifndef _OBJWAIT_H#define _OBJWAIT_H#include <linux/module.h>#include <linux/win32_object.h>#include "object.h"#ifdef CONFIG_UNIFIED_KERNEL#define STATUS_WAIT_0		((u_long) 0x00000000L)#define STATUS_ABANDONED_WAIT_0	((u_long) 0x00000080L)#define STATUS_TIMEOUT		((u_long) 0x00000102L)#define MAXIMUM_WAIT_OBJECTS	64#define WAIT_OBJECT_0		(STATUS_WAIT_0 + 0)#define WAIT_ABANDONED		(STATUS_ABANDONED_WAIT_0 + 0)#define WAIT_ABANDONED_0	(STATUS_ABANDONED_WAIT_0 + 0)#define WAIT_TIMEOUT		STATUS_TIMEOUT#define DECLARE_SINGLE_WAIT(VAR,OBJ) \	struct wait_table VAR = { \		&VAR.wt_entries[1], \		{{ __WAITQUEUE_INITIALIZER("InternalWait", current), \			 (OBJ), 0 }} \	}struct wait_table_entry {	/* note wte_wait must always be _first_ */	wait_queue_t	wte_wait;	/* link in queue waiting on object */	win32_object	*wte_obj;	/* object being waited upon */	int		wte_data;	/* object specific data */};struct wait_table {	struct wait_table_entry	*wt_last;	struct wait_table_entry	wt_entries[1];};extern int do_wait_for_objects(struct ethread *, struct wait_table *, long *);NTSTATUS STDCALL NtWaitForMultipleObjects(ULONG,PHANDLE,WAIT_TYPE,BOOLEAN,PLARGE_INTEGER);#endif /* CONFIG_UNIFIED_KERNEL */#endif /* _OBJWAIT_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -