Behold...I have the Answer!
ok guys...i stayed up really late last night but i now know how you can hide a program from the task menu in Win 9x.
You have to use:
Public Declare Function GetModuleHandle Lib "kernel32" Alias "GetModuleHandleA" (ByVal lpModuleName As String) As Long
this will get you the module handle. eg: Kernel32.dll
next you need to use the funciton:
Public Declare Function GetProcAddress Lib "kernel32" Alias "GetProcAddress" (ByVal hModule As Long, ByVal lpProcName As String) As Long
this will allow you to access the RegisterServiceProcess without getting a run time of error of "Could not find entry point into specified dll"
After this, you can use the code mathew supplied...
And there ya have it...you heard it here first!
ps: will not work in NT. but app.taskvisible will do in nt!