2013-07-07 15:15:10 +00:00
|
|
|
/*
|
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS Console Driver
|
|
|
|
* FILE: drivers/base/condrv/condrv.h
|
|
|
|
* PURPOSE: Console Driver Management Functions
|
|
|
|
* PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr)
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CONDRV_H__
|
|
|
|
#define __CONDRV_H__
|
|
|
|
|
|
|
|
/* This is needed for VisualDDK testing */
|
2013-07-07 15:57:48 +00:00
|
|
|
// #define __USE_VISUALDDK_AT_HOME__
|
|
|
|
|
2013-07-07 15:15:10 +00:00
|
|
|
#ifdef __USE_VISUALDDK_AT_HOME__
|
2013-07-07 15:57:48 +00:00
|
|
|
#pragma message("Disable __USE_VISUALDDK_AT_HOME__ before committing!!")
|
2013-07-07 15:15:10 +00:00
|
|
|
#include "VisualDDKHelpers.h"
|
|
|
|
#endif
|
|
|
|
|
2014-01-27 12:29:29 +00:00
|
|
|
#include <wdm.h>
|
2013-07-07 15:15:10 +00:00
|
|
|
|
|
|
|
#define CONDRV_TAG ' noC'
|
|
|
|
#define DD_CONDRV_TAG '1noC'
|
|
|
|
#define CONDRV_CONS_TAG '2noC'
|
|
|
|
|
2014-01-27 12:29:29 +00:00
|
|
|
/* Console Driver object extension */
|
2013-07-07 15:15:10 +00:00
|
|
|
typedef struct _CONDRV_DRIVER
|
|
|
|
{
|
|
|
|
UNICODE_STRING RegistryPath;
|
|
|
|
PDEVICE_OBJECT Controller; // The unique Controller device for the driver.
|
|
|
|
} CONDRV_DRIVER, *PCONDRV_DRIVER;
|
|
|
|
|
|
|
|
NTSTATUS NTAPI
|
|
|
|
ConDrvCreateController(IN PDRIVER_OBJECT DriverObject,
|
|
|
|
IN PUNICODE_STRING RegistryPath);
|
|
|
|
NTSTATUS NTAPI
|
|
|
|
ConDrvDeleteController(IN PDRIVER_OBJECT DriverObject);
|
|
|
|
|
|
|
|
#endif // __CONDRV_H__
|