#ifndef _NTUSER_H
// rev
/**
* The CreateBitmapFromDxSurface2 routine creates a GDI bitmap from a DirectX surface, returning
* HBITMAP rather than a pointer-width status. The
* client directly forwards the native arguments. Invalid DC rejection was before surface import.
*
* \param Dc The dc argument.
* \param Width The width argument.
* \param Height The height argument.
* \param Format The format argument.
* \param SubresourceIndex The subresource index argument.
* \param SharedSurfaceNtHandle The shared surface nt handle argument.
* \param SharedSurface The shared surface argument.
* \returns The HBITMAP result described above.
*/
NTSYSAPI
HBITMAP
NTAPI
CreateBitmapFromDxSurface2(
_In_ HDC Dc,
_In_ ULONG Width,
_In_ ULONG Height,
_In_ ULONG Format,
_In_ ULONG SubresourceIndex,
_In_ BOOL SharedSurfaceNtHandle,
_In_opt_ HANDLE SharedSurface
);
View code on GitHubNo description available.