home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 6_2008-2009.ISO / data / zips / SysMon_wit2155896252009.psc / frmMain.frm < prev    next >
Text File  |  2009-06-26  |  35KB  |  1,024 lines

  1. VERSION 5.00
  2. Begin VB.Form frmMain 
  3.    BorderStyle     =   1  'Fest Einfach
  4.    Caption         =   "System Monitor"
  5.    ClientHeight    =   3675
  6.    ClientLeft      =   45
  7.    ClientTop       =   705
  8.    ClientWidth     =   8475
  9.    BeginProperty Font 
  10.       Name            =   "Arial"
  11.       Size            =   5.25
  12.       Charset         =   0
  13.       Weight          =   700
  14.       Underline       =   0   'False
  15.       Italic          =   0   'False
  16.       Strikethrough   =   0   'False
  17.    EndProperty
  18.    LinkTopic       =   "Form1"
  19.    MaxButton       =   0   'False
  20.    ScaleHeight     =   245
  21.    ScaleMode       =   3  'Pixel
  22.    ScaleWidth      =   565
  23.    StartUpPosition =   2  'Bildschirmmitte
  24.    Begin VB.Frame Frame5 
  25.       Caption         =   "CPU"
  26.       BeginProperty Font 
  27.          Name            =   "Arial"
  28.          Size            =   9.75
  29.          Charset         =   0
  30.          Weight          =   700
  31.          Underline       =   0   'False
  32.          Italic          =   0   'False
  33.          Strikethrough   =   0   'False
  34.       EndProperty
  35.       Height          =   1575
  36.       Left            =   5760
  37.       TabIndex        =   9
  38.       Top             =   2040
  39.       Width           =   2655
  40.       Begin VB.Label lblCPUValue 
  41.          Alignment       =   1  'Rechts
  42.          Caption         =   "0"
  43.          BeginProperty Font 
  44.             Name            =   "Arial"
  45.             Size            =   9.75
  46.             Charset         =   0
  47.             Weight          =   700
  48.             Underline       =   0   'False
  49.             Italic          =   0   'False
  50.             Strikethrough   =   0   'False
  51.          EndProperty
  52.          Height          =   255
  53.          Index           =   1
  54.          Left            =   1320
  55.          TabIndex        =   20
  56.          Top             =   600
  57.          Width           =   1095
  58.       End
  59.       Begin VB.Label lblCPUDisp 
  60.          Caption         =   "Usage"
  61.          BeginProperty Font 
  62.             Name            =   "Arial"
  63.             Size            =   9.75
  64.             Charset         =   0
  65.             Weight          =   400
  66.             Underline       =   0   'False
  67.             Italic          =   0   'False
  68.             Strikethrough   =   0   'False
  69.          EndProperty
  70.          Height          =   255
  71.          Index           =   1
  72.          Left            =   120
  73.          TabIndex        =   19
  74.          Top             =   600
  75.          Width           =   975
  76.       End
  77.       Begin VB.Label lblCPUValue 
  78.          Alignment       =   1  'Rechts
  79.          Caption         =   "0"
  80.          BeginProperty Font 
  81.             Name            =   "Arial"
  82.             Size            =   9.75
  83.             Charset         =   0
  84.             Weight          =   700
  85.             Underline       =   0   'False
  86.             Italic          =   0   'False
  87.             Strikethrough   =   0   'False
  88.          EndProperty
  89.          Height          =   255
  90.          Index           =   0
  91.          Left            =   1320
  92.          TabIndex        =   18
  93.          Top             =   240
  94.          Width           =   1095
  95.       End
  96.       Begin VB.Label lblCPUDisp 
  97.          Caption         =   "Usage"
  98.          BeginProperty Font 
  99.             Name            =   "Arial"
  100.             Size            =   9.75
  101.             Charset         =   0
  102.             Weight          =   400
  103.             Underline       =   0   'False
  104.             Italic          =   0   'False
  105.             Strikethrough   =   0   'False
  106.          EndProperty
  107.          Height          =   255
  108.          Index           =   0
  109.          Left            =   120
  110.          TabIndex        =   17
  111.          Top             =   240
  112.          Width           =   975
  113.       End
  114.       Begin VB.Label Label6 
  115.          Alignment       =   2  'Zentriert
  116.          BeginProperty Font 
  117.             Name            =   "Arial"
  118.             Size            =   9.75
  119.             Charset         =   0
  120.             Weight          =   700
  121.             Underline       =   0   'False
  122.             Italic          =   0   'False
  123.             Strikethrough   =   0   'False
  124.          EndProperty
  125.          Height          =   255
  126.          Left            =   840
  127.          TabIndex        =   10
  128.          Top             =   360
  129.          Width           =   615
  130.       End
  131.    End
  132.    Begin VB.Frame Frame3 
  133.       Caption         =   " RAM "
  134.       BeginProperty Font 
  135.          Name            =   "Arial"
  136.          Size            =   9.75
  137.          Charset         =   0
  138.          Weight          =   700
  139.          Underline       =   0   'False
  140.          Italic          =   0   'False
  141.          Strikethrough   =   0   'False
  142.       EndProperty
  143.       Height          =   1575
  144.       Left            =   120
  145.       TabIndex        =   8
  146.       Top             =   2040
  147.       Width           =   5535
  148.       Begin VB.Label lblRamValue 
  149.          Alignment       =   1  'Rechts
  150.          Caption         =   "0"
  151.          BeginProperty Font 
  152.             Name            =   "Arial"
  153.             Size            =   9.75
  154.             Charset         =   0
  155.             Weight          =   700
  156.             Underline       =   0   'False
  157.             Italic          =   0   'False
  158.             Strikethrough   =   0   'False
  159.          EndProperty
  160.          Height          =   255
  161.          Index           =   2
  162.          Left            =   1560
  163.          TabIndex        =   16
  164.          Top             =   1080
  165.          Width           =   1455
  166.       End
  167.       Begin VB.Label lblRamDisp 
  168.          Caption         =   "Used"
  169.          BeginProperty Font 
  170.             Name            =   "Arial"
  171.             Size            =   9.75
  172.             Charset         =   0
  173.             Weight          =   700
  174.             Underline       =   0   'False
  175.             Italic          =   0   'False
  176.             Strikethrough   =   0   'False
  177.          EndProperty
  178.          Height          =   255
  179.          Index           =   2
  180.          Left            =   240
  181.          TabIndex        =   15
  182.          Top             =   1080
  183.          Width           =   1095
  184.       End
  185.       Begin VB.Label lblRamValue 
  186.          Alignment       =   1  'Rechts
  187.          Caption         =   "0"
  188.          BeginProperty Font 
  189.             Name            =   "Arial"
  190.             Size            =   9.75
  191.             Charset         =   0
  192.             Weight          =   700
  193.             Underline       =   0   'False
  194.             Italic          =   0   'False
  195.             Strikethrough   =   0   'False
  196.          EndProperty
  197.          Height          =   255
  198.          Index           =   1
  199.          Left            =   1560
  200.          TabIndex        =   14
  201.          Top             =   720
  202.          Width           =   1455
  203.       End
  204.       Begin VB.Label lblRamDisp 
  205.          Caption         =   "Free"
  206.          BeginProperty Font 
  207.             Name            =   "Arial"
  208.             Size            =   9.75
  209.             Charset         =   0
  210.             Weight          =   700
  211.             Underline       =   0   'False
  212.             Italic          =   0   'False
  213.             Strikethrough   =   0   'False
  214.          EndProperty
  215.          Height          =   255
  216.          Index           =   1
  217.          Left            =   240
  218.          TabIndex        =   13
  219.          Top             =   720
  220.          Width           =   1095
  221.       End
  222.       Begin VB.Label lblRamValue 
  223.          Alignment       =   1  'Rechts
  224.          Caption         =   "0"
  225.          BeginProperty Font 
  226.             Name            =   "Arial"
  227.             Size            =   9.75
  228.             Charset         =   0
  229.             Weight          =   700
  230.             Underline       =   0   'False
  231.             Italic          =   0   'False
  232.             Strikethrough   =   0   'False
  233.          EndProperty
  234.          Height          =   255
  235.          Index           =   0
  236.          Left            =   1560
  237.          TabIndex        =   12
  238.          Top             =   360
  239.          Width           =   1455
  240.       End
  241.       Begin VB.Label lblRamDisp 
  242.          Caption         =   "Amount"
  243.          BeginProperty Font 
  244.             Name            =   "Arial"
  245.             Size            =   9.75
  246.             Charset         =   0
  247.             Weight          =   700
  248.             Underline       =   0   'False
  249.             Italic          =   0   'False
  250.             Strikethrough   =   0   'False
  251.          EndProperty
  252.          Height          =   255
  253.          Index           =   0
  254.          Left            =   240
  255.          TabIndex        =   11
  256.          Top             =   360
  257.          Width           =   1095
  258.       End
  259.    End
  260.    Begin VB.Frame Frame2 
  261.       BeginProperty Font 
  262.          Name            =   "Arial"
  263.          Size            =   9.75
  264.          Charset         =   0
  265.          Weight          =   700
  266.          Underline       =   0   'False
  267.          Italic          =   0   'False
  268.          Strikethrough   =   0   'False
  269.       EndProperty
  270.       Height          =   2055
  271.       Left            =   6720
  272.       TabIndex        =   2
  273.       Top             =   0
  274.       Width           =   1695
  275.       Begin VB.PictureBox Picture1 
  276.          Appearance      =   0  '2D
  277.          BackColor       =   &H00000000&
  278.          ForeColor       =   &H80000008&
  279.          Height          =   1695
  280.          Left            =   120
  281.          ScaleHeight     =   1665
  282.          ScaleWidth      =   1425
  283.          TabIndex        =   3
  284.          Top             =   240
  285.          Width           =   1455
  286.          Begin VB.Shape RAM 
  287.             BackColor       =   &H00008000&
  288.             BackStyle       =   1  'Undurchsichtig
  289.             Height          =   60
  290.             Index           =   19
  291.             Left            =   840
  292.             Shape           =   4  'Gerundetes Rechteck
  293.             Top             =   360
  294.             Width           =   495
  295.          End
  296.          Begin VB.Shape RAM 
  297.             BackColor       =   &H00008000&
  298.             BackStyle       =   1  'Undurchsichtig
  299.             Height          =   60
  300.             Index           =   18
  301.             Left            =   840
  302.             Shape           =   4  'Gerundetes Rechteck
  303.             Top             =   400
  304.             Width           =   495
  305.          End
  306.          Begin VB.Shape RAM 
  307.             BackColor       =   &H00008000&
  308.             BackStyle       =   1  'Undurchsichtig
  309.             Height          =   60
  310.             Index           =   17
  311.             Left            =   840
  312.             Shape           =   4  'Gerundetes Rechteck
  313.             Top             =   450
  314.             Width           =   495
  315.          End
  316.          Begin VB.Shape RAM 
  317.             BackColor       =   &H00008000&
  318.             BackStyle       =   1  'Undurchsichtig
  319.             Height          =   60
  320.             Index           =   16
  321.             Left            =   840
  322.             Shape           =   4  'Gerundetes Rechteck
  323.             Top             =   500
  324.             Width           =   495
  325.          End
  326.          Begin VB.Shape RAM 
  327.             BackColor       =   &H00008000&
  328.             BackStyle       =   1  'Undurchsichtig
  329.             Height          =   60
  330.             Index           =   15
  331.             Left            =   840
  332.             Shape           =   4  'Gerundetes Rechteck
  333.             Top             =   540
  334.             Width           =   495
  335.          End
  336.          Begin VB.Shape RAM 
  337.             BackColor       =   &H00008000&
  338.             BackStyle       =   1  'Undurchsichtig
  339.             Height          =   60
  340.             Index           =   14
  341.             Left            =   840
  342.             Shape           =   4  'Gerundetes Rechteck
  343.             Top             =   590
  344.             Width           =   495
  345.          End
  346.          Begin VB.Shape RAM 
  347.             BackColor       =   &H00008000&
  348.             BackStyle       =   1  'Undurchsichtig
  349.             Height          =   60
  350.             Index           =   13
  351.             Left            =   840
  352.             Shape           =   4  'Gerundetes Rechteck
  353.             Top             =   630
  354.             Width           =   495
  355.          End
  356.          Begin VB.Shape RAM 
  357.             BackColor       =   &H00008000&
  358.             BackStyle       =   1  'Undurchsichtig
  359.             Height          =   60
  360.             Index           =   12
  361.             Left            =   840
  362.             Shape           =   4  'Gerundetes Rechteck
  363.             Top             =   680
  364.             Width           =   495
  365.          End
  366.          Begin VB.Shape RAM 
  367.             BackColor       =   &H00008000&
  368.             BackStyle       =   1  'Undurchsichtig
  369.             Height          =   60
  370.             Index           =   11
  371.             Left            =   840
  372.             Shape           =   4  'Gerundetes Rechteck
  373.             Top             =   720
  374.             Width           =   495
  375.          End
  376.          Begin VB.Shape RAM 
  377.             BackColor       =   &H00008000&
  378.             BackStyle       =   1  'Undurchsichtig
  379.             Height          =   60
  380.             Index           =   10
  381.             Left            =   840
  382.             Shape           =   4  'Gerundetes Rechteck
  383.             Top             =   760
  384.             Width           =   495
  385.          End
  386.          Begin VB.Shape RAM 
  387.             BackColor       =   &H00008000&
  388.             BackStyle       =   1  'Undurchsichtig
  389.             Height          =   60
  390.             Index           =   9
  391.             Left            =   840
  392.             Shape           =   4  'Gerundetes Rechteck
  393.             Top             =   810
  394.             Width           =   495
  395.          End
  396.          Begin VB.Shape RAM 
  397.             BackColor       =   &H00008000&
  398.             BackStyle       =   1  'Undurchsichtig
  399.             Height          =   60
  400.             Index           =   8
  401.             Left            =   840
  402.             Shape           =   4  'Gerundetes Rechteck
  403.             Top             =   850
  404.             Width           =   495
  405.          End
  406.          Begin VB.Shape RAM 
  407.             BackColor       =   &H00008000&
  408.             BackStyle       =   1  'Undurchsichtig
  409.             Height          =   60
  410.             Index           =   7
  411.             Left            =   840
  412.             Shape           =   4  'Gerundetes Rechteck
  413.             Top             =   900
  414.             Width           =   495
  415.          End
  416.          Begin VB.Shape RAM 
  417.             BackColor       =   &H00008000&
  418.             BackStyle       =   1  'Undurchsichtig
  419.             Height          =   60
  420.             Index           =   6
  421.             Left            =   840
  422.             Shape           =   4  'Gerundetes Rechteck
  423.             Top             =   940
  424.             Width           =   495
  425.          End
  426.          Begin VB.Shape RAM 
  427.             BackColor       =   &H00008000&
  428.             BackStyle       =   1  'Undurchsichtig
  429.             Height          =   60
  430.             Index           =   5
  431.             Left            =   840
  432.             Shape           =   4  'Gerundetes Rechteck
  433.             Top             =   990
  434.             Width           =   495
  435.          End
  436.          Begin VB.Shape RAM 
  437.             BackColor       =   &H00008000&
  438.             BackStyle       =   1  'Undurchsichtig
  439.             Height          =   60
  440.             Index           =   4
  441.             Left            =   840
  442.             Shape           =   4  'Gerundetes Rechteck
  443.             Top             =   1030
  444.             Width           =   495
  445.          End
  446.          Begin VB.Shape RAM 
  447.             BackColor       =   &H00008000&
  448.             BackStyle       =   1  'Undurchsichtig
  449.             Height          =   60
  450.             Index           =   3
  451.             Left            =   840
  452.             Shape           =   4  'Gerundetes Rechteck
  453.             Top             =   1080
  454.             Width           =   495
  455.          End
  456.          Begin VB.Shape RAM 
  457.             BackColor       =   &H00008000&
  458.             BackStyle       =   1  'Undurchsichtig
  459.             Height          =   60
  460.             Index           =   2
  461.             Left            =   840
  462.             Shape           =   4  'Gerundetes Rechteck
  463.             Top             =   1120
  464.             Width           =   495
  465.          End
  466.          Begin VB.Shape RAM 
  467.             BackColor       =   &H00008000&
  468.             BackStyle       =   1  'Undurchsichtig
  469.             Height          =   60
  470.             Index           =   1
  471.             Left            =   840
  472.             Shape           =   4  'Gerundetes Rechteck
  473.             Top             =   1170
  474.             Width           =   495
  475.          End
  476.          Begin VB.Shape RAM 
  477.             BackColor       =   &H00008000&
  478.             BackStyle       =   1  'Undurchsichtig
  479.             Height          =   60
  480.             Index           =   0
  481.             Left            =   840
  482.             Shape           =   4  'Gerundetes Rechteck
  483.             Top             =   1210
  484.             Width           =   495
  485.          End
  486.          Begin VB.Shape CPU 
  487.             BackColor       =   &H00008000&
  488.             BackStyle       =   1  'Undurchsichtig
  489.             Height          =   60
  490.             Index           =   19
  491.             Left            =   120
  492.             Shape           =   4  'Gerundetes Rechteck
  493.             Top             =   400
  494.             Width           =   495
  495.          End
  496.          Begin VB.Shape CPU 
  497.             BackColor       =   &H00008000&
  498.             BackStyle       =   1  'Undurchsichtig
  499.             Height          =   60
  500.             Index           =   18
  501.             Left            =   120
  502.             Shape           =   4  'Gerundetes Rechteck
  503.             Top             =   360
  504.             Width           =   495
  505.          End
  506.          Begin VB.Shape CPU 
  507.             BackColor       =   &H00008000&
  508.             BackStyle       =   1  'Undurchsichtig
  509.             Height          =   60
  510.             Index           =   17
  511.             Left            =   120
  512.             Shape           =   4  'Gerundetes Rechteck
  513.             Top             =   450
  514.             Width           =   495
  515.          End
  516.          Begin VB.Shape CPU 
  517.             BackColor       =   &H00008000&
  518.             BackStyle       =   1  'Undurchsichtig
  519.             Height          =   60
  520.             Index           =   16
  521.             Left            =   120
  522.             Shape           =   4  'Gerundetes Rechteck
  523.             Top             =   500
  524.             Width           =   495
  525.          End
  526.          Begin VB.Shape CPU 
  527.             BackColor       =   &H00008000&
  528.             BackStyle       =   1  'Undurchsichtig
  529.             Height          =   60
  530.             Index           =   15
  531.             Left            =   120
  532.             Shape           =   4  'Gerundetes Rechteck
  533.             Top             =   540
  534.             Width           =   495
  535.          End
  536.          Begin VB.Shape CPU 
  537.             BackColor       =   &H00008000&
  538.             BackStyle       =   1  'Undurchsichtig
  539.             Height          =   60
  540.             Index           =   14
  541.             Left            =   120
  542.             Shape           =   4  'Gerundetes Rechteck
  543.             Top             =   590
  544.             Width           =   495
  545.          End
  546.          Begin VB.Shape CPU 
  547.             BackColor       =   &H00008000&
  548.             BackStyle       =   1  'Undurchsichtig
  549.             Height          =   60
  550.             Index           =   13
  551.             Left            =   120
  552.             Shape           =   4  'Gerundetes Rechteck
  553.             Top             =   630
  554.             Width           =   495
  555.          End
  556.          Begin VB.Shape CPU 
  557.             BackColor       =   &H00008000&
  558.             BackStyle       =   1  'Undurchsichtig
  559.             Height          =   60
  560.             Index           =   12
  561.             Left            =   120
  562.             Shape           =   4  'Gerundetes Rechteck
  563.             Top             =   680
  564.             Width           =   495
  565.          End
  566.          Begin VB.Shape CPU 
  567.             BackColor       =   &H00008000&
  568.             BackStyle       =   1  'Undurchsichtig
  569.             Height          =   60
  570.             Index           =   11
  571.             Left            =   120
  572.             Shape           =   4  'Gerundetes Rechteck
  573.             Top             =   720
  574.             Width           =   495
  575.          End
  576.          Begin VB.Shape CPU 
  577.             BackColor       =   &H00008000&
  578.             BackStyle       =   1  'Undurchsichtig
  579.             Height          =   60
  580.             Index           =   10
  581.             Left            =   120
  582.             Shape           =   4  'Gerundetes Rechteck
  583.             Top             =   760
  584.             Width           =   495
  585.          End
  586.          Begin VB.Shape CPU 
  587.             BackColor       =   &H00008000&
  588.             BackStyle       =   1  'Undurchsichtig
  589.             Height          =   60
  590.             Index           =   0
  591.             Left            =   120
  592.             Shape           =   4  'Gerundetes Rechteck
  593.             Top             =   1210
  594.             Width           =   495
  595.          End
  596.          Begin VB.Shape CPU 
  597.             BackColor       =   &H00008000&
  598.             BackStyle       =   1  'Undurchsichtig
  599.             Height          =   60
  600.             Index           =   1
  601.             Left            =   120
  602.             Shape           =   4  'Gerundetes Rechteck
  603.             Top             =   1170
  604.             Width           =   495
  605.          End
  606.          Begin VB.Shape CPU 
  607.             BackColor       =   &H00008000&
  608.             BackStyle       =   1  'Undurchsichtig
  609.             Height          =   60
  610.             Index           =   2
  611.             Left            =   120
  612.             Shape           =   4  'Gerundetes Rechteck
  613.             Top             =   1120
  614.             Width           =   495
  615.          End
  616.          Begin VB.Shape CPU 
  617.             BackColor       =   &H00008000&
  618.             BackStyle       =   1  'Undurchsichtig
  619.             Height          =   60
  620.             Index           =   3
  621.             Left            =   120
  622.             Shape           =   4  'Gerundetes Rechteck
  623.             Top             =   1080
  624.             Width           =   495
  625.          End
  626.          Begin VB.Shape CPU 
  627.             BackColor       =   &H00008000&
  628.             BackStyle       =   1  'Undurchsichtig
  629.             Height          =   60
  630.             Index           =   4
  631.             Left            =   120
  632.             Shape           =   4  'Gerundetes Rechteck
  633.             Top             =   1030
  634.             Width           =   495
  635.          End
  636.          Begin VB.Shape CPU 
  637.             BackColor       =   &H00008000&
  638.             BackStyle       =   1  'Undurchsichtig
  639.             Height          =   60
  640.             Index           =   5
  641.             Left            =   120
  642.             Shape           =   4  'Gerundetes Rechteck
  643.             Top             =   990
  644.             Width           =   495
  645.          End
  646.          Begin VB.Shape CPU 
  647.             BackColor       =   &H00008000&
  648.             BackStyle       =   1  'Undurchsichtig
  649.             Height          =   60
  650.             Index           =   6
  651.             Left            =   120
  652.             Shape           =   4  'Gerundetes Rechteck
  653.             Top             =   940
  654.             Width           =   495
  655.          End
  656.          Begin VB.Shape CPU 
  657.             BackColor       =   &H00008000&
  658.             BackStyle       =   1  'Undurchsichtig
  659.             Height          =   60
  660.             Index           =   7
  661.             Left            =   120
  662.             Shape           =   4  'Gerundetes Rechteck
  663.             Top             =   900
  664.             Width           =   495
  665.          End
  666.          Begin VB.Shape CPU 
  667.             BackColor       =   &H00008000&
  668.             BackStyle       =   1  'Undurchsichtig
  669.             Height          =   60
  670.             Index           =   8
  671.             Left            =   120
  672.             Shape           =   4  'Gerundetes Rechteck
  673.             Top             =   850
  674.             Width           =   495
  675.          End
  676.          Begin VB.Shape CPU 
  677.             BackColor       =   &H00008000&
  678.             BackStyle       =   1  'Undurchsichtig
  679.             Height          =   60
  680.             Index           =   9
  681.             Left            =   120
  682.             Shape           =   4  'Gerundetes Rechteck
  683.             Top             =   810
  684.             Width           =   495
  685.          End
  686.          Begin VB.Label Label1 
  687.             Alignment       =   2  'Zentriert
  688.             BackColor       =   &H00000000&
  689.             Caption         =   "CPU"
  690.             BeginProperty Font 
  691.                Name            =   "Arial"
  692.                Size            =   9.75
  693.                Charset         =   0
  694.                Weight          =   700
  695.                Underline       =   0   'False
  696.                Italic          =   0   'False
  697.                Strikethrough   =   0   'False
  698.             EndProperty
  699.             ForeColor       =   &H0000FF00&
  700.             Height          =   255
  701.             Left            =   120
  702.             TabIndex        =   7
  703.             Top             =   1320
  704.             Width           =   495
  705.          End
  706.          Begin VB.Label Label2 
  707.             Alignment       =   2  'Zentriert
  708.             BackColor       =   &H00000000&
  709.             Caption         =   "RAM"
  710.             BeginProperty Font 
  711.                Name            =   "Arial"
  712.                Size            =   9.75
  713.                Charset         =   0
  714.                Weight          =   700
  715.                Underline       =   0   'False
  716.                Italic          =   0   'False
  717.                Strikethrough   =   0   'False
  718.             EndProperty
  719.             ForeColor       =   &H0000FF00&
  720.             Height          =   255
  721.             Left            =   840
  722.             TabIndex        =   6
  723.             Top             =   1320
  724.             Width           =   495
  725.          End
  726.          Begin VB.Label Label3 
  727.             Alignment       =   2  'Zentriert
  728.             BackColor       =   &H00000000&
  729.             BeginProperty Font 
  730.                Name            =   "Arial"
  731.                Size            =   9.75
  732.                Charset         =   0
  733.                Weight          =   700
  734.                Underline       =   0   'False
  735.                Italic          =   0   'False
  736.                Strikethrough   =   0   'False
  737.             EndProperty
  738.             ForeColor       =   &H0000FF00&
  739.             Height          =   255
  740.             Left            =   0
  741.             TabIndex        =   5
  742.             Top             =   120
  743.             Width           =   735
  744.          End
  745.          Begin VB.Label Label4 
  746.             Alignment       =   2  'Zentriert
  747.             BackColor       =   &H00000000&
  748.             BeginProperty Font 
  749.                Name            =   "Arial"
  750.                Size            =   9.75
  751.                Charset         =   0
  752.                Weight          =   700
  753.                Underline       =   0   'False
  754.                Italic          =   0   'False
  755.                Strikethrough   =   0   'False
  756.             EndProperty
  757.             ForeColor       =   &H0000FF00&
  758.             Height          =   255
  759.             Left            =   720
  760.             TabIndex        =   4
  761.             Top             =   120
  762.             Width           =   735
  763.          End
  764.       End
  765.    End
  766.    Begin VB.Frame Frame1 
  767.       Caption         =   "Usage"
  768.       BeginProperty Font 
  769.          Name            =   "Arial"
  770.          Size            =   9.75
  771.          Charset         =   0
  772.          Weight          =   700
  773.          Underline       =   0   'False
  774.          Italic          =   0   'False
  775.          Strikethrough   =   0   'False
  776.       EndProperty
  777.       Height          =   2055
  778.       Left            =   120
  779.       TabIndex        =   0
  780.       Top             =   0
  781.       Width           =   6495
  782.       Begin VB.PictureBox Graph 
  783.          Appearance      =   0  '2D
  784.          BackColor       =   &H00000000&
  785.          ForeColor       =   &H80000008&
  786.          Height          =   1695
  787.          Left            =   120
  788.          ScaleHeight     =   111
  789.          ScaleMode       =   0  'Benutzerdefiniert
  790.          ScaleWidth      =   190
  791.          TabIndex        =   1
  792.          Top             =   240
  793.          Width           =   6255
  794.       End
  795.    End
  796.    Begin VB.Timer tmrUpdate 
  797.       Enabled         =   0   'False
  798.       Interval        =   1000
  799.       Left            =   8520
  800.       Top             =   240
  801.    End
  802.    Begin VB.Menu MnuFile 
  803.       Caption         =   "File"
  804.       Begin VB.Menu newServer 
  805.          Caption         =   "Enter Server"
  806.       End
  807.       Begin VB.Menu mnuOption 
  808.          Caption         =   "Option"
  809.       End
  810.       Begin VB.Menu mnuQuit 
  811.          Caption         =   "Quit"
  812.       End
  813.    End
  814. End
  815. Attribute VB_Name = "frmMain"
  816. Attribute VB_GlobalNameSpace = False
  817. Attribute VB_Creatable = False
  818. Attribute VB_PredeclaredId = True
  819. Attribute VB_Exposed = False
  820. Option Explicit
  821.  
  822. Private TabCPU() As Long
  823. Private TabRAM() As Long
  824. Private CptCPU As Long
  825. Public GridScale As Integer
  826. Public LineColorCPU
  827. Public LineColorRAM
  828. Public LineColorGrid
  829.  
  830.  
  831. Private m_UsedPhysicalMemory As Currency
  832. Private m_TotalPhysicalMemory As Currency
  833. Private m_AvailablePhysicalMemory As Currency
  834. Private m_NumCpus As Long
  835.  
  836.  
  837.  
  838. Private m_clsPerfRAM As ClassPMonRam
  839. Private m_clsPerfCPU As ClassPMonCPU
  840.  
  841. Private mVarServer As String
  842.  
  843.  
  844.  
  845. Private Sub UpdateGraphs(CPU, RAMTotal, RAMDispo)
  846. Dim ValueCPU As Long
  847. Dim ValueRAM As Long
  848. Dim cpt As Long
  849.     ReDim Preserve TabCPU(CptCPU)
  850.     ReDim Preserve TabRAM(CptCPU)
  851.     If CptCPU > 0 Then
  852.         For cpt = CptCPU To 1 Step -1
  853.             TabCPU(cpt) = TabCPU(cpt - 1)
  854.             TabRAM(cpt) = TabRAM(cpt - 1)
  855.         Next
  856.     End If
  857.     TabCPU(0) = CPU
  858.     If RAMTotal > 0 Then
  859.         TabRAM(0) = CLng(100 - ((RAMDispo * 100) / RAMTotal))
  860.     End If
  861.     ValueCPU = CLng(TabCPU(0) / 5)
  862.     ValueRAM = CLng(TabRAM(0) / 5)
  863.     For cpt = 0 To 19
  864.         If cpt <= ValueRAM Then
  865.             frmMain.RAM(cpt).BackColor = &HFF00&
  866.         Else
  867.             frmMain.RAM(cpt).BackColor = &H8000&
  868.         End If
  869.         If cpt <= ValueCPU Then
  870.             frmMain.CPU(cpt).BackColor = &HFF00&
  871.         Else
  872.             frmMain.CPU(cpt).BackColor = &H8000&
  873.         End If
  874.     Next
  875.     If CptCPU < 200 Then CptCPU = CptCPU + 1
  876.     frmMain.Graph.Cls
  877.     For cpt = 0 To 100 Step GridScale
  878.         frmMain.Graph.Line (0, (cpt * frmMain.Graph.ScaleHeight) / 100)-(frmMain.Graph.ScaleWidth, (cpt * frmMain.Graph.ScaleHeight) / 100), LineColorGrid
  879.     Next
  880.     For cpt = 1 To CptCPU - 1
  881.         frmMain.Graph.Line (frmMain.Graph.ScaleWidth - (cpt - 1), frmMain.Graph.ScaleHeight - (frmMain.Graph.ScaleHeight * TabCPU(cpt - 1)) / 100)-(frmMain.Graph.ScaleWidth - (cpt), frmMain.Graph.ScaleHeight - (frmMain.Graph.ScaleHeight * TabCPU(cpt)) / 100), LineColorCPU
  882.         frmMain.Graph.Line (frmMain.Graph.ScaleWidth - (cpt - 1), frmMain.Graph.ScaleHeight - (frmMain.Graph.ScaleHeight * TabRAM(cpt - 1)) / 100)-(frmMain.Graph.ScaleWidth - (cpt), frmMain.Graph.ScaleHeight - (frmMain.Graph.ScaleHeight * TabRAM(cpt)) / 100), LineColorRAM
  883.     Next
  884.  
  885. End Sub
  886.  
  887.  
  888. Private Sub Form_Load()
  889.     Dim strSys As String
  890.     
  891.     If App.PrevInstance = True Then
  892.         MsgBox "just running", vbInformation, "CPURAM"
  893.         End
  894.     End If
  895.     
  896.     Set m_clsPerfRAM = New ClassPMonRam
  897.     Set m_clsPerfCPU = New ClassPMonCPU
  898.  
  899.  
  900.  
  901.     
  902.     
  903.     CptCPU = 0
  904.     GridScale = 20
  905.     mVarServer = "" 'Local
  906.     
  907.     m_clsPerfRAM.RemoteServer = mVarServer
  908.     m_clsPerfCPU.RemoteServer = mVarServer
  909.     
  910.     m_NumCpus = m_clsPerfCPU.GetCPUCount
  911.     m_TotalPhysicalMemory = m_clsPerfRAM.GetRamAmount
  912.     
  913.     LineColorCPU = RGB(255, 0, 0)
  914.     LineColorRAM = RGB(0, 255, 0)
  915.     LineColorGrid = RGB(0, 0, 255)
  916.     Graph.BackColor = &H0&
  917.     tmrUpdate_Timer
  918.     tmrUpdate_Timer
  919.     tmrUpdate.Enabled = True
  920.     
  921.     
  922. End Sub
  923.  
  924. Private Sub Form_Unload(Cancel As Integer)
  925.     Set m_clsPerfCPU = Nothing
  926.     Set m_clsPerfRAM = Nothing
  927.     End
  928. End Sub
  929.  
  930.  
  931.  
  932.  
  933. Private Sub mnuOption_Click()
  934.     frmOption.Show
  935. End Sub
  936.  
  937. Private Sub mnuQuit_Click()
  938.     End
  939. End Sub
  940.  
  941. Private Sub newServer_Click()
  942. Dim sResult As String
  943.     sResult = InputBox("enter servername")
  944.     If Len(sResult) Then
  945.         If sResult = "." Then
  946.             mVarServer = ""
  947.         Else
  948.             mVarServer = sResult
  949.         End If
  950.         m_clsPerfCPU.RemoteServer = mVarServer
  951.         m_clsPerfRAM.RemoteServer = mVarServer
  952.         m_NumCpus = m_clsPerfCPU.GetCPUCount
  953.         m_TotalPhysicalMemory = m_clsPerfRAM.GetRamAmount
  954.     Else
  955.         'No Change
  956.         
  957.     End If
  958.     
  959.  
  960. End Sub
  961.  
  962.  
  963.  
  964.  
  965. Private Sub tmrUpdate_Timer()
  966. tmrUpdate.Enabled = False
  967. Dim CPUUsage As Long
  968. Dim RAMTotal As Currency
  969. Dim RAMAvail As Currency
  970. Dim xRamUse As Currency
  971. Dim svar
  972.  
  973.     DoEvents
  974.     Dim lCPULoad As Long
  975.     Dim lCPUIndex As Long
  976.     
  977.     m_clsPerfRAM.RemoteServer = mVarServer
  978.     m_clsPerfCPU.RemoteServer = mVarServer
  979.     m_clsPerfCPU.CollectCPUData
  980.     
  981.     
  982.     
  983.     For lCPUIndex = 1 To m_NumCpus
  984.         lCPULoad = lCPULoad + m_clsPerfCPU.GetCPUUsage(lCPUIndex)
  985.         CPUUsage = m_clsPerfCPU.GetCPUUsage(lCPUIndex)
  986.     Next lCPUIndex
  987.     
  988.     GetMemoryInfo
  989.     RAMTotal = m_TotalPhysicalMemory / 1024
  990.     RAMAvail = m_AvailablePhysicalMemory / 1024
  991.     
  992.     lblCPUValue(0) = CPUUsage & " %"
  993.     lblRamValue(0).Caption = RAMTotal & " Kb"
  994.     lblRamValue(1).Caption = RAMAvail & " Kb"
  995.     xRamUse = RAMTotal - RAMAvail
  996.     lblRamValue(2) = xRamUse & " Kb"
  997.     
  998.     lblCPUValue(1).Caption = CPUUsage & " %"
  999.     If RAMTotal Then
  1000.     Label4.Caption = Int(((xRamUse * 100) / RAMTotal)) & " %"
  1001.     End If
  1002.     Call UpdateGraphs(CPUUsage, RAMTotal, RAMAvail)
  1003.  
  1004.  
  1005.     tmrUpdate.Enabled = True
  1006. End Sub
  1007.  
  1008. Public Sub GetMemoryInfo()
  1009.  
  1010.   'm_TotalPhysicalMemory = m_clsPerfRAM.GetRamAmount
  1011.   If m_TotalPhysicalMemory >= 0 Then
  1012.     m_AvailablePhysicalMemory = m_clsPerfRAM.GetPerfMonValue(4, 24)  ' MemStatus.dwAvailPhys
  1013.     m_UsedPhysicalMemory = m_TotalPhysicalMemory - m_AvailablePhysicalMemory
  1014.   Else
  1015.     m_TotalPhysicalMemory = 0
  1016.     m_AvailablePhysicalMemory = 0
  1017.     m_UsedPhysicalMemory = 0
  1018.   End If
  1019.  
  1020. End Sub
  1021.  
  1022.  
  1023.  
  1024.