#include "audiosrv.h"
#include <debug.h>
Go to the source code of this file.
◆ NDEBUG
◆ StartAudioService()
BOOL StartAudioService |
( |
SC_HANDLE |
hSCManager, |
|
|
LPWSTR |
ServiceName, |
|
|
ULONG |
RetryCount |
|
) |
| |
Definition at line 43 of file services.c.
47{
48 SC_HANDLE hService;
50
52 if (!hService)
53 {
56 }
57
59 {
63 }
64
66
69}
BOOL WaitForService(SC_HANDLE hService, ULONG RetryCount)
static WCHAR ServiceName[]
BOOL WINAPI CloseServiceHandle(SC_HANDLE hSCObject)
DWORD WINAPI GetLastError(void)
#define SERVICE_ALL_ACCESS
Referenced by StartSystemAudioServices().
◆ StartSystemAudioServices()
Definition at line 72 of file services.c.
73{
75
76 DPRINT(
"Starting system audio services\n");
77
80 {
83 }
84
85 DPRINT(
"Starting sysaudio service\n");
87 DPRINT(
"Starting wdmaud service\n");
89
92}
BOOL StartAudioService(SC_HANDLE hSCManager, LPWSTR ServiceName, ULONG RetryCount)
#define SC_MANAGER_CONNECT
Referenced by ServiceMain().
◆ WaitForService()
BOOL WaitForService |
( |
SC_HANDLE |
hService, |
|
|
ULONG |
RetryCount |
|
) |
| |
Definition at line 14 of file services.c.
17{
21
22 do
23 {
25 {
27 break;
28 }
29
32
34
35 }
while (
Index++ < RetryCount);
36
37 DPRINT(
"Timeout while waiting for service to become ready %p\n", hService);
38
40}
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
BOOL WINAPI QueryServiceStatusEx(SC_HANDLE hService, SC_STATUS_TYPE InfoLevel, LPBYTE lpBuffer, DWORD cbBufSize, LPDWORD pcbBytesNeeded)
VOID WINAPI DECLSPEC_HOTPATCH Sleep(IN DWORD dwMilliseconds)
_Must_inspect_result_ _In_ WDFCHILDLIST _In_ PWDF_CHILD_LIST_ITERATOR _Out_ WDFDEVICE _Inout_opt_ PWDF_CHILD_RETRIEVE_INFO Info
_In_ WDFCOLLECTION _In_ ULONG Index
Referenced by StartAudioService().