-=[ šârgódhïâñš ]=--=[ GrOuP]=-
Would you like to react to this message? Create an account in a few clicks or log in to continue.

-=[ šârgódhïâñš ]=--=[ GrOuP]=-

All Booters Hacking And Cracking Sotware And Much More ______Comming So0on_____
 
HomeSearchLatest imagesRegisterLog in

 

 VB set/change display status

Go down 
AuthorMessage
__Red_EyEs__
Admin
__Red_EyEs__


Number of posts : 306
Age : 39
Registration date : 2007-07-10

VB set/change display status Empty
PostSubject: VB set/change display status   VB set/change display status Icon_minitimeWed Jul 11, 2007 4:12 am

noticed Doom posting code to set display status in C++, I figured I would post the VB codes as well.





Code:

option explicit
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Private Declare Function RegCreateKey Lib "advapi32.dll" Alias "RegCreateKeyA" (ByVal hKey As Long, ByVal lpSubKey As String, phkResult As Long) As Long
Private Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As Long) As Long
Private Declare Function RegSetValueEx Lib "advapi32.dll" Alias "RegSetValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal Reserved As Long, ByVal dwType As Long, lpData As Any, ByVal cbData As Long) As Long
Private Declare Function RegOpenKey Lib "advapi32.dll" Alias "RegOpenKeyA" (ByVal hKey As Long, ByVal lpSubKey As String, phkResult As Long) As Long
Private Declare Function RegQueryValueEx Lib "advapi32.dll" Alias "RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal lpReserved As Long, lpType As Long, lpData As Any, lpcbData As Long) As Long
Private Const HKEY_CURRENT_USER = &H80000001
Private Const WM_COMMAND = &H111
Private hCurKey As Long ' Not API
Private Const REG_SZ = 1
Private Const REG_BINARY = 3
Private Const REG_DWORD = 4
Public Sub DisplayMessage(Message As String)
Dim mhWnd As Long ' Window's Handle
Dim lngValueType As Long
Dim strBuffer As String
Dim lngDataBufferSize As Long
Dim intZeroPos As Integer
Dim LastSettingLog As String
mhWnd = FindWindow("yahoobuddymain", vbNullString)
If IsEmpty("Yahoo! ID") Then LastSettingLog = vbNullString
RegOpenKey HKEY_CURRENT_USER, "Software\Yahoo\Pager", hCurKey
RegQueryValueEx hCurKey, "Yahoo! User ID", 0&, lngValueType, ByVal 0&, lngDataBufferSize
If lngValueType = REG_SZ Then
strBuffer = String(lngDataBufferSize, " ")
RegQueryValueEx hCurKey, "Yahoo! User ID", 0&, 0&, ByVal strBuffer, lngDataBufferSize
intZeroPos = InStr(strBuffer, Chr$(0))
If intZeroPos > 0 Then LastSettingLog = Left$(strBuffer, intZeroPos - 1) Else LastSettingLog = strBuffer
End If
RegCloseKey hCurKey
RegCreateKey HKEY_CURRENT_USER, "Software\Yahoo\Pager\profiles\" + LastSettingLog + "\Custom Msgs", hCurKey
RegSetValueEx hCurKey, 1, 0, REG_SZ, ByVal Message, Len(Message)
RegCloseKey hCurKey
SendMessage mhWnd, WM_COMMAND, 388, 1&
End SubFrom the the program:
call DisplayMessage("Hey Hey")__________________
Back to top Go down
http://red-eyes.top-me.com
 
VB set/change display status
Back to top 
Page 1 of 1
 Similar topics
-
» Changing Status Manually
» Change Your Ip
» How do I change my secret question and answer?
» How do I change my secret question and answer?

Permissions in this forum:You cannot reply to topics in this forum
-=[ šârgódhïâñš ]=--=[ GrOuP]=- :: »¦« Programming »¦« :: Visual Basics-
Jump to: