diff options
| author | Dave Wilson <[email protected]> | 2015-04-29 09:48:49 -0700 |
|---|---|---|
| committer | Dave Wilson <[email protected]> | 2015-04-29 10:47:29 -0700 |
| commit | d40232638faaab19de557e70a3ee938da7a35295 (patch) | |
| tree | 14e61c973745949af186b7940e3a53d25322f5de /serial/VirtualSerial2/internal.h | |
| parent | 02e5b090a6131a7cc1b90f4a9373117c9e3c7088 (diff) | |
samples update for //build
Diffstat (limited to 'serial/VirtualSerial2/internal.h')
| -rw-r--r-- | serial/VirtualSerial2/internal.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/serial/VirtualSerial2/internal.h b/serial/VirtualSerial2/internal.h new file mode 100644 index 00000000..82c149e3 --- /dev/null +++ b/serial/VirtualSerial2/internal.h @@ -0,0 +1,58 @@ +/*++ + +Copyright (C) Microsoft Corporation, All Rights Reserved + +Module Name: + + Internal.h + +Abstract: + + This module contains the local type definitions for the VirtualSerial + driver sample. + +Environment: + + Windows Driver Framework + +--*/ + +#pragma once + +#ifdef _KERNEL_MODE +#include <ntddk.h> +#else +#include <windows.h> +#endif + +#include <wdf.h> + +#define _NTDEF_ + +// +// Include the type specific headers. +// +#include "serial.h" +#include "driver.h" +#include "device.h" +#include "ringbuffer.h" +#include "queue.h" + +// +// Tracing and Assert +// + +#define Trace(level, _fmt_, ...) \ + DbgPrintEx(DPFLTR_DEFAULT_ID, level, \ + _fmt_ "\n", __VA_ARGS__) + +#define TRACE_LEVEL_ERROR DPFLTR_ERROR_LEVEL +#define TRACE_LEVEL_INFO DPFLTR_INFO_LEVEL + +#ifndef ASSERT +#define ASSERT(exp) { \ + if (!(exp)) { \ + RtlAssert(#exp, __FILE__, __LINE__, NULL); \ + } \ +} +#endif
\ No newline at end of file |
