PERFORMANCE_INFORMATION for PureBasic?

Just starting out? Need help? Post your questions and find answers here.
User avatar
Mok
User
User
Posts: 11
Joined: Thu Sep 30, 2010 3:36 pm

PERFORMANCE_INFORMATION for PureBasic?

Post by Mok »

Hey there!
There is a PSAPI Structure called PERFORMANCE_INFORMATION (which can be found in psapi.dll), but since there is no PureBasic version of this structure, I wonder how to convert it.

Code: Select all

typedef struct _PERFORMANCE_INFORMATION {
  DWORD  cb;
  SIZE_T CommitTotal;
  SIZE_T CommitLimit;
  SIZE_T CommitPeak;
  SIZE_T PhysicalTotal;
  SIZE_T PhysicalAvailable;
  SIZE_T SystemCache;
  SIZE_T KernelTotal;
  SIZE_T KernelPaged;
  SIZE_T KernelNonpaged;
  SIZE_T PageSize;
  DWORD  HandleCount;
  DWORD  ProcessCount;
  DWORD  ThreadCount;
} PERFORMANCE_INFORMATION, *PPERFORMANCE_INFORMATION;
I don't know what to di with size_t...

Cheers, Mok.
User avatar
hallodri
Enthusiast
Enthusiast
Posts: 208
Joined: Tue Nov 08, 2005 7:59 am
Location: Germany
Contact:

Re: PERFORMANCE_INFORMATION for PureBasic?

Post by hallodri »

Code: Select all

Structure PERFORMANCE_INFORMATION
  cb.l
  CommitTotal.i
  CommitLimit.i
  CommitPeak.i
  PhysicalTotal.i
  PhysicalAvailable.i
  SystemCache.i
  KernelTotal.i
  KernelPaged.i
  KernelNonpaged.i
  PageSize.i
  HandleCount.l
  ProcessCount.l
  ThreadCount.l
EndStructure
User avatar
Mok
User
User
Posts: 11
Joined: Thu Sep 30, 2010 3:36 pm

Re: PERFORMANCE_INFORMATION for PureBasic?

Post by Mok »

@hallodri: Thank you :wink: kenn' ich dich vom deutschen Forum?
User avatar
hallodri
Enthusiast
Enthusiast
Posts: 208
Joined: Tue Nov 08, 2005 7:59 am
Location: Germany
Contact:

Re: PERFORMANCE_INFORMATION for PureBasic?

Post by hallodri »

nein
User avatar
Crusiatus Black
Enthusiast
Enthusiast
Posts: 389
Joined: Mon May 12, 2008 1:25 pm
Location: The Netherlands
Contact:

Re: PERFORMANCE_INFORMATION for PureBasic?

Post by Crusiatus Black »

Talk about your small talk :p :D
Image
Bas Groothedde,
Imagine Programming

I live in a philosophical paradoxal randome filled with enigma's!
Post Reply