Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
402 B

  1. REM VBScript Test Custom Action
  2. Const hkClassesRoot = 0
  3. Const hkCurrentUser = 1
  4. Const hkLocalMachine = 2
  5. MsgBox "ProductCode = " & Session.Property("ProductCode") & " Language = " & Session.Language
  6. Function Action1
  7. MsgBox "Processor Speed = " & Session.Application.RegistryValue(hkLocalMachine, "HARDWARE\DESCRIPTION\System\CentralProcessor\0", "~MHz")
  8. Action1 = 1
  9. End Function