- Add an initial stub of DSound
[reactos.git] / reactos / dll / directx / dsound_new / dsound.c
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS Configuration of network devices
4 * FILE: dll/directx/dsound_new/dsound.c
5 * PURPOSE: Handles DSound initialization
6 *
7 * PROGRAMMERS: Johannes Anderwald (janderwald@reactos.org)
8 */
9
10 #include "precomp.h"
11
12
13 HINSTANCE dsound_hInstance;
14
15 HRESULT
16 WINAPI
17 DllCanUnloadNow()
18 {
19 return S_FALSE;
20 }
21
22 HRESULT
23 WINAPI
24 DllGetClassObject(
25 REFCLSID rclsid,
26 REFIID riid,
27 LPVOID *ppv)
28 {
29 UNIMPLEMENTED
30 return CLASS_E_CLASSNOTAVAILABLE;
31 }
32
33 BOOL
34 WINAPI
35 DllMain(
36 HINSTANCE hInstDLL,
37 DWORD fdwReason,
38 LPVOID lpvReserved)
39 {
40 switch (fdwReason)
41 {
42 case DLL_PROCESS_ATTACH:
43 dsound_hInstance = hInstDLL;
44 DisableThreadLibraryCalls(dsound_hInstance);
45 break;
46 default:
47 break;
48 }
49
50 return TRUE;
51 }
52