Jump to content
Sign in to follow this  
randeep

_WinAPI_GlobalMemStatus()

Recommended Posts

randeep

hello all

pls tell me how to use #Include _WinAPI_GlobalMemStatus(), i am using this in the way below:

#Include <WinAPI.au3>
local $a
$a = _WinAPI_GlobalMemStatus()
msgbox (0, "", $a)

but the output is nothing. :) . i want to have the total memory available on the computer.

pls help.......

Edited by randeep

[font="Palatino Linotype"]Randeep Singh[/font][sub][/sub]

Share this post


Link to post
Share on other sites
trancexx

It's a bug. You can submit it.

The problem is wrong function that gets called from kernel32. Non-existing 'GlobalMemStatus' is called.

It should be 'GlobalMemoryStatus'.

edit:

Just make sure to correct your example. Return value is an array.

Edited by trancexx

♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites
randeep

@trancexx

thanx for replying. is there any another way to get the total memory of the computer?????

It's a bug. You can submit it.

The problem is wrong function that gets called from kernel32. Non-existing 'GlobalMemStatus' is called.

It should be 'GlobalMemoryStatus'.

edit:

Just make sure to correct your example. Return value is an array.


[font="Palatino Linotype"]Randeep Singh[/font][sub][/sub]

Share this post


Link to post
Share on other sites
trancexx

@trancexx

thanx for replying. is there any another way to get the total memory of the computer?????

The obviousness of the answer makes your question really confusing.

I refuse to answer that.

That makes me a bad person? :)

Edited by trancexx

♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites
PsaltyDS

@trancexx

thanx for replying. is there any another way to get the total memory of the computer?????

Another case of dog eats help file... what happens if you go to the index tab of the help file and enter "mem"? What's the very first function highlighted?

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.