CreateCaret function user32

int CreateCaret(
  1. int hWnd,
  2. int hBitmap,
  3. int nWidth,
  4. int nHeight
)

Creates a new shape for the system caret and assigns ownership of the caret to the specified window. The caret shape can be a line, a block, or a bitmap.

BOOL CreateCaret(
  [in]           HWND    hWnd,
  [in, optional] HBITMAP hBitmap,
  [in]           int     nWidth,
  [in]           int     nHeight
);

Implementation

int CreateCaret(int hWnd, int hBitmap, int nWidth, int nHeight) =>
    _CreateCaret(hWnd, hBitmap, nWidth, nHeight);