vb 获取计算机序列号,在VB中如何获取电脑主板序列号,请指导。听说A...-卓优商学问答...

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值