Source code of Windows XP (NT5)
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.

90 lines
1.5 KiB

  1. /*++
  2. Copyright (C) Microsoft Corporation, 1998 - 1999
  3. Module Name:
  4. noncom
  5. Abstract:
  6. This header file describes the implementation of the Non-Com subsystem.
  7. Author:
  8. Doug Barlow (dbarlow) 1/4/1999
  9. Remarks:
  10. ?Remarks?
  11. Notes:
  12. ?Notes?
  13. --*/
  14. #ifndef _NONCOM_H_
  15. #define _NONCOM_H_
  16. #ifndef __cplusplus
  17. #error NonCOM requires C++ compilation (use a .cpp suffix)
  18. #endif
  19. // #define UNDER_TEST
  20. #ifdef _UNICODE
  21. #ifndef UNICODE
  22. #define UNICODE // UNICODE is used by Windows headers
  23. #endif
  24. #endif
  25. #ifdef UNICODE
  26. #ifndef _UNICODE
  27. #define _UNICODE // _UNICODE is used by C-runtime/MFC headers
  28. #endif
  29. #endif
  30. #ifdef _DEBUG
  31. #ifndef DEBUG
  32. #define DEBUG
  33. #endif
  34. #endif
  35. STDAPI_(void)
  36. NoCoStringFromGuid(
  37. IN LPCGUID pguidResult,
  38. OUT LPTSTR szGuid);
  39. #ifdef UNDER_TEST
  40. STDAPI
  41. NoCoInitialize(
  42. LPVOID pvReserved);
  43. STDAPI_(void)
  44. NoCoUninitialize(
  45. void);
  46. #endif
  47. STDAPI
  48. NoCoGetClassObject(
  49. REFCLSID rclsid,
  50. REFIID riid,
  51. LPVOID * ppv);
  52. STDAPI
  53. NoCoCreateInstance(
  54. REFCLSID rclsid,
  55. LPUNKNOWN pUnkOuter,
  56. REFIID riid,
  57. LPVOID * ppv);
  58. #ifdef SCARD_NO_COM
  59. #define CoGetClassObject(rclsid, dwClsContext, pServerInfo, riid, ppv) \
  60. NoCoGetClassObject(rclsid, riid, ppv)
  61. #define CoCreateInstance(rclsid, pUnkOuter, dwClsContext, riid, ppv) \
  62. NoCoCreateInstance(rclsid, pUnkOuter, riid, ppv)
  63. #define CoCreateInstanceEx(rclsid, punkOuter, dwClsCtx, pServerInfo, cmq, pResults) \
  64. NoCoCreateInstanceEx(rclsid, punkOuter, cmq, pResults)
  65. #endif
  66. #endif // _NONCOM_H_