You cannot hide your application from the process tab with any windows APIs. Why would some one hide its application from the process tab other than for malicious purpose. And is that your purpose also?
How ever it is possible if we modify some kernal mode strcutures. But for that you need to write some kernal drivers. I dont know more details about that..
For what purpose?
If the purpose is remotely similar to "I don't want the user to know that my application is running" you can stop asking questions immediately, because that's really anti-social behaviour and no one here will encourage that.
Otherwise you may consider a service.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
I am using directsound to do sound recording - everything works fine.
"I have loop and event signals my to read (save buffer)
..regular way how to do capture (taken from the sample)
It runs all day long, day after day (continous) but sometime happen, "there is no data"
(it happened ones after month of working and so it is hard to set it up for debug)
1) there is event but buffer size is zero
2) or there is no event at all
When this happen, it never restore
i have to restart program (probaly close and open device again will be enough)
It happened ones and it was not on my computer.
"I know just symtoms"
Actualy program did not crash, it pretend recording but
there was no data comming and so empty file was created.
When people looked into directory, and there were just empty
files they realize something is wrong with my program.
They just stopped it and start again and it works again correctly.