Hi,
Does anyone know how I can hide my VB program in Win 98 and Windows 2000.
I do not want to create 2 seperate programs, one for each OS. I have seen some code for hiding win 98 apps but this does not seem to work in Windows 2000.
The following code will not work correctly in Win98, as it still displays the running app in the task manager.
App.TaskVisible = False
The following code seems to work on win98 only but crashes in Windows 2000.
Public Declare Function RegisterServiceProcess Lib "kernel32" (ByVal ProcessID As Long, ByVal ServiceFlags As Long) As Long
Public Declare Function GetCurrentProcessId Lib "kernel32" () As Long
RegisterServiceProcess GetCurrentProcessId, 1 'Hide app
Any ideas in how I can hide the app on both Operating systems ?
Thanks.
Al.
Does anyone know how I can hide my VB program in Win 98 and Windows 2000.
I do not want to create 2 seperate programs, one for each OS. I have seen some code for hiding win 98 apps but this does not seem to work in Windows 2000.
The following code will not work correctly in Win98, as it still displays the running app in the task manager.
App.TaskVisible = False
The following code seems to work on win98 only but crashes in Windows 2000.
Public Declare Function RegisterServiceProcess Lib "kernel32" (ByVal ProcessID As Long, ByVal ServiceFlags As Long) As Long
Public Declare Function GetCurrentProcessId Lib "kernel32" () As Long
RegisterServiceProcess GetCurrentProcessId, 1 'Hide app
Any ideas in how I can hide the app on both Operating systems ?
Thanks.
Al.