migrate substitution keywords to SVN
[reactos.git] / reactos / drivers / dd / sound / sb16.c
1 /* $Id$
2 *
3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS kernel
5 * FILE: services/dd/sound/sb16.c
6 * PURPOSE: SB16 device driver
7 * PROGRAMMER: Steven Edwards
8 * UPDATE HISTORY:
9 * 19/01/04 Created
10 *
11 */
12
13 /* INCLUDES ****************************************************************/
14
15 #include <ddk/ntddk.h>
16 #include <rosrtl/string.h>
17
18 #define NDEBUG
19 #include <debug.h>
20
21 NTSTATUS STDCALL
22 DriverEntry(PDRIVER_OBJECT DriverObject,
23 PUNICODE_STRING RegistryPath)
24 /*
25 * FUNCTION: Called by the system to initalize the driver
26 * ARGUMENTS:
27 * DriverObject = object describing this driver
28 * RegistryPath = path to our configuration entries
29 * RETURNS: Success or failure
30 */
31 {
32 PDEVICE_OBJECT DeviceObject;
33 UNICODE_STRING DeviceName = ROS_STRING_INITIALIZER(L"\\Device\\SNDBLST");
34 UNICODE_STRING SymlinkName = ROS_STRING_INITIALIZER(L"\\??\\SNDBLST");
35 NTSTATUS Status;
36
37 DPRINT1("Sound Blaster 16 Driver 0.0.1\n");
38
39 DriverObject->Flags = 0;
40
41 Status = IoCreateDevice(DriverObject,
42 0,
43 &DeviceName,
44 FILE_DEVICE_BEEP,
45 0,
46 FALSE,
47 &DeviceObject);
48 if (!NT_SUCCESS(Status))
49 return Status;
50
51 /* Create the dos device link */
52 IoCreateSymbolicLink(&SymlinkName,
53 &DeviceName);
54
55 return(STATUS_SUCCESS);
56 }
57
58 /* EOF */