NtUserCalcMenuBar - NtDoc

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

// rev
/**
 * The NtUserCalcMenuBar routine calculates the layout dimensions and positions of the menu bar for a window.
 *
 * \param WindowHandle Handle to the window containing the menu bar.
 * \param Left Left bounding coordinate for the menu bar calculation.
 * \param Right Right bounding coordinate for the menu bar calculation.
 * \param Top Top bounding coordinate for the menu bar calculation.
 * \param Rect Optional pointer to a RECT structure receiving the calculated menu bar bounding rectangle.
 * \returns ULONG The height of the menu bar in pixels, or 0 on failure.
 */
_Kernel_entry_
NTSYSCALLAPI
ULONG
NTAPI
NtUserCalcMenuBar(
    _In_ HWND WindowHandle,
    _In_ LONG Left,
    _In_ LONG Right,
    _In_ LONG Top,
    _Inout_opt_ PRECT Rect
    );

#endif

View code on GitHub

NtDoc

No description available.