VB声明DeclareSubGetSystemInfoLib"kernel32"Alias"GetSystemInfo"lpSystemInfoAsSYSTEM_INFO说明在一个SYSTEM_INFO结构中载入与底层硬件平台有关的信息参数表参数类型及说明lpSystemInfoSYSTEM_INFO,指定一个结构,用于装载适当的系统信息类型定义TypeSYSTEM_INFO''36BytesdwOemIDAsLongdwPageSizeAsLonglpMinimumApplicationAddressAsLonglpMaximumApplicationAddressAsLongdwActiveProcessorMaskAsLongdwNumberOrfProcessorsAsLongdwProcessorTypeAsLongdwAllocationGranularityAsLongwProcessorLevelAsIntegerwProcessorRevisionAsIntegerEndType说明Thisstructurecontainsinformationregardingthecurrentcomputersystem.SYSTEM_INFO:字段表字段类型与说明dwOemIDLong,Systemprocessorused.InWindows95,thisvalueisalwayssettozeroPROCESSOR_ARCHITECTURE_INTEL.InWindowsNT,thisvaluemaybeoneofthefollowing:PROCESSOR_ARCHITECTURE_INTEL,PROCESSOR_ARCHITECTURE_MIPS,PROCESSOR_ARCHITECTURE_ALPHA,PROCESSOR_ARCHITECTURE_PPCdwPageSizeLong,Pagesizeused.Alsospecifiesthegranularityofpageprotectionandcommitment.lpMinimumApplicationAddressLong,ContainsthelowestmemoryaddressthatapplicationsanddynamiclinklibrariesDLLscanaccess.lpMaximumApplicationAddressLong,ContainsthehighestmemoryaddressthatapplicationsandDLLscanaccess.dwActiveProcessorMaskLong,Containsamaskrepresentingthesetofprocessorsavailableonthesystem.Processorzeroisindicatedbybitzerobeingset.dwNumberOrfProcessorsLong,Thenumberofprocessorsinthissystem.dwProcessorTypeLong,Obsolete,butmaintainedforbackwardcompatibility.Canbeoneofthefollowingvalues:PROCESSOR_INTEL_386,PROCESSOR_INTEL_486,PROCESSOR_INTEL_PENTIUM.ThefollowingarevalidonWindowsNTsystemsonly:PROCESSOR_MIPS_R4000,PROCESSOR_ALPHA_21046dwAllocationGranularityLong,Containstheallocationgranularityusedtoallocatememory.Thisvalueisusuallysetto64K.wProcessorLevelInteger,Specifiestheprocessorlevel.ThisvaluedependsonthePROCESSOR_ARCHITECTURE_*valueinthedwOemIDfield.ForPROCESSOR_ARCHITECTURE_INTEL,thevalidvaluesarecurrently:3fora386CPU,4fora486CPU,and5foraPentium.wProcessorRevisionInteger,Specifiestheprocessorrevision.ThisvaluedependsonthePROCESSOR_ARCHITECTURE_*valueinthedwOemIDfield。
龙帮品2019-12-21 18:09:19