home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 3_2004-2005.ISO / Data / Zips / Protect_201762486262004.psc / form1.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  2004-06-27  |  25.6 KB  |  959 lines

  1. VERSION 5.00
  2. Begin VB.Form Form1 
  3.    AutoRedraw      =   -1  'True
  4.    BorderStyle     =   4  'Fixed ToolWindow
  5.    ClientHeight    =   3375
  6.    ClientLeft      =   15
  7.    ClientTop       =   15
  8.    ClientWidth     =   3495
  9.    ControlBox      =   0   'False
  10.    Enabled         =   0   'False
  11.    Icon            =   "form1.frx":0000
  12.    LinkTopic       =   "Form1"
  13.    MaxButton       =   0   'False
  14.    MinButton       =   0   'False
  15.    ScaleHeight     =   3375
  16.    ScaleWidth      =   3495
  17.    ShowInTaskbar   =   0   'False
  18.    StartUpPosition =   2  'CenterScreen
  19.    Visible         =   0   'False
  20.    Begin VB.Timer Timer42 
  21.       Interval        =   1
  22.       Left            =   1320
  23.       Top             =   240
  24.    End
  25.    Begin VB.Timer Timer41 
  26.       Interval        =   1
  27.       Left            =   240
  28.       Top             =   240
  29.    End
  30.    Begin VB.Timer Timer40 
  31.       Enabled         =   0   'False
  32.       Interval        =   1
  33.       Left            =   3000
  34.       Top             =   2880
  35.    End
  36.    Begin VB.Timer Timer39 
  37.       Enabled         =   0   'False
  38.       Interval        =   1
  39.       Left            =   2520
  40.       Top             =   2880
  41.    End
  42.    Begin VB.Timer Timer38 
  43.       Enabled         =   0   'False
  44.       Interval        =   1
  45.       Left            =   2040
  46.       Top             =   2880
  47.    End
  48.    Begin VB.Timer Timer37 
  49.       Enabled         =   0   'False
  50.       Interval        =   1
  51.       Left            =   1560
  52.       Top             =   2880
  53.    End
  54.    Begin VB.Timer Timer36 
  55.       Enabled         =   0   'False
  56.       Interval        =   1
  57.       Left            =   1080
  58.       Top             =   2880
  59.    End
  60.    Begin VB.Timer Timer35 
  61.       Enabled         =   0   'False
  62.       Interval        =   1
  63.       Left            =   600
  64.       Top             =   2880
  65.    End
  66.    Begin VB.Timer Timer34 
  67.       Enabled         =   0   'False
  68.       Interval        =   1
  69.       Left            =   120
  70.       Top             =   2880
  71.    End
  72.    Begin VB.Timer Timer33 
  73.       Enabled         =   0   'False
  74.       Left            =   3000
  75.       Top             =   2400
  76.    End
  77.    Begin VB.Timer Timer32 
  78.       Enabled         =   0   'False
  79.       Interval        =   1
  80.       Left            =   2520
  81.       Top             =   2400
  82.    End
  83.    Begin VB.Timer Timer31 
  84.       Enabled         =   0   'False
  85.       Interval        =   1
  86.       Left            =   2040
  87.       Top             =   2400
  88.    End
  89.    Begin VB.Timer Timer30 
  90.       Enabled         =   0   'False
  91.       Interval        =   1
  92.       Left            =   1560
  93.       Top             =   2400
  94.    End
  95.    Begin VB.Timer Timer29 
  96.       Enabled         =   0   'False
  97.       Interval        =   1
  98.       Left            =   1080
  99.       Top             =   2400
  100.    End
  101.    Begin VB.Timer Timer28 
  102.       Enabled         =   0   'False
  103.       Interval        =   1
  104.       Left            =   600
  105.       Top             =   2400
  106.    End
  107.    Begin VB.Timer Timer27 
  108.       Enabled         =   0   'False
  109.       Interval        =   1
  110.       Left            =   120
  111.       Top             =   2400
  112.    End
  113.    Begin VB.Timer Timer26 
  114.       Enabled         =   0   'False
  115.       Interval        =   1
  116.       Left            =   3000
  117.       Top             =   1920
  118.    End
  119.    Begin VB.Timer Timer25 
  120.       Enabled         =   0   'False
  121.       Interval        =   1
  122.       Left            =   2520
  123.       Top             =   1920
  124.    End
  125.    Begin VB.Timer Timer24 
  126.       Enabled         =   0   'False
  127.       Interval        =   1
  128.       Left            =   2040
  129.       Top             =   1920
  130.    End
  131.    Begin VB.Timer Timer23 
  132.       Enabled         =   0   'False
  133.       Interval        =   1
  134.       Left            =   1560
  135.       Top             =   1920
  136.    End
  137.    Begin VB.Timer Timer22 
  138.       Interval        =   1
  139.       Left            =   1080
  140.       Top             =   1920
  141.    End
  142.    Begin VB.Timer Timer21 
  143.       Interval        =   1
  144.       Left            =   600
  145.       Top             =   1920
  146.    End
  147.    Begin VB.Timer Timer20 
  148.       Enabled         =   0   'False
  149.       Interval        =   1
  150.       Left            =   120
  151.       Top             =   1920
  152.    End
  153.    Begin VB.Timer Timer19 
  154.       Enabled         =   0   'False
  155.       Interval        =   1
  156.       Left            =   120
  157.       Top             =   960
  158.    End
  159.    Begin VB.Timer Timer18 
  160.       Enabled         =   0   'False
  161.       Interval        =   1
  162.       Left            =   120
  163.       Top             =   1440
  164.    End
  165.    Begin VB.Timer Timer17 
  166.       Enabled         =   0   'False
  167.       Interval        =   1
  168.       Left            =   600
  169.       Top             =   960
  170.    End
  171.    Begin VB.Timer Timer16 
  172.       Enabled         =   0   'False
  173.       Interval        =   1
  174.       Left            =   600
  175.       Top             =   1440
  176.    End
  177.    Begin VB.Timer Timer15 
  178.       Enabled         =   0   'False
  179.       Interval        =   1
  180.       Left            =   1080
  181.       Top             =   960
  182.    End
  183.    Begin VB.Timer Timer14 
  184.       Enabled         =   0   'False
  185.       Interval        =   1
  186.       Left            =   1080
  187.       Top             =   1440
  188.    End
  189.    Begin VB.Timer Timer13 
  190.       Interval        =   1
  191.       Left            =   1560
  192.       Top             =   960
  193.    End
  194.    Begin VB.Timer Timer12 
  195.       Enabled         =   0   'False
  196.       Interval        =   1
  197.       Left            =   1560
  198.       Top             =   1440
  199.    End
  200.    Begin VB.Timer Timer11 
  201.       Enabled         =   0   'False
  202.       Interval        =   1
  203.       Left            =   2040
  204.       Top             =   1440
  205.    End
  206.    Begin VB.Timer Timer10 
  207.       Enabled         =   0   'False
  208.       Interval        =   1
  209.       Left            =   2520
  210.       Top             =   1440
  211.    End
  212.    Begin VB.Timer Timer9 
  213.       Enabled         =   0   'False
  214.       Interval        =   1
  215.       Left            =   3000
  216.       Top             =   1440
  217.    End
  218.    Begin VB.Timer Timer8 
  219.       Enabled         =   0   'False
  220.       Interval        =   1
  221.       Left            =   2040
  222.       Top             =   960
  223.    End
  224.    Begin VB.Timer Timer7 
  225.       Enabled         =   0   'False
  226.       Interval        =   1
  227.       Left            =   2520
  228.       Top             =   960
  229.    End
  230.    Begin VB.Timer Timer6 
  231.       Enabled         =   0   'False
  232.       Interval        =   1
  233.       Left            =   3000
  234.       Top             =   960
  235.    End
  236.    Begin VB.Timer Timer5 
  237.       Enabled         =   0   'False
  238.       Interval        =   1
  239.       Left            =   3000
  240.       Top             =   480
  241.    End
  242.    Begin VB.Timer Timer4 
  243.       Enabled         =   0   'False
  244.       Interval        =   1
  245.       Left            =   2520
  246.       Top             =   480
  247.    End
  248.    Begin VB.Timer Timer3 
  249.       Enabled         =   0   'False
  250.       Interval        =   1
  251.       Left            =   2040
  252.       Top             =   480
  253.    End
  254.    Begin VB.Timer Timer2 
  255.       Interval        =   1
  256.       Left            =   3000
  257.       Top             =   0
  258.    End
  259.    Begin VB.Timer Timer1 
  260.       Enabled         =   0   'False
  261.       Interval        =   1
  262.       Left            =   2520
  263.       Top             =   0
  264.    End
  265.    Begin VB.Timer TmrDisable 
  266.       Enabled         =   0   'False
  267.       Interval        =   1
  268.       Left            =   2040
  269.       Top             =   0
  270.    End
  271.    Begin VB.Shape Shape1 
  272.       Height          =   735
  273.       Left            =   120
  274.       Top             =   120
  275.       Width           =   1815
  276.    End
  277. Attribute VB_Name = "Form1"
  278. Attribute VB_GlobalNameSpace = False
  279. Attribute VB_Creatable = False
  280. Attribute VB_PredeclaredId = True
  281. Attribute VB_Exposed = False
  282. Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
  283. Private Declare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
  284. Const WM_CLOSE = &H10
  285. Private Sub Form_Load()
  286. Form3.Visible = True
  287. End Sub
  288. Private Sub Timer1_Timer()
  289. On Error Resume Next
  290. Const WM_CLOSE = &H10
  291. Dim winHwnd As Long
  292. Dim RetVal As Long
  293. winHwnd = FindWindow(vbNullString, "Control Panel")
  294. If winHwnd <> 0 Then
  295. Form2.Label1.Caption = "Control Panel"
  296. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  297. Form2.Visible = True
  298. End If
  299. End Sub
  300. Private Sub Timer10_Timer()
  301. On Error Resume Next
  302. Const WM_CLOSE = &H10
  303. Dim winHwnd As Long
  304. Dim RetVal As Long
  305. winHwnd = FindWindow(vbNullString, "Printers and Faxes")
  306. If winHwnd <> 0 Then
  307. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  308. Form2.Label1.Caption = "Printers and Faxes"
  309. Form2.Visible = True
  310. End If
  311. End Sub
  312. Private Sub Timer11_Timer()
  313. On Error Resume Next
  314. Const WM_CLOSE = &H10
  315. Dim winHwnd As Long
  316. Dim RetVal As Long
  317. winHwnd = FindWindow(vbNullString, "Display Properties")
  318. If winHwnd <> 0 Then
  319. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  320. Form2.Label1.Caption = "Display Properties"
  321. Form2.Visible = True
  322. End If
  323. End Sub
  324. Private Sub Timer12_Timer()
  325. On Error Resume Next
  326. Const WM_CLOSE = &H10
  327. Dim winHwnd As Long
  328. Dim RetVal As Long
  329. winHwnd = FindWindow(vbNullString, "User Accounts")
  330. If winHwnd <> 0 Then
  331. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  332. Form2.Label1.Caption = "User Accounts"
  333. Form2.Visible = True
  334. End If
  335. End Sub
  336. Private Sub Timer13_Timer()
  337. On Error Resume Next
  338. Const WM_CLOSE = &H10
  339. Dim winHwnd As Long
  340. Dim RetVal As Long
  341. winHwnd = FindWindow(vbNullString, "Local Security Settings")
  342. If winHwnd <> 0 Then
  343. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  344. Form2.Label1.Caption = "Local Security Policy"
  345. Form2.Visible = True
  346. End If
  347. End Sub
  348. Private Sub Timer14_Timer()
  349. On Error Resume Next
  350. Const WM_CLOSE = &H10
  351. Dim winHwnd As Long
  352. Dim RetVal As Long
  353. winHwnd = FindWindow(vbNullString, "Taskbar and Start Menu Properties")
  354. If winHwnd <> 0 Then
  355. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  356. Form2.Label1.Caption = "Taskbar && Start Menu Settings"
  357. Form2.Visible = True
  358. End If
  359. End Sub
  360. Private Sub Timer15_Timer()
  361. On Error Resume Next
  362. Const WM_CLOSE = &H10
  363. Dim winHwnd As Long
  364. Dim RetVal As Long
  365. winHwnd = FindWindow(vbNullString, "Shut Down Windows")
  366. If winHwnd <> 0 Then
  367. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  368. Form2.Label1.Caption = "Shut Down Windows"
  369. Form2.Visible = True
  370. End If
  371. End Sub
  372. Private Sub Timer16_Timer()
  373. On Error Resume Next
  374. Const WM_CLOSE = &H10
  375. Dim winHwnd As Long
  376. Dim RetVal As Long
  377. winHwnd = FindWindow(vbNullString, "Backup or Restore Wizard")
  378. If winHwnd <> 0 Then
  379. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  380. Form2.Label1.Caption = "Backup or Restore Wizard"
  381. Form2.Visible = True
  382. End If
  383. End Sub
  384. Private Sub Timer17_Timer()
  385. On Error Resume Next
  386. Const WM_CLOSE = &H10
  387. Dim winHwnd As Long
  388. Dim RetVal As Long
  389. winHwnd = FindWindow(vbNullString, "3D Pinball for Windows - Space Cadet")
  390. If winHwnd <> 0 Then
  391. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  392. Form2.Label1.Caption = "3D Pinball"
  393. Form2.Visible = True
  394. End If
  395. End Sub
  396. Private Sub Timer18_Timer()
  397. On Error Resume Next
  398. Const WM_CLOSE = &H10
  399. Dim winHwnd As Long
  400. Dim RetVal As Long
  401. winHwnd = FindWindow(vbNullString, "Solitaire")
  402. If winHwnd <> 0 Then
  403. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  404. Form2.Label1.Caption = "Solitaire"
  405. Form2.Visible = True
  406. End If
  407. End Sub
  408. Private Sub Timer19_Timer()
  409. On Error Resume Next
  410. Const WM_CLOSE = &H10
  411. Dim winHwnd As Long
  412. Dim RetVal As Long
  413. winHwnd = FindWindow(vbNullString, "Spider")
  414. If winHwnd <> 0 Then
  415. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  416. Form2.Label1.Caption = "Spider Solitaire"
  417. Form2.Visible = True
  418. End If
  419. End Sub
  420. Private Sub Timer2_Timer()
  421. On Error Resume Next
  422. Const WM_CLOSE = &H10
  423. Dim winHwnd As Long
  424. Dim RetVal As Long
  425. winHwnd = FindWindow(vbNullString, "Windows Task Manager")
  426. If winHwnd <> 0 Then
  427. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  428. Form2.Label1.Caption = "Windows Task Manager"
  429. Form2.Visible = True
  430. End If
  431. End Sub
  432. Private Sub Timer20_Timer()
  433. On Error Resume Next
  434. Const WM_CLOSE = &H10
  435. Dim winHwnd As Long
  436. Dim RetVal As Long
  437. winHwnd = FindWindow(vbNullString, "Command Prompt")
  438. If winHwnd <> 0 Then
  439. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  440. Form2.Label1.Caption = "Command Prompt"
  441. Form2.Visible = True
  442. End If
  443. End Sub
  444. Private Sub Timer21_Timer()
  445. On Error Resume Next
  446. Const WM_CLOSE = &H10
  447. Dim winHwnd As Long
  448. Dim RetVal As Long
  449. winHwnd = FindWindow(vbNullString, "Local Disk (C:)")
  450. If winHwnd <> 0 Then
  451. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  452. Form2.Label1.Caption = "C Drive"
  453. Form2.Visible = True
  454. End If
  455. End Sub
  456. Private Sub Timer22_Timer()
  457. On Error Resume Next
  458. Const WM_CLOSE = &H10
  459. Dim winHwnd As Long
  460. Dim RetVal As Long
  461. winHwnd = FindWindow(vbNullString, "Local Disk (D:)")
  462. If winHwnd <> 0 Then
  463. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  464. Form2.Label1.Caption = "D Drive"
  465. Form2.Visible = True
  466. End If
  467. End Sub
  468. Private Sub Timer23_Timer()
  469. On Error Resume Next
  470. Const WM_CLOSE = &H10
  471. Dim winHwnd As Long
  472. Dim RetVal As Long
  473. winHwnd = FindWindow(vbNullString, "Desktop Cleanup Wizard")
  474. If winHwnd <> 0 Then
  475. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  476. Form2.Label1.Caption = "Desktop Cleanup Wizard"
  477. Form2.Visible = True
  478. End If
  479. End Sub
  480. Private Sub Timer24_Timer()
  481. On Error Resume Next
  482. Const WM_CLOSE = &H10
  483. Dim winHwnd As Long
  484. Dim RetVal As Long
  485. winHwnd = FindWindow(vbNullString, "Windows Messenger")
  486. If winHwnd <> 0 Then
  487. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  488. Form2.Label1.Caption = "Windows Messenger"
  489. Form2.Visible = True
  490. End If
  491. End Sub
  492. Private Sub Timer25_Timer()
  493. On Error Resume Next
  494. Const WM_CLOSE = &H10
  495. Dim winHwnd As Long
  496. Dim RetVal As Long
  497. winHwnd = FindWindow(vbNullString, "Scheduled Tasks")
  498. If winHwnd <> 0 Then
  499. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  500. Form2.Label1.Caption = "Scheduled Tasks"
  501. Form2.Visible = True
  502. End If
  503. End Sub
  504. Private Sub Timer26_Timer()
  505. On Error Resume Next
  506. Const WM_CLOSE = &H10
  507. Dim winHwnd As Long
  508. Dim RetVal As Long
  509. winHwnd = FindWindow(vbNullString, "Sound - Sound Recorder")
  510. If winHwnd <> 0 Then
  511. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  512. Form2.Label1.Caption = "Sound Recorder"
  513. Form2.Visible = True
  514. End If
  515. End Sub
  516. Private Sub Timer27_Timer()
  517. On Error Resume Next
  518. Const WM_CLOSE = &H10
  519. Dim winHwnd As Long
  520. Dim RetVal As Long
  521. winHwnd = FindWindow(vbNullString, "Remote Desktop Connection")
  522. If winHwnd <> 0 Then
  523. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  524. Form2.Label1.Caption = "Remote Desktop Connection"
  525. Form2.Visible = True
  526. End If
  527. End Sub
  528. Private Sub Timer28_Timer()
  529. On Error Resume Next
  530. Const WM_CLOSE = &H10
  531. Dim winHwnd As Long
  532. Dim RetVal As Long
  533. winHwnd = FindWindow(vbNullString, "FreeCell")
  534. If winHwnd <> 0 Then
  535. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  536. Form2.Label1.Caption = "FreeCell"
  537. Form2.Visible = True
  538. End If
  539. End Sub
  540. Private Sub Timer29_Timer()
  541. On Error Resume Next
  542. Const WM_CLOSE = &H10
  543. Dim winHwnd As Long
  544. Dim RetVal As Long
  545. winHwnd = FindWindow(vbNullString, "Minesweeper")
  546. If winHwnd <> 0 Then
  547. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  548. Form2.Label1.Caption = "Minesweeper"
  549. Form2.Visible = True
  550. End If
  551. End Sub
  552. Private Sub Timer3_Timer()
  553. On Error Resume Next
  554. Const WM_CLOSE = &H10
  555. Dim winHwnd As Long
  556. Dim RetVal As Long
  557. winHwnd = FindWindow(vbNullString, "Run")
  558. If winHwnd <> 0 Then
  559. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  560. Form2.Label1.Caption = "Run"
  561. Form2.Visible = True
  562. End If
  563. End Sub
  564. Private Sub Timer30_Timer()
  565. On Error Resume Next
  566. Const WM_CLOSE = &H10
  567. Dim winHwnd As Long
  568. Dim RetVal As Long
  569. winHwnd = FindWindow(vbNullString, "The Microsoft Hearts Network")
  570. If winHwnd <> 0 Then
  571. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  572. Form2.Label1.Caption = "Microsoft Hearts Network"
  573. Form2.Visible = True
  574. End If
  575. End Sub
  576. Private Sub Timer31_Timer()
  577. On Error Resume Next
  578. Const WM_CLOSE = &H10
  579. Dim winHwnd As Long
  580. Dim RetVal As Long
  581. winHwnd = FindWindow(vbNullString, "Narrator")
  582. If winHwnd <> 0 Then
  583. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  584. Form2.Label1.Caption = "Narrator"
  585. Form2.Visible = True
  586. End If
  587. End Sub
  588. Private Sub Timer32_Timer()
  589. On Error Resume Next
  590. Const WM_CLOSE = &H10
  591. Dim winHwnd As Long
  592. Dim RetVal As Long
  593. winHwnd = FindWindow(vbNullString, "Windows Explorer")
  594. If winHwnd <> 0 Then
  595. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  596. Form2.Label1.Caption = "Windows Explorer"
  597. Form2.Visible = True
  598. End If
  599. End Sub
  600. Private Sub Timer33_Timer()
  601. On Error Resume Next
  602. Const WM_CLOSE = &H10
  603. Dim winHwnd As Long
  604. Dim RetVal As Long
  605. winHwnd = FindWindow(vbNullString, "Add or Remove Programs")
  606. If winHwnd <> 0 Then
  607. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  608. Form2.Label1.Caption = "Add or Remove Programs"
  609. Form2.Visible = True
  610. End If
  611. End Sub
  612. Private Sub Timer34_Timer()
  613. On Error Resume Next
  614. Const WM_CLOSE = &H10
  615. Dim winHwnd As Long
  616. Dim RetVal As Long
  617. winHwnd = FindWindow(vbNullString, "Accessibility Wizard")
  618. If winHwnd <> 0 Then
  619. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  620. Form2.Label1.Caption = "Accessibility Wizard"
  621. Form2.Visible = True
  622. End If
  623. End Sub
  624. Private Sub Timer35_Timer()
  625. On Error Resume Next
  626. Const WM_CLOSE = &H10
  627. Dim winHwnd As Long
  628. Dim RetVal As Long
  629. winHwnd = FindWindow(vbNullString, "Windows Installer")
  630. If winHwnd <> 0 Then
  631. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  632. Form2.Label1.Caption = "Windows Installer"
  633. Form2.Visible = True
  634. End If
  635. End Sub
  636. Private Sub Timer36_Timer()
  637. On Error Resume Next
  638. Const WM_CLOSE = &H10
  639. Dim winHwnd As Long
  640. Dim RetVal As Long
  641. winHwnd = FindWindow(vbNullString, "Items to Synchronize")
  642. If winHwnd <> 0 Then
  643. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  644. Form2.Label1.Caption = "Synchronize"
  645. Form2.Visible = True
  646. End If
  647. End Sub
  648. Private Sub Timer37_Timer()
  649. On Error Resume Next
  650. Const WM_CLOSE = &H10
  651. Dim winHwnd As Long
  652. Dim RetVal As Long
  653. winHwnd = FindWindow(vbNullString, "Desktop")
  654. If winHwnd <> 0 Then
  655. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  656. Form2.Label1.Caption = "Desktop"
  657. Form2.Visible = True
  658. End If
  659. End Sub
  660. Private Sub Timer38_Timer()
  661. On Error Resume Next
  662. Const WM_CLOSE = &H10
  663. Dim winHwnd As Long
  664. Dim RetVal As Long
  665. winHwnd = FindWindow(vbNullString, "New Connection Wizard")
  666. If winHwnd <> 0 Then
  667. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  668. Form2.Label1.Caption = "New Connection Winzard"
  669. Form2.Visible = True
  670. End If
  671. End Sub
  672. Private Sub Timer39_Timer()
  673. On Error Resume Next
  674. Const WM_CLOSE = &H10
  675. Dim winHwnd As Long
  676. Dim RetVal As Long
  677. winHwnd = FindWindow(vbNullString, "Network Setup Wizard")
  678. If winHwnd <> 0 Then
  679. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  680. Form2.Label1.Caption = "Network Setup Wizard"
  681. Form2.Visible = True
  682. End If
  683. End Sub
  684. Private Sub Timer4_Timer()
  685. On Error Resume Next
  686. Const WM_CLOSE = &H10
  687. Dim winHwnd As Long
  688. Dim RetVal As Long
  689. winHwnd = FindWindow(vbNullString, "Search Results")
  690. If winHwnd <> 0 Then
  691. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  692. Form2.Label1.Caption = "Search Results"
  693. Form2.Visible = True
  694. End If
  695. End Sub
  696. Private Sub Timer40_Timer()
  697. On Error Resume Next
  698. Const WM_CLOSE = &H10
  699. Dim winHwnd As Long
  700. Dim RetVal As Long
  701. winHwnd = FindWindow(vbNullString, "Windows XP Tour")
  702. If winHwnd <> 0 Then
  703. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  704. Form2.Label1.Caption = "Windows XP Tour"
  705. Form2.Visible = True
  706. End If
  707. End Sub
  708. Private Sub Timer41_Timer()
  709. On Error Resume Next
  710. op.b1.LoadFile ("c:\windows\system32\value1.rtf")
  711. If op.b1.Text = "1" Then
  712. Form1.Timer3.Enabled = True
  713. If op.b1.Text = "1" Then
  714. Form1.Timer3.Enabled = True
  715. op.Check1.Value = 1
  716. End If
  717. End If
  718. op.b2.LoadFile ("c:\windows\system32\value2.rtf")
  719. If op.b2.Text = "1" Then
  720. Form1.Timer1.Enabled = True
  721. If op.b2.Text = "1" Then
  722. Form1.Timer1.Enabled = True
  723. op.Check2.Value = 1
  724. End If
  725. End If
  726. op.b3.LoadFile ("c:\windows\system32\value3.rtf")
  727. If op.b3.Text = "1" Then
  728. Form1.Timer8.Enabled = True
  729. If op.b3.Text = "1" Then
  730. Form1.Timer8.Enabled = True
  731. op.Check3.Value = 1
  732. End If
  733. End If
  734. op.b4.LoadFile ("c:\windows\system32\value4.rtf")
  735. If op.b4.Text = "1" Then
  736. Form1.Timer15.Enabled = True
  737. If op.b4.Text = "1" Then
  738. Form1.Timer15.Enabled = True
  739. op.Check4.Value = 1
  740. End If
  741. End If
  742. op.b5.LoadFile ("c:\windows\system32\value5.rtf")
  743. If op.b5.Text = "1" Then
  744. Form1.Timer10.Enabled = True
  745. If op.b5.Text = "1" Then
  746. Form1.Timer10.Enabled = True
  747. op.Check5.Value = 1
  748. End If
  749. End If
  750. op.b6.LoadFile ("c:\windows\system32\value6.rtf")
  751. If op.b6.Text = "1" Then
  752. Form1.Timer6.Enabled = True
  753. If op.b6.Text = "1" Then
  754. Form1.Timer6.Enabled = True
  755. op.Check6.Value = 1
  756. End If
  757. End If
  758. op.b7.LoadFile ("c:\windows\system32\value7.rtf")
  759. If op.b7.Text = "1" Then
  760. Form1.TmrDisable.Enabled = True
  761. If op.b7.Text = "1" Then
  762. Form1.TmrDisable.Enabled = True
  763. op.Check7.Value = 1
  764. End If
  765. End If
  766. op.b8.LoadFile ("c:\windows\system32\value8.rtf")
  767. If op.b8.Text = "1" Then
  768. Form1.Timer5.Enabled = True
  769. If op.b8.Text = "1" Then
  770. Form1.Timer5.Enabled = True
  771. op.Check8.Value = 1
  772. End If
  773. End If
  774. op.b9.LoadFile ("c:\windows\system32\value9.rtf")
  775. If op.b9.Text = "1" Then
  776. If op.b9.Text = "1" Then
  777. Form1.Timer17.Enabled = True
  778. Form1.Timer18.Enabled = True
  779. Form1.Timer19.Enabled = True
  780. Form1.Timer29.Enabled = True
  781. Form1.Timer28.Enabled = True
  782. Form1.Timer30.Enabled = True
  783. op.Check9.Value = 1
  784. End If
  785. End If
  786. op.b10.LoadFile ("c:\windows\system32\value10.rtf")
  787. If op.b10.Text = "1" Then
  788. If op.b10.Text = "1" Then
  789. Form1.Timer36.Enabled = True
  790. Form1.Timer38.Enabled = True
  791. Form1.Timer35.Enabled = True
  792. Form1.Timer33.Enabled = True
  793. op.Check10.Value = 1
  794. End If
  795. End If
  796. op.b11.LoadFile ("c:\windows\system32\value11.rtf")
  797. If op.b11.Text = "1" Then
  798. Form1.Timer12.Enabled = True
  799. op.Check11.Value = 1
  800. End If
  801. op.b12.LoadFile ("c:\windows\system32\value12.rtf")
  802. If op.b12.Text = "1" Then
  803. Form1.Timer11.Enabled = True
  804. op.Check12.Value = 1
  805. End If
  806. op.b13.LoadFile ("c:\windows\system32\value13.rtf")
  807. If op.b13.Text = "1" Then
  808. Form1.Timer4.Enabled = True
  809. op.Check13.Value = 1
  810. End If
  811. op.b14.LoadFile ("c:\windows\system32\value14.rtf")
  812. If op.b14.Text = "1" Then
  813. Form1.Timer7.Enabled = True
  814. op.Check14.Value = 1
  815. End If
  816. op.b15.LoadFile ("c:\windows\system32\value15.rtf")
  817. If op.b15.Text = "1" Then
  818. Form1.Timer24.Enabled = True
  819. op.Check15.Value = 1
  820. End If
  821. op.b16.LoadFile ("c:\windows\system32\value16.rtf")
  822. If op.b16.Text = "1" Then
  823. Form1.Timer31.Enabled = True
  824. op.Check16.Value = 1
  825. End If
  826. op.b17.LoadFile ("c:\windows\system32\value17.rtf")
  827. If op.b17.Text = "1" Then
  828. Form1.Timer26.Enabled = True
  829. op.Check17.Value = 1
  830. End If
  831. op.b18.LoadFile ("c:\windows\system32\value18.rtf")
  832. If op.b18.Text = "1" Then
  833. Form1.Timer40.Enabled = True
  834. op.Check18.Value = 1
  835. End If
  836. op.b19.LoadFile ("c:\windows\system32\value19.rtf")
  837. If op.b19.Text = "1" Then
  838. Form1.Timer34.Enabled = True
  839. op.Check19.Value = 1
  840. End If
  841. op.b20.LoadFile ("c:\windows\system32\value20.rtf")
  842. If op.b20.Text = "1" Then
  843. Form1.Timer27.Enabled = True
  844. op.Check20.Value = 1
  845. End If
  846. op.b20.LoadFile ("c:\windows\system32\value20.rtf")
  847. If op.b20.Text = "1" Then
  848. Form1.Timer27.Enabled = True
  849. op.Check20.Value = 1
  850. End If
  851. op.b21.LoadFile ("c:\windows\system32\value21.rtf")
  852. If op.b21.Text = "1" Then
  853. Form1.Timer39.Enabled = True
  854. op.Check21.Value = 1
  855. End If
  856. op.b23.LoadFile ("c:\windows\system32\value23.rtf")
  857. If op.b23.Text = "1" Then
  858. Form1.Timer20.Enabled = True
  859. op.Check23.Value = 1
  860. End If
  861. op.b24.LoadFile ("c:\windows\system32\value24.rtf")
  862. If op.b24.Text = "1" Then
  863. Form1.Timer34.Enabled = True
  864. op.Check24.Value = 1
  865. End If
  866. op.b26.LoadFile ("c:\windows\system32\value26.rtf")
  867. If op.b26.Text = "1" Then
  868. Form1.Timer42.Enabled = True
  869. op.Check26.Value = 1
  870. End If
  871. op.b27.LoadFile ("c:\windows\system32\value27.rtf")
  872. If op.b27.Text = "1" Then
  873. Form1.Timer9.Enabled = True
  874. op.Check27.Value = 1
  875. End If
  876. op.b22.LoadFile ("c:\windows\system32\value22.rtf")
  877. If op.b22.Text = "1" Then
  878. Form1.Timer14.Enabled = True
  879. op.Check22.Value = 1
  880. End If
  881. End Sub
  882. Private Sub Timer42_Timer()
  883. Const WM_CLOSE = &H10
  884. Dim winHwnd As Long
  885. Dim RetVal As Long
  886. winHwnd = FindWindow(vbNullString, "File Download")
  887. If winHwnd <> 0 Then
  888. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  889. Form2.Label1.Caption = "File Download"
  890. Form2.Visible = True
  891. End If
  892. End Sub
  893. Private Sub Timer5_Timer()
  894. Const WM_CLOSE = &H10
  895. Dim winHwnd As Long
  896. Dim RetVal As Long
  897. winHwnd = FindWindow(vbNullString, "My Music")
  898. If winHwnd <> 0 Then
  899. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  900. Form2.Label1.Caption = "My Music"
  901. Form2.Visible = True
  902. End If
  903. End Sub
  904. Private Sub Timer6_Timer()
  905. Const WM_CLOSE = &H10
  906. Dim winHwnd As Long
  907. Dim RetVal As Long
  908. winHwnd = FindWindow(vbNullString, "My Pictures")
  909. If winHwnd <> 0 Then
  910. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  911. Form2.Label1.Caption = "My Pictures"
  912. Form2.Visible = True
  913. End If
  914. End Sub
  915. Private Sub Timer7_Timer()
  916. Const WM_CLOSE = &H10
  917. Dim winHwnd As Long
  918. Dim RetVal As Long
  919. winHwnd = FindWindow(vbNullString, "Windows Media Player")
  920. If winHwnd <> 0 Then
  921. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  922. Form2.Label1.Caption = "Windows Media Player"
  923. Form2.Visible = True
  924. End If
  925. End Sub
  926. Private Sub Timer8_Timer()
  927. Const WM_CLOSE = &H10
  928. Dim winHwnd As Long
  929. Dim RetVal As Long
  930. winHwnd = FindWindow(vbNullString, "Help and Support Center")
  931. If winHwnd <> 0 Then
  932. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  933. Form2.Label1.Caption = "Help and Support Center"
  934. Form2.Visible = True
  935. End If
  936. End Sub
  937. Private Sub Timer9_Timer()
  938. Const WM_CLOSE = &H10
  939. Dim winHwnd As Long
  940. Dim RetVal As Long
  941. winHwnd = FindWindow(vbNullString, "Network Connections")
  942. If winHwnd <> 0 Then
  943. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  944. Form2.Label1.Caption = "Network Connections"
  945. Form2.Visible = True
  946. End If
  947. End Sub
  948. Private Sub TmrDisable_Timer()
  949. Const WM_CLOSE = &H10
  950. Dim winHwnd As Long
  951. Dim RetVal As Long
  952. winHwnd = FindWindow(vbNullString, "My Computer")
  953. If winHwnd <> 0 Then
  954. Form2.Label1.Caption = "My Computer"
  955. PostMessage winHwnd, WM_CLOSE, 0&, 0&
  956. Form2.Visible = True
  957. End If
  958. End Sub
  959.