| View previous topic :: View next topic |
| Author |
Message |
ggirf14
Joined: 01 Nov 2005 Posts: 108 Location: Ottawa
|
Posted: Thu Sep 10, 2009 3:57 pm Post subject: actual memory sticks on the mother board |
|
|
| Is there a way to find information about actual memory sticks on the mother board? I am looking for size, type, and speed (I already have total RAM) |
|
| Back to top |
|
 |
AnttiV
Joined: 14 Aug 2009 Posts: 237 Location: Finland
|
Posted: Thu Sep 10, 2009 10:30 pm Post subject: |
|
|
| yes, but you probably need to use DllCall for that. Unless you can find the information in Windows Registry. |
|
| Back to top |
|
 |
ggirf14
Joined: 01 Nov 2005 Posts: 108 Location: Ottawa
|
Posted: Fri Sep 11, 2009 1:08 pm Post subject: |
|
|
| I agree but my knowlege on dll calls is VERY limited. I was hoping someone would be able to provide information about this. |
|
| Back to top |
|
 |
ggirf14
Joined: 01 Nov 2005 Posts: 108 Location: Ottawa
|
Posted: Fri Sep 11, 2009 1:10 pm Post subject: |
|
|
| The very basic information I would need is : how many sticks. any additional ram information would be gravy. |
|
| Back to top |
|
 |
randallf
Joined: 06 Jul 2009 Posts: 678
|
Posted: Fri Sep 11, 2009 1:17 pm Post subject: |
|
|
WINMSD.EXE might be able to tell you this... and even work well with AHK...
| Quote: | You can also execute the WINMSDP.EXE program from the command line. If you run the utility, the following menu appears:
C:\winnt\system32>winmsdp.exe
/A Print All Settings
/O OsVer
/D Drives
/S Services
/R Drivers
/M Memory
/I Interrupt Resources
/Y Memory Resources
/P Port Resources
/U DMA Resources
/W Hardware
/E Environment
/N Network |
sauce: http://support.microsoft.com/kb/102468 |
|
| Back to top |
|
 |
aaffe
Joined: 17 May 2007 Posts: 1002 Location: Germany - Deutschland
|
|
| Back to top |
|
 |
ggirf14
Joined: 01 Nov 2005 Posts: 108 Location: Ottawa
|
Posted: Fri Sep 11, 2009 2:55 pm Post subject: |
|
|
| Thanks randallf for WINMSD.EXE but it it from NT and A search fo C:\ did not find it on my Win XP sp2. but this lead me to look into msinfo32.exe. There is a few places where there seems to be hex format information that I cannot make sense of. |
|
| Back to top |
|
 |
Sean
Joined: 12 Feb 2007 Posts: 2462
|
Posted: Fri Sep 11, 2009 3:07 pm Post subject: |
|
|
You can use WMI. For example, through WMI COM
| Code: | | WMI_Query("","Win32_PhysicalMemory") |
|
|
| Back to top |
|
 |
ggirf14
Joined: 01 Nov 2005 Posts: 108 Location: Ottawa
|
Posted: Fri Sep 11, 2009 4:30 pm Post subject: |
|
|
| Thanks Sean for the reply but I dont understand how to use the information. Read topic16632.htm [WMI COM] l I downloadded COM.ahk, IE.ahk, read the associated .txt files ran both ahk files tried to understand them by reading with txt editor. Could you provide a working example or what should I read? |
|
| Back to top |
|
 |
Sean
Joined: 12 Feb 2007 Posts: 2462
|
Posted: Fri Sep 11, 2009 5:32 pm Post subject: |
|
|
I assume you know the concept of Standard Library in AHK. Put COM.ahk into Lib subfolder or just use #Include, then run the following code.
| Code: | COM_Init()
WMI_Query("","Win32_PhysicalMemory")
; MsgBox, % "<Capacity>`n" . WMI_Query("","Win32_PhysicalMemory","Capacity")
COM_Term()
Return
WMI_Query(Namespace, Class, Property = "")
{
psvc := COM_GetObject("winmgmts:{impersonationLevel=impersonate}!" . Namespace)
pset := COM_Invoke(psvc, "ExecQuery", "SELECT * FROM " . Class)
penm := COM_Invoke(pset, "_NewEnum")
Loop, % COM_Invoke(pset, "Count")
If COM_Enumerate(penm,pobj)=0
{
If Not Property
MsgBox % COM_Invoke(pobj, "GetObjectText_")
Else sResult.=COM_Invoke(pobj, Property) . "`n"
COM_Release(pobj)
}
COM_Release(penm)
COM_Release(pset)
COM_Release(psvc)
Return sResult
}
|
|
|
| Back to top |
|
 |
ggirf14
Joined: 01 Nov 2005 Posts: 108 Location: Ottawa
|
Posted: Fri Sep 11, 2009 6:14 pm Post subject: |
|
|
Thank you!
Who hoo!
I was not aware of the concept of Standard Library. Thank you for the the missing link.
 |
|
| Back to top |
|
 |
randallf
Joined: 06 Jul 2009 Posts: 678
|
Posted: Fri Sep 11, 2009 6:23 pm Post subject: |
|
|
| ggirf14 wrote: | | Thanks randallf for WINMSD.EXE but it it from NT and A search fo C:\ did not find it on my Win XP sp2. but this lead me to look into msinfo32.exe. There is a few places where there seems to be hex format information that I cannot make sense of. |
Really? I am on XP SP2 and it's just start > run > winmsd
It's possible that i intentionally downloaded it at one point but I dont recall doing it, maybe it's a different version too |
|
| Back to top |
|
 |
ggirf14
Joined: 01 Nov 2005 Posts: 108 Location: Ottawa
|
Posted: Fri Sep 11, 2009 7:10 pm Post subject: |
|
|
Randallf:
| Quote: | | It's possible that i intentionally downloaded it at one point but I dont recall doing it, maybe it's a different version too |
See the following URL: http://msdn.microsoft.com/en-us/library/aa392726.aspx |
|
| Back to top |
|
 |
|