GetMenuString function Null safety user32

int GetMenuString(
  1. int hMenu,
  2. int uIDItem,
  3. Pointer<Utf16> lpString,
  4. int cchMax,
  5. int flags
)

Copies the text string of the specified menu item into the specified buffer.

int GetMenuStringW(
  HMENU  hMenu,
  UINT   uIDItem,
  LPWSTR lpString,
  int    cchMax,
  UINT   flags
);

Implementation

int GetMenuString(int hMenu, int uIDItem, Pointer<Utf16> lpString, int cchMax,
        int flags) =>
    _GetMenuString(hMenu, uIDItem, lpString, cchMax, flags);