ReactOS 0.4.16-dev-2-g02a6913
sb16.c
Go to the documentation of this file.
1/*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS kernel
4 * FILE: services/dd/sound/sb16.c
5 * PURPOSE: SB16 device driver
6 * PROGRAMMER: Steven Edwards
7 * UPDATE HISTORY:
8 * 19/01/04 Created
9 *
10 */
11
12/* INCLUDES ****************************************************************/
13
14#include <ntddk.h>
15
19
20#define NDEBUG
21#include <debug.h>
22
26/*
27 * FUNCTION: Called by the system to initialize the driver
28 * ARGUMENTS:
29 * DriverObject = object describing this driver
30 * RegistryPath = path to our configuration entries
31 * RETURNS: Success or failure
32 */
33{
35 UNICODE_STRING DeviceName = RTL_CONSTANT_STRING(L"\\Device\\SNDBLST");
36 UNICODE_STRING SymlinkName = RTL_CONSTANT_STRING(L"\\??\\SNDBLST");
38
39 DPRINT1("Sound Blaster 16 Driver 0.0.1\n");
40
41 DriverObject->Flags = 0;
42
44 0,
47 0,
48 FALSE,
50 if (!NT_SUCCESS(Status))
51 return Status;
52
53 /* Create the dos device link */
54 IoCreateSymbolicLink(&SymlinkName,
55 &DeviceName);
56
57 return(STATUS_SUCCESS);
58}
59
60/* EOF */
LONG NTSTATUS
Definition: precomp.h:26
#define DPRINT1
Definition: precomp.h:8
#define FALSE
Definition: types.h:117
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:33
DRIVER_INITIALIZE DriverEntry
Definition: condrv.c:21
Status
Definition: gdiplustypes.h:25
NTSTATUS NTAPI IoCreateDevice(IN PDRIVER_OBJECT DriverObject, IN ULONG DeviceExtensionSize, IN PUNICODE_STRING DeviceName, IN DEVICE_TYPE DeviceType, IN ULONG DeviceCharacteristics, IN BOOLEAN Exclusive, OUT PDEVICE_OBJECT *DeviceObject)
Definition: device.c:1031
#define L(x)
Definition: ntvdm.h:50
#define FILE_DEVICE_BEEP
Definition: winioctl.h:46
#define STATUS_SUCCESS
Definition: shellext.h:65
#define RTL_CONSTANT_STRING(s)
Definition: tunneltest.c:14
#define NTAPI
Definition: typedefs.h:36
_In_ PDEVICE_OBJECT DeviceObject
Definition: wdfdevice.h:2055
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_opt_ PCUNICODE_STRING DeviceName
Definition: wdfdevice.h:3275
_Must_inspect_result_ _In_ PDRIVER_OBJECT _In_ PCUNICODE_STRING RegistryPath
Definition: wdfdriver.h:215
_Must_inspect_result_ _In_ PDRIVER_OBJECT DriverObject
Definition: wdfdriver.h:213