Sample Code

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*++
 
  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