portable.h

来自「WinAoE is an open source GPLv3 driver fo」· C头文件 代码 · 共 41 行

H
41
字号
/*
  Copyright 2006-2008, V.
  For contact information, see http://winaoe.org/

  This file is part of WinAoE.

  WinAoE 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 3 of the License, or
  (at your option) any later version.

  WinAoE is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with WinAoE.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _PORTABLE_H
#define _PORTABLE_H

#define NDIS50 1
#define OBJ_KERNEL_HANDLE 0x00000200L
#ifdef _MSC_VER
#define STDCALL
#define __attribute__(x)
typedef unsigned int UINT, *PUINT;
#endif

#if _WIN32_WINNT < 0x0502
#define SCSIOP_READ16 0x88
#define SCSIOP_WRITE16 0x8a
#define SCSIOP_VERIFY16 0x8f
#define SCSIOP_READ_CAPACITY16 0x9e
#endif

#endif

⌨️ 快捷键说明

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