DIMM 3: 金士顿 DDR3 1333MHz 4GB
制造日期 2011 年 07 月
型号 7F98 99P5471-004.A01LF
序列号: 7A841636
这个是鲁大师获取的内存信息。。请问编程如何才能实现 ,获取这些信息!!!鲁大师又是怎么获取的哪??还有其它的硬件信息,都是怎么获取的??真心请教大牛们!

解决方案 »

  1.   

    http://msdn.microsoft.com/en-us/library/Aa394349
      

  2.   

    Win32_PhysicalMemory
     
      

  3.   

    本帖最后由 VisualEleven 于 2012-09-20 18:05:32 编辑
      

  4.   

    用smbus,基本上内存都在a0开始, a2 a4 a6 a8,读内存的SPD。
    然后根据内存资料自己分析出来
      

  5.   

    Win32_PhysicalMemory  也会显示内存频率的。有个字节 speed,请仔细看。
      

  6.   

    WMI,以前用路由信息就用这个的
    WMI例子
      

  7.   

    需要驱动啊。IO的驱动,然后你上网查下I2C 或者 SMBUS,然后写个函数,就可以读写内存的SPD信息了,还有注意不要往内存写值,不然会导致内存不工作了,麻烦。
      

  8.   

    不要往SPD写值,上面写错了,不好意思。
      

  9.   

    内存的频率是固有的。。DDR667 DDR800 等这些频率。。超频的话,可能有变!!
      

  10.   


    vtProp struct tagVARIANT tagVARIANT
    bVal 148 unsigned char
    boolVal -876 short
    bstrVal 0x15fc94 "\71151\72006\50605\55530" wchar_t *
    byref 0x15fc94 void *
    cVal -108 / 148 char
    cyVal union tagCY union tagCY
    date 1.8185198366873741e-307 double
    dblVal 1.8185198366873741e-307 double
    decVal struct tagDEC tagDEC
    fltVal 2.019153378e-039 float
    iVal -876 short
    intVal 1440916 int
    lVal 1440916 long
    llVal 18111705289981076 int64
    pRecInfo 0x405880 IRecordInfo *
    parray 0x15fc94 tagSAFEARRAY *
    pbVal "irt…" unsigned char *
    pboolVal 0x15fc94 short *
    pbstrVal 0x15fc94 wchar_t **
    pcVal "ir\006t\205" char *
    pcyVal 0x15fc94 union tagCY * union tagCY *
    pdate 0x15fc94 double *
    pdblVal 0x15fc94 double *
    pdecVal 0x15fc94 tagDEC *
    pdispVal 0x15fc94 IDispatch *
    pfltVal 0x15fc94 float *
    piVal 0x15fc94 short *
    pintVal 0x15fc94 int *
    plVal 0x15fc94 long *
    pllVal 0x15fc94 int64 *
    pparray 0x15fc94 tagSAFEARRAY **
    ppdispVal 0x15fc94 IDispatch **
    ppunkVal 0x15fc94 IUnknown **
    pscode 0x15fc94 long *
    puiVal 0x15fc94 unsigned short *
    puintVal 0x15fc94 unsigned int *
    pulVal 0x15fc94 unsigned long *
    pullVal 0x15fc94 unsigned int64 *
    punkVal 0x15fc94 IUnknown *
    pvRecord 0x15fc94 void *
    pvarVal 0x15fc94 tagVARIANT *
    scode 1440916 long
    uiVal 64660 unsigned short
    uintVal 1440916 unsigned int
    ulVal 1440916 unsigned long
    ullVal 4216960 unsigned int64
    vt 8 unsigned short
    wReserved1 0 unsigned short
    wReserved2 24560 unsigned short
    wReserved3 56 unsigned short
    这是10楼朋友给的代码。。获取 Win32_PhysicalMemory 的内容!!里面的内容都代表了啥。。谁能解释下!!还是获取的内存有错误!!
    在运行中 《wbemtest》通过这个查看的内容。。Win32_PhysicalMemory 里面的东西,里面都是NULL 。。获取不到信息!!
      

  11.   

    WMIC MEMORYCHIP >info.txt
    读取文件信息
      

  12.   

    Win32_PhysicalMemory ClassThe Win32_PhysicalMemory WMI class represents a physical memory device located on a computer system and available to the operating system.The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties. Properties are listed in alphabetic order, not MOF order.
      

  13.   

    VC怎么实现对内存 类型的判断,像DDR1、DDR2.