Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Hi,

ich hab diesen code gefunden

void CCPUUsage::Usage98()

{

HKEY hkey;

DWORD dwDataSize;

DWORD dwType;

DWORD dwCpuUsage;

// starting the counter

if ( RegOpenKeyEx( HKEY_DYN_DATA,

"PerfStats\\StartStat",

0,KEY_ALL_ACCESS,

&hkey ) != ERROR_SUCCESS)

return;

dwDataSize=sizeof(DWORD);

RegQueryValueEx( hkey,

"KERNEL\\CPUUsage",

NULL,&dwType,

(LPBYTE)&dwCpuUsage,

&dwDataSize );

RegCloseKey(hkey);

// geting current counter's value

if ( RegOpenKeyEx( HKEY_DYN_DATA,

"PerfStats\\StatData",

0,KEY_READ,

&hkey ) != ERROR_SUCCESS)

return;

printf("\nCPU Usage (press any key to exit): ");

while(!_kbhit())

{

dwDataSize=sizeof(DWORD);

RegQueryValueEx( hkey,

"KERNEL\\CPUUsage",

NULL,&dwType,

(LPBYTE)&dwCpuUsage,

&dwDataSize );

Sleep(500);

printf("\b\b\b\b%3d%%",dwCpuUsage);

}

printf("\n");

RegCloseKey(hkey);

// stoping the counter

if ( RegOpenKeyEx( HKEY_DYN_DATA,

"PerfStats\\StopStat",

0,KEY_ALL_ACCESS,

&hkey ) != ERROR_SUCCESS)

return;

dwDataSize=sizeof(DWORD);

RegQueryValueEx( hkey,

"KERNEL\\CPUUsage",

NULL,&dwType,

(LPBYTE)&dwCpuUsage,

&dwDataSize );

RegCloseKey(hkey);

}

aber es gibt mir immer nur die gesamtauslastung des Prozessors aus!!!

ich will aber für jeden einzelnen prozess die auslastung ausgeben können!!!!

(win95/98)

danke für eure hilfe

__________________

See u again

:eek:

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.