dxcore.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /************************************************************
  2. * *
  3. * Copyright (c) Microsoft Corporation. *
  4. * Licensed under the MIT license. *
  5. * *
  6. ************************************************************/
  7. #ifndef _DXCOREEXTMODULE_H_
  8. #define _DXCOREEXTMODULE_H_
  9. #include <winapifamily.h>
  10. #include "dxcore_interface.h"
  11. #pragma region Application Family or OneCore Family
  12. #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM)
  13. #if (_WIN32_WINNT >= _WIN32_WINNT_WIN10)
  14. STDAPI
  15. DXCoreCreateAdapterFactory(
  16. REFIID riid,
  17. _COM_Outptr_ void** ppvFactory
  18. );
  19. template <class T>
  20. HRESULT
  21. DXCoreCreateAdapterFactory(
  22. _COM_Outptr_ T** ppvFactory
  23. )
  24. {
  25. return DXCoreCreateAdapterFactory(IID_PPV_ARGS(ppvFactory));
  26. }
  27. #endif // (_WIN32_WINNT >= _WIN32_WINNT_WIN10)
  28. #endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */
  29. #pragma endregion
  30. #endif // _DXCOREEXTMODULE_H_