home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l408 / 2.img / EXAMPLES.EXE / EXAMPLES / WINEXIT / WINEXIT.FRM (.txt) next >
Encoding:
Visual Basic Form  |  1991-04-11  |  2.4 KB  |  68 lines

  1. WinExit
  2. Exit Windows
  3. System
  4. Form1
  5. Label1
  6. Clicking on the Exit Windows button will invoke the standard Windows shutdown procedure, provided that all Windows tasks agree to terminate.
  7. System
  8. Label2
  9. If you are working inside the Visual Basic environment, and you have changed your application, you will *NOT* be prompted to save your work. This is because Windows knows that the termination request is 
  10. System
  11. Label3
  12. Ffrom Visual Basic and does not notify VB of the impending termination.
  13. System
  14. Command1
  15. Exit Windows
  16. System
  17. Command2
  18. Cancel
  19. System
  20. Label1
  21. Command1
  22. Command2
  23. Command2_Click
  24. Command1_ClickO
  25. Success
  26. ExitWindows
  27. Reserved/
  28. Form1
  29. Label2
  30. Label3
  31. SendMessage
  32. WM_QUERYENDSESSION
  33. OkToTerminate
  34. Form_Click
  35. TaskHandle
  36. GetCurrentTaskr
  37.     ParentWnd
  38.     GetParentG
  39. Owner
  40.     GetWindow
  41.     GW_OWNVER
  42. GW_OWNER
  43. Windows
  44. PostAppMessage:
  45. Message
  46. environment
  47. changed
  48. application
  49. prompted
  50. changes
  51.     Form_Load
  52. WinExit
  53. Command2_Click
  54. Command1_Click
  55. If you are running inside the VB "
  56. environment, and you have changed 
  57. your application, you will not be 
  58. prompted to save your changes!
  59. Exit Windows
  60.  If the function is successful, no code will be
  61.  executed after the ExitWindows call. If the
  62.  function is not successful, control will be
  63.  returned to your program.
  64.  Return errorlevel 1
  65.  If your code gets here, then a message has already
  66.  been displayed to the user, telling him to terminate
  67.  any running apps before terminating Windows.e
  68.