EG Information

Main Index
EG Manual
Disclaimer
Legal Information
Hall of Fame
Hall of Shame
Member Rankings
Members List
Meet the Staff

Training Missions

Read Me First New
Basic Skills
Realistic Scenarios
Cryptography
Software Cracking
Linux ELF Binary Cracking
Logical Thinking
Programming
Captcha Cracking New
Patching
Steganography
Deface This Wall
/dev/null
/dev/urandom
/dev/extra New

Knowledge Bank

Discussion Forums
Enigma Chat New
RSS Feeds RSS
Articles / Tutorials
Videos
Online EG MP3 Player Radio
Enigma Zine
Downloads
Tools New

Code Resources

Submit Code
Ajax
ASM
Bash
C
CPP
Csharp
Delphi
Haskell
Java
Javascript
Jython
Lisp
mIRC
MySQL
Perl
PHP
Python
QBASIC
VisualBasic

Hakipedia: An open collaborative for all your information security needs.

The Urinal

Click Here To Vote For EG!

Has Enigma Group Helped You? Then Help Us By Advertising For Us. Place One Of The Following Images On Your Site.

enigma group

enigma group

enigma group

enigma group

Enigma Group's Code Bank


Windows API

By: Link-  -  Date Submitted: 2008-08-16 14:39:21

  1. Private Sub Command1_Click() 'Flash the window title in the taskbar
  2. bInvert = 1
  3. FlashWindow Me.hwnd, bInvert
  4. End Sub
  5.  
  6. Private Sub Command2_Click() 'Getting computer name and put it in text1
  7. Text1.Text = GetComputerName(lpBuffer, 11000)
  8. End Sub
  9.  
  10. Private Sub Timer1_Timer() 'Window on top Command Button
  11. BringWindowToTop Me.hwnd
  12. End Sub
  13.  
  14. Private Sub Command3_Click() 'Shutdown Dialog Command Button
  15. ShutDown_DIALOG
  16. End Sub
  17.  
  18. Private Sub Command4_Click() 'Quit Command Button
  19. ExitProcess (0)
  20. End Sub
  21.  
  22. ------------------------------------------------------------------
  23. Create a module and paste this code in it
  24. ------------------------------------------------------------------
  25.  
  26. Public Declare Function FlashWindow Lib "user32" (ByVal hwnd As Long, ByVal bInvert As Long) As Long
  27. Public Declare Function GetComputerName Lib "kernel32" Alias "GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As Long
  28. Public Declare Function BringWindowToTop Lib "user32" (ByVal hwnd As Long) As Long
  29. Private Declare Function SHShutDownDialog Lib "shell32" Alias "#60" (ByVal YourGuess As Long) As Long
  30. Public Declare Sub ExitProcess Lib "kernel32" (ByVal uExitCode As Long)
  31.  
  32. Function ShutDown_DIALOG()
  33. ShutDown_DIALOG = SHShutDownDialog(0)
  34. End Function
  35.  
Return to visualbasic category list

Who's Online

409 Guests, 117 Users
hettoo, N4g4c3N, somisettynaresh, raven001, c0re, aVoid, qlerner, Distorted, Link-, Ops, apablo, hemiptera, Predatorc, Bloodmaster25, sameer kumar, damo, Nasrudin, Rex_Mundi, bakiido, klesco, destroyer, Bago, Psiber_Syn, psychomarine, darkang3l, m4r71an, shane007, glockz, lacanian, iwanlearn, cutie117098, Drakelx, jarlskov, Vahakn, buffer, flower, Brave, KingSpawn, avalor, RedEvolution, tkb2999, EngGi235, dark_void, hacker807, noother, omnipresence, blink_212, NotMyOwn, lgee227, Ghostrider, Calumoo, livinbeneath, deskata, lionaneesh, cracker, data, invas10n, LiquidSnake, TheFender, kcaz, T-Metal, ace386, hulk9914, BinaryShinigami, cd365, st3alth, Burning_Hardware, mark63534, Pizza, Lingt, spumoni27, j0sh, KaosFactor, Protagoras, DeKoala, pimpsta5000, computerbp13, Ausome1, enyo, Ultraminor, mm256, Bearmaul, sirEgghead, cracker18, Ashok_thepower, C, Base, chaos-angel, ergo, DnA-Ender, InjectioN, Virgin Mary, xXxAngelBabykxXx, obrigadoo, timmy, ishkur88, TrAnE, forty2, SaMTHG, FatalNIX, totalnoob, figjam, knight_pars, snozzberries, naren211, zofy, tucak, strycnine, TheRetech, chekifr, teehee, Zheka, aloksaini, greatness87, tnhtm, piking, nicks_707