亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? pm.c

?? uboot for K9 AT91RM9200 學(xué)習(xí)板
?? C
?? 第 1 頁(yè) / 共 4 頁(yè)
字號(hào):
/******************************************************************************                   SciTech OS Portability Manager Library**  ========================================================================**    The contents of this file are subject to the SciTech MGL Public*    License Version 1.0 (the "License"); you may not use this file*    except in compliance with the License. You may obtain a copy of*    the License at http://www.scitechsoft.com/mgl-license.txt**    Software distributed under the License is distributed on an*    "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or*    implied. See the License for the specific language governing*    rights and limitations under the License.**    The Original Code is Copyright (C) 1991-1998 SciTech Software, Inc.**    The Initial Developer of the Original Code is SciTech Software, Inc.*    All Rights Reserved.**  ========================================================================** Language:     ANSI C* Environment:  Win32** Description:  Implementation for the OS Portability Manager Library, which*               contains functions to implement OS specific services in a*               generic, cross platform API. Porting the OS Portability*               Manager library is the first step to porting any SciTech*               products to a new platform.*****************************************************************************/#define WIN32_LEAN_AND_MEAN#define STRICT#include <windows.h>#include <mmsystem.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <direct.h>#include "pmapi.h"#include "drvlib/os/os.h"#include "pm_help.h"/*--------------------------- Global variables ----------------------------*/ibool           _PM_haveWinNT;      /* True if we are running on NT     */static uint     VESABuf_len = 1024; /* Length of the VESABuf buffer     */static void     *VESABuf_ptr = NULL;/* Near pointer to VESABuf          */static uint     VESABuf_rseg;       /* Real mode segment of VESABuf     */static uint     VESABuf_roff;       /* Real mode offset of VESABuf      */HANDLE          _PM_hDevice = NULL; /* Handle to Win32 VxD              */static ibool    inited = false;     /* Flags if we are initialised      */static void     (PMAPIP fatalErrorCleanup)(void) = NULL;static char *szMachineNameKey   = "System\\CurrentControlSet\\control\\ComputerName\\ComputerName";static char *szMachineNameKeyNT = "System\\CurrentControlSet\\control\\ComputerName\\ActiveComputerName";static char *szMachineName      = "ComputerName";/*----------------------------- Implementation ----------------------------*//* Macro to check for a valid, loaded version of PMHELP. We check this * on demand when we need these services rather than when PM_init() is * called because if we are running on DirectDraw we don't need PMHELP.VXD. */#define CHECK_FOR_PMHELP()                                                  \{                                                                           \    if (_PM_hDevice == INVALID_HANDLE_VALUE)                                \	if (_PM_haveWinNT)                                                  \	    PM_fatalError("Unable to connect to PMHELP.SYS or SDDHELP.SYS!"); \	else                                                                  \	    PM_fatalError("Unable to connect to PMHELP.VXD or SDDHELP.VXD!"); \}/****************************************************************************REMARKS:Initialise the PM library and connect to our helper device driver. If wecannot connect to our helper device driver, we bail out with an errormessage. Our Windows 9x VxD is dynamically loadable, so it can be loadedafter the system has started.****************************************************************************/void PMAPI PM_init(void){    DWORD   inBuf[1];   /* Buffer to receive data from VxD  */    DWORD   outBuf[1];  /* Buffer to receive data from VxD  */    DWORD   count;      /* Count of bytes returned from VxD */    char    cntPath[PM_MAX_PATH];    char    *env;    /* Create a file handle for the static VxD if possible, otherwise     * dynamically load the PMHELP helper VxD. Note that if an old version     * of SDD is loaded, we use the PMHELP VxD instead.     */    if (!inited) {	/* Determine if we are running under Windows NT or not and	 * set the global OS type variable.	 */	_PM_haveWinNT = false;	if ((GetVersion() & 0x80000000UL) == 0)	    _PM_haveWinNT = true;	___drv_os_type = (_PM_haveWinNT) ? _OS_WINNT : _OS_WIN95;	/* Now try to connect to SDDHELP.VXD or SDDHELP.SYS */	_PM_hDevice = CreateFile(SDDHELP_MODULE_PATH, 0,0,0, CREATE_NEW, FILE_FLAG_DELETE_ON_CLOSE, 0);	if (_PM_hDevice != INVALID_HANDLE_VALUE) {	    if (!DeviceIoControl(_PM_hDevice, PMHELP_GETVER32, NULL, 0,		    outBuf, sizeof(outBuf), &count, NULL) || outBuf[0] < PMHELP_VERSION) {		/* Old version of SDDHELP loaded, so use PMHELP instead */		CloseHandle(_PM_hDevice);		_PM_hDevice = INVALID_HANDLE_VALUE;		}	    }	if (_PM_hDevice == INVALID_HANDLE_VALUE) {	    /* First try to see if there is a currently loaded PMHELP driver.	     * This is usually the case when we are running under Windows NT/2K.	     */	    _PM_hDevice = CreateFile(PMHELP_MODULE_PATH, 0,0,0, CREATE_NEW, FILE_FLAG_DELETE_ON_CLOSE, 0);	    if (_PM_hDevice == INVALID_HANDLE_VALUE) {		/* The driver was not staticly loaded, so try creating a file handle		 * to a dynamic version of the VxD if possible. Note that on WinNT/2K we		 * cannot support dynamically loading the drivers.		 */		_PM_hDevice = CreateFile(PMHELP_VXD_PATH, 0,0,0, CREATE_NEW, FILE_FLAG_DELETE_ON_CLOSE, 0);		}	    }	if (_PM_hDevice != INVALID_HANDLE_VALUE) {	    /* Call the driver to determine the version number */	    if (!DeviceIoControl(_PM_hDevice, PMHELP_GETVER32, inBuf, sizeof(inBuf),		    outBuf, sizeof(outBuf), &count, NULL) || outBuf[0] < PMHELP_VERSION) {		if (_PM_haveWinNT)		    PM_fatalError("Older version of PMHELP.SYS found!");		else		    PM_fatalError("Older version of PMHELP.VXD found!");		}	    /* Now set the current path inside the VxD so it knows what the	     * current directory is for loading Nucleus drivers.	     */	    inBuf[0] = (ulong)PM_getCurrentPath(cntPath,sizeof(cntPath));	    if (!DeviceIoControl(_PM_hDevice, PMHELP_SETCNTPATH32, inBuf, sizeof(inBuf), outBuf, sizeof(outBuf), &count, NULL))		PM_fatalError("Unable to set VxD current path!");	    /* Now pass down the NUCLEUS_PATH environment variable to the device	     * driver so it can use this value if it is found.	     */	    if ((env = getenv("NUCLEUS_PATH")) != NULL) {		inBuf[0] = (ulong)env;		if (!DeviceIoControl(_PM_hDevice, PMHELP_SETNUCLEUSPATH32, inBuf, sizeof(inBuf), outBuf, sizeof(outBuf), &count, NULL))		    PM_fatalError("Unable to set VxD Nucleus path!");		}	    /* Enable IOPL for ring-3 code by default if driver is present */	    if (_PM_haveWinNT)		PM_setIOPL(3);	    }	/* Indicate that we have been initialised */	inited = true;	}}/****************************************************************************REMARKS:We do have BIOS access under Windows 9x, but not under Windows NT.****************************************************************************/int PMAPI PM_setIOPL(    int iopl){    DWORD       inBuf[1];   /* Buffer to receive data from VxD  */    DWORD       outBuf[1];  /* Buffer to receive data from VxD  */    DWORD       count;      /* Count of bytes returned from VxD */    static int  cntIOPL = 0;    int         oldIOPL = cntIOPL;    /* Enable I/O by adjusting the I/O permissions map on Windows NT */    if (_PM_haveWinNT) {	CHECK_FOR_PMHELP();	if (iopl == 3)	    DeviceIoControl(_PM_hDevice, PMHELP_ENABLERING3IOPL, inBuf, sizeof(inBuf),outBuf, sizeof(outBuf), &count, NULL);	else	    DeviceIoControl(_PM_hDevice, PMHELP_DISABLERING3IOPL, inBuf, sizeof(inBuf),outBuf, sizeof(outBuf), &count, NULL);	cntIOPL = iopl;	return oldIOPL;	}    /* We always have IOPL on Windows 9x */    return 3;}/****************************************************************************REMARKS:We do have BIOS access under Windows 9x, but not under Windows NT.****************************************************************************/ibool PMAPI PM_haveBIOSAccess(void){    if (PM_getOSType() == _OS_WINNT)	return false;    else	return _PM_hDevice != INVALID_HANDLE_VALUE;}/****************************************************************************REMARKS:Return the operating system type identifier.****************************************************************************/long PMAPI PM_getOSType(void){    if ((GetVersion() & 0x80000000UL) == 0)	return ___drv_os_type = _OS_WINNT;    else	return ___drv_os_type = _OS_WIN95;}/****************************************************************************REMARKS:Return the runtime type identifier.****************************************************************************/int PMAPI PM_getModeType(void){    return PM_386;}/****************************************************************************REMARKS:Add a file directory separator to the end of the filename.****************************************************************************/void PMAPI PM_backslash(    char *s){    uint pos = strlen(s);    if (s[pos-1] != '\\') {	s[pos] = '\\';	s[pos+1] = '\0';	}}/****************************************************************************REMARKS:Add a user defined PM_fatalError cleanup function.****************************************************************************/void PMAPI PM_setFatalErrorCleanup(    void (PMAPIP cleanup)(void)){    fatalErrorCleanup = cleanup;}/****************************************************************************REMARKS:Report a fatal error condition and halt the program.****************************************************************************/void PMAPI PM_fatalError(    const char *msg){    if (fatalErrorCleanup)	fatalErrorCleanup();    MessageBox(NULL,msg,"Fatal Error!", MB_ICONEXCLAMATION);    exit(1);}/****************************************************************************REMARKS:Allocate the real mode VESA transfer buffer for communicating with the BIOS.****************************************************************************/void * PMAPI PM_getVESABuf(    uint *len,    uint *rseg,    uint *roff){    DWORD   outBuf[4];  /* Buffer to receive data from VxD  */    DWORD   count;      /* Count of bytes returned from VxD */    /* We require the helper VxD to be loaded staticly in order to support     * the VESA transfer buffer. We do not support dynamically allocating     * real mode memory buffers from Win32 programs (we need a 16-bit DLL     * for this, and Windows 9x becomes very unstable if you free the     * memory blocks out of order).     */    if (!inited)	PM_init();    if (!VESABuf_ptr) {	CHECK_FOR_PMHELP();	if (DeviceIoControl(_PM_hDevice, PMHELP_GETVESABUF32, NULL, 0,		outBuf, sizeof(outBuf), &count, NULL)) {	    if (!outBuf[0])		return NULL;	    VESABuf_ptr = (void*)outBuf[0];	    VESABuf_len = outBuf[1];	    VESABuf_rseg = outBuf[2];	    VESABuf_roff = outBuf[3];	    }	}    *len = VESABuf_len;    *rseg = VESABuf_rseg;    *roff = VESABuf_roff;    return VESABuf_ptr;}/****************************************************************************REMARKS:Check if a key has been pressed.****************************************************************************/int PMAPI PM_kbhit(void){    /* Not used in Windows */    return true;}/****************************************************************************REMARKS:Wait for and return the next keypress.****************************************************************************/int PMAPI PM_getch(void){    /* Not used in Windows */    return 0xD;}/****************************************************************************REMARKS:Set the location of the OS console cursor.****************************************************************************/void PM_setOSCursorLocation(    int x,    int y){    /* Nothing to do for Windows */    (void)x;    (void)y;}/****************************************************************************REMARKS:Set the width of the OS console.****************************************************************************/void PM_setOSScreenWidth(    int width,    int height){    /* Nothing to do for Windows */    (void)width;    (void)height;}/****************************************************************************REMARKS:Set the real time clock handler (used for software stereo modes).****************************************************************************/ibool PMAPI PM_setRealTimeClockHandler(    PM_intHandler ih,    int frequency){    /* We do not support this from Win32 programs. Rather the VxD handles     * this stuff it will take care of hooking the stereo flip functions at     * the VxD level.     */    (void)ih;    (void)frequency;    return false;}/****************************************************************************REMARKS:

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本高清不卡视频| 久久精品国产澳门| 一本色道a无线码一区v| 亚洲欧洲无码一区二区三区| 99re视频这里只有精品| 艳妇臀荡乳欲伦亚洲一区| 色激情天天射综合网| 亚洲成av人片在线观看无码| 69堂成人精品免费视频| 韩国精品免费视频| 中文字幕在线观看一区| 欧美视频第二页| 激情六月婷婷综合| 亚洲视频精选在线| 日韩一区二区三区电影| 国产成人三级在线观看| 亚洲欧洲综合另类在线| 91精品中文字幕一区二区三区| 六月丁香综合在线视频| 中文字幕在线不卡| 91精品国产免费| av一区二区三区| 日韩国产欧美在线播放| 国产目拍亚洲精品99久久精品| 91在线观看免费视频| 久久精品99久久久| 亚洲人成人一区二区在线观看| 日韩午夜精品电影| 91久久精品午夜一区二区| 久久99国产精品免费网站| 依依成人综合视频| 久久婷婷国产综合精品青草| 欧美亚洲一区二区在线观看| 国产传媒欧美日韩成人| 亚洲18色成人| 中文字幕制服丝袜成人av| 欧美va在线播放| 在线日韩一区二区| 高清shemale亚洲人妖| 日本欧美在线观看| 亚洲精选在线视频| 国产三级久久久| 欧美成人国产一区二区| 欧美色手机在线观看| 国产成人鲁色资源国产91色综| 午夜电影网亚洲视频| 亚洲视频电影在线| 国产精品色一区二区三区| 日韩欧美精品三级| 7878成人国产在线观看| 欧美伊人精品成人久久综合97 | 国产精品国产三级国产aⅴ入口 | 久久精品一级爱片| 91精品国产一区二区人妖| 在线欧美日韩国产| 99国产精品视频免费观看| 国产麻豆91精品| 麻豆极品一区二区三区| 亚洲成av人片在线观看| 亚洲精品国产第一综合99久久| 中文一区二区在线观看| 欧美激情一区二区三区四区| 久久嫩草精品久久久久| 26uuu欧美| 久久嫩草精品久久久精品一| 欧美xxxx老人做受| 欧美精品一区二区久久婷婷| 精品处破学生在线二十三| 日韩女优制服丝袜电影| 日韩欧美资源站| 日韩亚洲电影在线| 日韩欧美色综合| 精品国产一区二区三区av性色 | 51精品国自产在线| 欧美精品一二三四| 4438亚洲最大| 精品欧美乱码久久久久久1区2区| 日韩欧美一区二区免费| 精品蜜桃在线看| 国产亚洲欧洲997久久综合| 欧美激情艳妇裸体舞| 国产精品你懂的在线欣赏| 国产精品久久一级| 一区二区在线电影| 婷婷亚洲久悠悠色悠在线播放| 青娱乐精品视频在线| 极品尤物av久久免费看| 国产91综合一区在线观看| 成人精品高清在线| 在线亚洲免费视频| 欧美一区二区三区日韩视频| 精品福利一二区| 亚洲欧洲精品天堂一级 | 蜜桃精品视频在线| 国产麻豆精品在线观看| 91亚洲永久精品| 欧美男女性生活在线直播观看| 日韩欧美色综合网站| 国产精品亲子伦对白| 亚洲综合色视频| 久久国产生活片100| 成人影视亚洲图片在线| 欧美性大战久久久久久久| 911精品国产一区二区在线| 久久一留热品黄| 亚洲少妇中出一区| 久久se精品一区精品二区| 99视频一区二区| 91精品国产福利| 中文字幕亚洲在| 美脚の诱脚舐め脚责91| 99在线精品观看| 欧美岛国在线观看| 亚洲免费高清视频在线| 久久99最新地址| 欧美在线短视频| 国产亚洲一二三区| 午夜精品久久久久久久久久| 国产成人亚洲综合a∨猫咪| 欧美日韩精品三区| 日本一区二区三区四区在线视频| 亚洲国产乱码最新视频| 成人免费看片app下载| 欧美精品v日韩精品v韩国精品v| 中文字幕乱码久久午夜不卡| 日韩经典一区二区| 色综合久久中文字幕综合网| 久久久久久日产精品| 亚洲风情在线资源站| av爱爱亚洲一区| 精品国产人成亚洲区| 日韩高清不卡一区二区三区| 成人黄色777网| 精品福利二区三区| 日韩精品午夜视频| 色哟哟精品一区| 中文字幕不卡在线播放| 国产一区二区三区在线观看精品 | 日韩视频一区二区三区在线播放| 亚洲丝袜另类动漫二区| 国产白丝精品91爽爽久久| 欧美一区国产二区| 亚洲成a人在线观看| 91福利国产精品| 中文字幕一区二区三| 国产不卡高清在线观看视频| 日韩情涩欧美日韩视频| 天天操天天色综合| 欧美在线看片a免费观看| 亚洲欧洲中文日韩久久av乱码| 高清在线观看日韩| 欧美国产日韩一二三区| 国产精品456露脸| 欧美精品一区二区精品网| 乱中年女人伦av一区二区| 欧美一二三四在线| 日本午夜一本久久久综合| 欧美精品xxxxbbbb| 日本女人一区二区三区| 欧美一区午夜视频在线观看| 丝袜美腿一区二区三区| 7799精品视频| 日本在线播放一区二区三区| 欧美裸体一区二区三区| 日本成人在线看| 欧美一区二区高清| 久久丁香综合五月国产三级网站| 日韩一区二区在线观看视频| 免费成人在线播放| 欧美成人一区二区三区| 国产一区欧美日韩| 中文在线免费一区三区高中清不卡| 成人手机电影网| 伊人一区二区三区| 欧美日韩三级在线| 免费成人在线影院| 国产亚洲精品bt天堂精选| 成人av片在线观看| 亚洲素人一区二区| 欧美区在线观看| 精品一区二区三区免费毛片爱 | 精品少妇一区二区三区 | 亚洲人成亚洲人成在线观看图片| 99精品视频中文字幕| 一区二区三区日韩在线观看| 欧美精品成人一区二区三区四区| 青草国产精品久久久久久| 精品盗摄一区二区三区| 成人免费视频视频| 亚洲成人av一区| 欧美精品一区二区三区在线播放 | 亚洲电影一级片| 日韩一区二区三区视频在线| 国产精品一区二区在线播放| 亚洲人xxxx| 欧美白人最猛性xxxxx69交| 成人av在线资源| 亚洲成a人v欧美综合天堂下载| 久久综合视频网| 在线免费观看一区|