ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

sb16.c
Go to the documentation of this file.
00001 /* $Id: sb16.c 37762 2008-11-30 11:16:55Z sginsberg $
00002  *
00003  * COPYRIGHT:            See COPYING in the top level directory
00004  * PROJECT:              ReactOS kernel
00005  * FILE:                 services/dd/sound/sb16.c
00006  * PURPOSE:              SB16 device driver
00007  * PROGRAMMER:           Steven Edwards
00008  * UPDATE HISTORY:
00009  *                       19/01/04 Created
00010  *
00011  */
00012 
00013 /* INCLUDES ****************************************************************/
00014 
00015 #include <ntddk.h>
00016 
00017 NTSTATUS NTAPI
00018 DriverEntry(PDRIVER_OBJECT DriverObject,
00019         PUNICODE_STRING RegistryPath);
00020 
00021 #define NDEBUG
00022 #include <debug.h>
00023 
00024 NTSTATUS NTAPI
00025 DriverEntry(PDRIVER_OBJECT DriverObject,
00026         PUNICODE_STRING RegistryPath)
00027 /*
00028  * FUNCTION:  Called by the system to initalize the driver
00029  * ARGUMENTS:
00030  *            DriverObject = object describing this driver
00031  *            RegistryPath = path to our configuration entries
00032  * RETURNS:   Success or failure
00033  */
00034 {
00035   PDEVICE_OBJECT DeviceObject;
00036   UNICODE_STRING DeviceName = RTL_CONSTANT_STRING(L"\\Device\\SNDBLST");
00037   UNICODE_STRING SymlinkName = RTL_CONSTANT_STRING(L"\\??\\SNDBLST");
00038   NTSTATUS Status;
00039 
00040   DPRINT1("Sound Blaster 16 Driver 0.0.1\n");
00041 
00042   DriverObject->Flags = 0;
00043 
00044   Status = IoCreateDevice(DriverObject,
00045               0,
00046               &DeviceName,
00047               FILE_DEVICE_BEEP,
00048               0,
00049               FALSE,
00050               &DeviceObject);
00051   if (!NT_SUCCESS(Status))
00052     return Status;
00053 
00054   /* Create the dos device link */
00055   IoCreateSymbolicLink(&SymlinkName,
00056                &DeviceName);
00057 
00058   return(STATUS_SUCCESS);
00059 }
00060 
00061 /* EOF */

Generated on Sun May 27 2012 04:28:00 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.