جمعه، شهریور ۱۰، ۱۳۸۵

ویژوال بیسیک Process مخفی کردن یک



گشتم نبود نگرد نیست

: مخفیش کرد Task List راهی نداره ولی میشه از XP در ویندوز

Const SW_HIDE = 0
Const GW_OWNER = 4
Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
Private Declare Function GetWindow Lib "user32" (ByVal hwnd As Long, ByVal wCmd As Long) As Long
ShowWindow GetWindow(hwnd, GW_OWNER), SW_HIDE


:ولی در میلینیوم به پایین

Private Declare Function RegisterServiceProcess Lib _
"kernel32.dll" (ByVal dwProcessId As Long, _
ByVal dwType As Long) As Long
''
'
''The GetCurrentProcessId function returns the process identifier of the calling process.
Private Declare Function GetCurrentProcessId Lib _
"kernel32.dll" () As Long

RegisterServiceProcess GetCurrentProcessId, 0
App.TaskVisible = False

نکته

. حذف شده است Kernal32.dll از RegisterServiceProcess از ویندوز 2000 به بعد

. شنیده ام و شنیده اید ولی گشتم نبود نگرد نیست User32.dll شایعاتی در مورد وجودش در

نظری ندارین ؟

نیاز داره؟ PIR کسی به نسخه ی فارسی
به درد خورده ؟

هیچ نظری موجود نیست: