I did some searches and am not able to find what i'm looking for. I have 2 questions I could use some help on. The first question is how to save a screen capture to a file when using bitblt. Im using the following code from a tutorial
I can not for the life of my figure out how to save the Image without using a Picturebox. This is a DLL file that does use a modal form but the form when not be loaded anymore when this function is triggered. Im using it to take screenshots in game during games played on my anti cheat.
The 2nd question I have is what should I look up or look into for finding a hidden process. I log some of the open processes to make sure no known cheats are running or cheats that I dont know about yet. Some users can use a program such as process magic or fu_rootkit to hide the process, it hides from task manager thus hiding from my logs.
Code:
'First, minimize this window
Me.WindowState = vbMinimized
'Get the hWnd of the screen
Dim scrHwnd As Long
scrHwnd = GetDesktopWindow
'Now, assign an hDC to the hWnd we generated
Dim shDC As Long
shDC = GetDC(scrHwnd)
'Determine the size of the screen
Dim screenWidth As Long, screenHeight As Long
screenWidth = Screen.Width \ Screen.TwipsPerPixelX
screenHeight = Screen.Height \ Screen.TwipsPerPixelY
'Copy the data from the screen hDC to this VB form
BitBlt FormScreenCapture.hDC, 0, 0, screenWidth, screenHeight, shDC, 0, 0, vbSrcCopy
'Release our hold on the screen's hDC
ReleaseDC scrHwnd, shDC
'Set the picture of the form to equal its image
FormScreenCapture.Picture = FormScreenCapture.Image
The 2nd question I have is what should I look up or look into for finding a hidden process. I log some of the open processes to make sure no known cheats are running or cheats that I dont know about yet. Some users can use a program such as process magic or fu_rootkit to hide the process, it hides from task manager thus hiding from my logs.