Kbase 17678: How to tell if MS-Windows thinks your CPU is slow
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/05/1998 |
|
How to tell if MS-Windows thinks your CPU is slow
The following code will tell you if MS-Windows thinks your machine is
equipped with a low-end processor (CPU).
This code works only on 8.2A and higher.
&SCOPED-DEFINE SM_SLOWMACHINE 73
DEFINE VARIABLE intSlowMachine AS INTEGER NO-UNDO.
PROCEDURE GetSystemMetrics EXTERNAL "USER32.DLL":
DEFINE INPUT PARAMETER intIndex AS LONG NO-UNDO.
DEFINE RETURN PARAMETER intValue AS LONG NO-UNDO.
END PROCEDURE.
RUN GetSystemMetrics (INPUT {&SM_SLOWMACHINE}, OUTPUT intSlowMachine).
IF intSlowMachine = 1 THEN
MESSAGE "Windows Says Your Machine is Slow" VIEW-AS ALERT-BOX.
ELSE
MESSAGE "Windows Says Your Machine is Fast" VIEW-AS ALERT-BOX.
Progress Software Technical Support Note # 17678