Results 1 to 5 of 5

Thread: **Resolved** Whats the deal with the 256?

Threaded View

  1. #1

    Thread Starter
    Frenzied Member KayJay's Avatar
    Join Date
    Jul 2001
    Location
    Chennai
    Posts
    1,849

    Question **Resolved** Whats the deal with the 256?

    VB Code:
    1. 'In general section
    2. Const EWX_LOGOFF = 0
    3. Const EWX_SHUTDOWN = 1
    4. Const EWX_REBOOT = 2
    5. Const EWX_FORCE = 4
    6. Private Declare Function ExitWindowsEx Lib "user32" (ByVal uFlags As Long, ByVal dwReserved As Long) As Long
    7. Private Sub Form_Load()
    8.     'KPD-Team 1998
    9.     'URL: [url]http://www.allapi.net/[/url]
    10.     'E-Mail: [email][email protected][/email]
    11. [b][color=red] msg = MsgBox("This program is going to reboot your computer. Press OK to continue or Cancel to stop.", vbCritical + vbOKCancel + 256, App.Title)[/color][/b]
    12.     If msg = vbCancel Then End
    13.     'reboot the computer
    14.     ret& = ExitWindowsEx(EWX_FORCE Or EWX_REBOOT, 0)
    15. End Sub

    So whats the deal with 2^8
    Last edited by KayJay; Nov 7th, 2002 at 06:04 AM.

    "Brothers, you asked for it."
    ...Francisco Domingo Carlos Andres Sebastian D'Anconia

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width