CreateBitmapFromDxSurface - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTUSER_H

// rev
/**
 * The CreateBitmapFromDxSurface 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 SharedSurface The shared surface argument.
 * \returns The HBITMAP result described above.
 */
NTSYSAPI
HBITMAP
NTAPI
CreateBitmapFromDxSurface(
    _In_ HDC Dc,
    _In_ ULONG Width,
    _In_ ULONG Height,
    _In_ ULONG Format,
    _In_opt_ HANDLE SharedSurface
    );

#endif

View code on GitHub

NtDoc

No description available.