EG Information
Training Missions
Knowledge Bank
|
|
Enigma Group's Code Bank
Windows APIBy: Link- - Date Submitted: 2008-08-16 14:39:21 Private Sub Command1_Click() 'Flash the window title in the taskbar
bInvert = 1
FlashWindow Me.hwnd, bInvert
End Sub
Private Sub Command2_Click() 'Getting computer name and put it in text1
Text1.Text = GetComputerName(lpBuffer, 11000)
End Sub
Private Sub Timer1_Timer() 'Window on top Command Button
BringWindowToTop Me.hwnd
End Sub
Private Sub Command3_Click() 'Shutdown Dialog Command Button
ShutDown_DIALOG
End Sub
Private Sub Command4_Click() 'Quit Command Button
ExitProcess (0)
End Sub
------------------------------------------------------------------
Create a module and paste this code in it
------------------------------------------------------------------
Public Declare Function FlashWindow Lib "user32" (ByVal hwnd As Long, ByVal bInvert As Long) As Long
Public Declare Function GetComputerName Lib "kernel32" Alias "GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As Long
Public Declare Function BringWindowToTop Lib "user32" (ByVal hwnd As Long) As Long
Private Declare Function SHShutDownDialog Lib "shell32" Alias "#60" (ByVal YourGuess As Long) As Long
Public Declare Sub ExitProcess Lib "kernel32" (ByVal uExitCode As Long)
Function ShutDown_DIALOG()
ShutDown_DIALOG = SHShutDownDialog(0)
End Function
|
| Return to
visualbasic category list |
|
|
Who's Online
483 Guests, 101 Users ckryptix, Ios, viper0i0, Diznablo, rabbidmind, asapong, Nasrudin, CollapsingWalls, mehtaparag, bitstrike, jnony, C, Nicid1, Nusquam-Redono-Sapientia, bazcrown, saifulfaizan, The End, Ultraminor, psychomarine, st3alth, themastersinner, pgmrlink, login, lionaneesh, ishkur88, mahraja, Mac, chekifr, gandalf88, Vap0r, t0ast, tantrum6226, BnE, Distorted, Psiber_Syn, Ausome1, invas10n, oldgoat, freedaysbecumei, BinaryShinigami, Rex_Mundi, Red_beard, Strobeflux, s0m3nak3dguy, Descent, teehee, machupicchu, Genetix, Anandarl, NotMyOwn, thegamerdude, Godzila, popo12341234, RedEvolution, velocity_b, myne17, teto111, aVoid, Central-Gsm, 1101, JackalReborn, InjectioN, h4lted, c0re, DisPater, markt4death, splatta, Jackowacko, saint556, Pyron2312, Azerion, howsens, white.hat.gone.bad, vazzilly, pwunkz, Inverted, QuarterCask, Infernoe11, deskata, cr4ck3rj4ck, Blizer, jasonmax, j0sh, gwenwavor, N4g4c3N, spizeyboy, Network X, Uino59, Jae Cee, ianFDK, saykov, medhaavee, zofy, demonkiller410, Stumble, SaMTHG, kishore, Raze, helasraizam, Venom1019, Jakabo |
| |
|
|
|
|
|