Sample Code

Windows Driver Samples/ HBtnKey Input Driver/ C++/ HBtnKey/ pch.h/

/*++
    Copyright (c) 2000,2001 Microsoft Corporation

    Module Name:
        pch.h

    Abstract:
        Pre-compile C header file.

    Environment:
        Kernel mode

--*/

#ifndef _PCH_H
#define _PCH_H

#define COMPONENT_NAME          "HBTN"
#define INTERNAL
#define EXTERNAL

#if DBG
#ifndef DEBUG
  #define DEBUG
#endif
#ifndef TRACING
  #define TRACING
#endif
#endif

#ifdef DEBUG
  #define SIMULATE_KBD
#endif

#if _MSC_VER >= 1200

#pragma warning(push)

#endif

#pragma warning(disable:4201) // nameless struct/union

#include <wdm.h>
#include <hidport.h>
#include <ntstrsafe.h>
#include "hbtnkey.h"
#include <hidbtn.h>
#include <errlog.h>

#define INC_HID_NAMES
  #include <wtrace.h>
#endif  //ifndef _PCH_H

#if _MSC_VER >= 1200

#pragma warning(pop)

#else
#pragma warning(default:4201)
#endif

Our Services

  • What our customers say about us?

© 2011-2024 All Rights Reserved. Joya Systems. 4425 South Mopac Building II Suite 101 Austin, TX 78735 Tel: 800-DEV-KERNEL

Privacy Policy. Terms of use. Valid XHTML & CSS