您好,欢迎访问三七文档
当前位置:首页 > 机械/制造/汽车 > 汽车理论 > winring0-使用手册
What'sWinRing0WinRing0isahardwareaccesslibraryforWindows.FeaturesThislibraryallowsx86/x64Windowsapplicationstoaccess-I/Oport-MSR(Model-SpecificRegister)-PCIbusetc...CopyrightCopyright(c)2007-2009OpenLibSys.org.Allrightsreserved.mail:hiyohiyo@crystalmark.infoweb:[x86]7/2008/Vista/2003/XP/2000/NT4/Me/98[x64]7/2008/Vista/2003/XPSpecialThanks-habe(translationsupport&technicalassistance)-kashiwanomasahiro,PCIDebugLibraryforWin32(~kasiwano/)[ja]-YarivKaplan,WinIo()[en]-Patrick(patch)Copyright(C)OpenLibSys.org.Allrightsreserved.Page1ABCAmberCHMConverterTrialversion,().4.CallGetDllStatus()tocheckerror.5.Callthelibrary'sfunctions.6.CallDeinitializeOls().Reference:Load-TimeDynamicLinking(MSDN)Run-TimeDynamicLinking1.Add#includeOlsApiInit.hstatementtoyoursourcefile.2.CallInitOpenLibSys().3.CallGetDllStatus()tocheckerror.4.Callthelibrary'sfunctions.*5.CallDeinitOpenLibSys().*Ifyouwouldliketocallthelibrary'sfunctionsonothersourcefiles,youshouldadd#includeOlsApiInitExt.hstatementtothesourcefiles.Reference:Run-TimeDynamicLinking(MSDN)VisualC#2005/2008Seealsosampleapplication.1.PutOpenLibSys.csintoyourproject.2.AddusingOpenLibSys;statementtoyoursourcefile.3.CallGetStatus()andGetDllStatus()tocheckerror.4.Callthelibrary'sfunctions.*Supportedplatformtargetisx86,x64andAnyCPU.ButWinRing0doesnotsupportIA64.Copyright(C)OpenLibSys.org.Allrightsreserved.Page2ABCAmberCHMConverterTrialversion,(Requirement)SampleCodeC++RequiredVisualC++2005/2008StandardEditionorhigherbecauseofusingMFC.C#RequiredVisualC#2005/2008ExpressEditionorhigher.DLLRequiredVisualC++2005Standard/2008Express*Editionorhigher.orRequiredVisualC++2005ExpressEdition+PlatformSDK.-AddIncludeFilePathC:\ProgramFiles\MicrosoftPlatformSDK\Include-AddIncludeFilePathC:\ProgramFiles\MicrosoftPlatformSDK\Include\mfc-AddLibraryFilePathC:\ProgramFiles\MicrosoftPlatformSDK\Lib*VisualC++2008ExpressEditionYoushouldreplace#includefxres.h?by#includewindows.hinOlsDll.rc.SYS(NTDriver)RequiredWDK(WindowsDriverKits)1.GetWDKfromMSDN2.InstallWDK3.OpenBuildEnvironmentx86:Windows2000FreeBuildEnvironmentx64:WindowsVistaandWindowsServerLonghornx64FreeBuildEnvironmentcd(WinRing0)\source\dll\sys4.buildVxD(9xDriver)RequiredWindowsXPSP1DDK+WinMesupport1.GetWindowsXPSP1DDKfromMSDN2.InstallWindowsXPSP1DDKwithWinMesupport3.OpenWinMeFreeBuildEnvironment4.cd(WinRing0)\source\dll\vxd5.nmakeCopyright(C)OpenLibSys.org.Allrightsreserved.Page3ABCAmberCHMConverterTrialversion,(Win32/Win64)DataTypes.Reference:WindowsDataTypes(MSDN,en)ImportantMacros#defineTRUE1#defineFALSE0DataTypesDataTypeOSC/C++C#.NETFrameworkBOOLx86/x64intintSystem.Int32BYTEunsignedcharbyteSystem.ByteWORDunsignedshortushortSystem.UInt16DWORDunsignedintuintSystem.UInt32PBYTEunsignedchar*refbytePWORDunsignedshort*refushortPDWORDunsignedint*refuintVOIDvoidvoidSystem.VoidDWORD_PTRx86unsignedlongSystem.UIntPtrx64unsigned__int64Copyright(C)OpenLibSys.org.Allrightsreserved.Page4ABCAmberCHMConverterTrialversion,(c)2007-2009OpenLibSys.org.Allrightsreserved.Redistributionanduseinsourceandbinaryforms,withorwithoutmodification,arepermittedprovidedthatthefollowingconditionsaremet:1.Redistributionsofsourcecodemustretaintheabovecopyrightnotice,thislistofconditionsandthefollowingdisclaimer.2.Redistributionsinbinaryformmustreproducetheabovecopyrightnotice,thislistofconditionsandthefollowingdisclaimerinthedocumentationand/orothermaterialsprovidedwiththedistribution.THISSOFTWAREISPROVIDEDBYTHEAUTHOR``ASIS''ANDANYEXPRESSORIMPLIEDWARRANTIES,INCLUDING,BUTNOTLIMITEDTO,THEIMPLIEDWARRANTIESOFMERCHANTABILITYANDFITNESSFORAPARTICULARPURPOSEAREDISCLAIMED.INNOEVENTSHALLTHEAUTHORBELIABLEFORANYDIRECT,INDIRECT,INCIDENTAL,SPECIAL,EXEMPLARY,ORCONSEQUENTIALDAMAGES(INCLUDING,BUTNOTLIMITEDTO,PROCUREMENTOFSUBSTITUTEGOODSORSERVICES;LOSSOFUSE,DATA,ORPROFITS;ORBUSINESSINTERRUPTION)HOWEVERCAUSEDANDONANYTHEORYOFLIABILITY,WHETHERINCONTRACT,STRICTLIABILITY,ORTORT(INCLUDINGNEGLIGENCEOROTHERWISE)ARISINGINANYWAYOUTOFTHEUSEOFTHISSOFTWARE,EVENIFADVISEDOFTHEPOSSIBILITYOFSUCHDAMAGE.Copyright(C)OpenLibSys.org.Allrightsreserved.Page5ABCAmberCHMConverterTrialversion,[2009/5/27]oImprovedCPUIDsupport(x64)1.3.1[2009/5/24]oImprovedVisualStudio2008/2010supportoImprovedCPUIDsupport(x86)oAdded256x256icon1.3.0[2009/3/7]oChanged****ExAPIsto****TxAPIs(TmeansThread)o
本文标题:winring0-使用手册
链接地址:https://www.777doc.com/doc-5317296 .html