Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8745099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:57:05+00:00 2026-06-13T11:57:05+00:00

How to retrieve number of memory slots my computer have using C-language not through

  • 0

How to retrieve number of memory slots my computer have using C-language not through WMI?
When i tried retrieving number of memory slots using WMI though command prompt,

C:>wmic
wmic:root\cli> path Win32_PhysicalMemoryArray get MemoryDevices

(http://msdn.microsoft.com/en-us/library/aa394348%28v=vs.85%29.aspx)

But it does not give me correct number of memory slots. I have only 2 memory slots but it give me 4.

and what is the difference between memory array, Memory slots and memory sockets? Because in the msdn(Link provided above) it state that MemoryDevices is the “Number of physical slots or sockets available in this memory array”.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T11:57:06+00:00Added an answer on June 13, 2026 at 11:57 am

    Using WMI:

    wmic:root\cli>memorychip get *
    BankLabel  Capacity    Caption          CreationClassName     DataWidth  Description      DeviceLocator   FormFactor  HotSwappable  InstallDate  InterleaveDataDepth  InterleavePosition  Manufacturer  MemoryType  Model  Name             OtherIdentifyingInfo  PartNumber        PositionInRow  PoweredOn  Removable  Replaceable  SerialNumber  SKU  Speed  Status  Tag                TotalWidth  TypeDetail  Version
    BANK 0     4294967296  Physical Memory  Win32_PhysicalMemory  64         Physical Memory  ChannelA-DIMM0  12                                     0                    0                   Samsung       0                  Physical Memory                        M47132156CH0-CH9  1                                                 CAC74CFC           1333           Physical Memory 0  64          128
    
    wmic:root\cli>
    

    Follow this link to use it in your C/C++ application with native win32 API calls.

    Also this link helps you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following query that retrieve the number of users per country; SELECT
I am making an app in which I have to retrieve the phone number
I have the following code through which i am able to retrieve phone numbers.
I'm looking to retrieve the serial number from a USB memory stick on windows
Using Facebook graph API, I am trying to retrieve number of mutual friends 2
I have a string with a number inside and I want to retrieve that
Using redis , there are a number of commands to retrieve entire data structures
Hi How do I retrieve the number from the following string, {number:100,data:[test]} The number
How can I store and retrieve the number 2**10000 in a binary file in
I'm trying to make a quiz application and I need to retrieve n number

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.