[host] converted program to a windows hidden/background user app.

NvFBC will not start when running as a service, likely intentional
security of the API to prevent it from being abused.
This commit is contained in:
Geoffrey McRae
2017-11-01 03:23:46 +11:00
parent e935a09441
commit 01b10b3ee1
5 changed files with 32 additions and 162 deletions

View File

@@ -97,7 +97,7 @@ void Service::DeInitialize()
m_initialized = false;
}
bool Service::Process(HANDLE stopEvent)
bool Service::Process()
{
if (!m_initialized)
return false;
@@ -142,10 +142,7 @@ bool Service::Process(HANDLE stopEvent)
// wait for the host to notify that is it is ready to proceed
ResetEvent(m_readyEvent);
while(
stopEvent == INVALID_HANDLE_VALUE ||
(WaitForSingleObject(stopEvent, 0) == WAIT_OBJECT_0)
)
while(true)
{
if (!m_ivshmem->RingDoorbell(header->hostID, 0))
{