Sample Code

Windows Driver Samples/ Toaster Sample Driver/ C++/ umdf/ func/ stdafx.h/

/*++

  Copyright (c) Microsoft Corporation, All Rights Reserved

  Module Name:

    stdafx.h

  Abstract:

    Include file for standard system include filesor project specific 
    include files that are used frequently, but are changed infrequently

  Environment:

    Windows User-Mode Driver Framework (WUDF)

--*/


#pragma once

#ifndef STRICT
#define STRICT
#endif


#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0501 // Windows XP and newer.
#endif

#define _ATL_FREE_THREADED
#define _ATL_NO_AUTOMATIC_NAMESPACE

// turns off ATL's hiding of some common and often safely ignored warning messages
#define _ATL_ALL_WARNINGS

#define SAFE_RELEASE(p)     {if ((p)) { (p)->Release(); (p) = NULL; }}

#include "resource.h"
#include <atlbase.h>
#include <atlcom.h>

extern const GUID GUID_DEVINTERFACE_TOASTER;

using namespace ATL;

Our Services

  • What our customers say about us?

© 2011-2025 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