Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
2.0 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1999 - 1999
  6. //
  7. // File: StdAfx.h
  8. //
  9. //--------------------------------------------------------------------------
  10. // stdafx.h : include file for standard system include files,
  11. // or project specific include files that are used frequently,
  12. // but are changed infrequently
  13. #if !defined(AFX_STDAFX_H__9AEC1AF7_19F1_11D3_A11F_00C04F79F800__INCLUDED_)
  14. #define AFX_STDAFX_H__9AEC1AF7_19F1_11D3_A11F_00C04F79F800__INCLUDED_
  15. #if _MSC_VER > 1000
  16. #pragma once
  17. #endif // _MSC_VER > 1000
  18. #define STRICT
  19. #ifndef _WIN32_WINNT
  20. #define _WIN32_WINNT 0x0400
  21. #endif
  22. #define _ATL_APARTMENT_THREADED
  23. #include <atlbase.h>
  24. //You may derive a class from CComModule and use it if you want to override
  25. //something, but do not change the name of _Module
  26. extern CComModule _Module;
  27. #include <atlcom.h>
  28. #include <ole2.h>
  29. #include <oleauto.h>
  30. #include <unknwn.h>
  31. #ifdef _DEBUG
  32. #include <crtdbg.h>
  33. #define ASSERT(x) _ASSERTE(x)
  34. #define breakpoint _CrtDbgBreak()
  35. // #define breakpoint
  36. #elif defined(DBG)
  37. #include <stdio.h>
  38. inline void
  39. LocalAssert(
  40. LPCTSTR szExpr,
  41. LPCTSTR szFile,
  42. DWORD dwLine)
  43. {
  44. TCHAR szBuffer[MAX_PATH * 2];
  45. _stprintf(szBuffer, TEXT("ASSERT FAIL: '%s' in %s at %d.\n"), szExpr, szFile, dwLine);
  46. OutputDebugString(szBuffer);
  47. }
  48. #define ASSERT(x) if (!(x)) do { \
  49. LocalAssert(TEXT(#x), TEXT(__FILE__), __LINE__); \
  50. _CrtDbgBreak(); } while (0)
  51. #define breakpoint _CrtDbgBreak()
  52. #else
  53. #define ASSERT(x)
  54. #define breakpoint
  55. #endif
  56. #include <winscard.h>
  57. #include <scardlib.h>
  58. #include <scardssp.h>
  59. extern LPUNKNOWN NewObject(REFCLSID rclsid, REFIID riid);
  60. //{{AFX_INSERT_LOCATION}}
  61. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  62. #endif // !defined(AFX_STDAFX_H__9AEC1AF7_19F1_11D3_A11F_00C04F79F800__INCLUDED)