As I recall, the plugin interface is cumbersome.  If you'll tell me, in detail, 
what needs to be done, I might do it.  How do you get a plugin to load (a 
script ... right?).  How would I interface with *info?

 - Vince

--- In [email protected], "brucexs" <bswit...@...> wrote:
>
> 
> Internally, there is a function that returns a 32 bit result that I'd have to 
> redesign a bit.  
> 
> Since you have the code, why not just make it a plugin?
> 
> 
> 
> --- In [email protected], "qzzyyx" <BlackHole@> wrote:
> >
> > 
> > 
> > --- In [email protected], "Sheri" <sherip99@> wrote:
> > > Didn't you read the discussion around that post?
> > > 
> > > <http://tech.groups.yahoo.com/group/power-pro/message/33075>
> > 
> > The thread seemed too big.  But thanks for the link to Bruce's post.  I 
> > still don't get it.  GlobalMemoryStatusEx() (where available) works just 
> > fine.  Why can't PowerPro use it?  Here's a test result on a machine with 
> > 3GB (and a little code below).
> > 
> > g:\projects\gmstest\release> gmstest.exe
> > 3069 MB
> > 2521 MB
> > 
> > HMODULE hKernel32 = GetModuleHandle(L"KERNEL32.DLL");
> > GMSExTYPE GMSEx = (GMSExTYPE) GetProcAddress(hKernel32, 
> > "GlobalMemoryStatusEx");
> > if ( GMSEx != NULL )
> > {
> >     MEMORYSTATUSEX ms = {sizeof(MEMORYSTATUSEX), 0};
> >     GlobalMemoryStatusEx(&ms);
> >     wprintf(L"%I64u MB\n", ms.ullTotalPhys / (1<<20));
> >     wprintf(L"%I64u MB\n", ms.ullAvailPhys / (1<<20));
> > }
> > else
> > {
> >     wprintf(L"Do it the old way.\n");
> > }
> >
>


Reply via email to