SetWindowSubclass function Null safety comctl32

int SetWindowSubclass(
  1. int hWnd,
  2. Pointer<NativeFunction<SubclassProc>> pfnSubclass,
  3. int uIdSubclass,
  4. int dwRefData
)

Installs or updates a window subclass callback.

BOOL SetWindowSubclass(
  HWND         hWnd,
  SUBCLASSPROC pfnSubclass,
  UINT_PTR     uIdSubclass,
  DWORD_PTR    dwRefData
);

Implementation

int SetWindowSubclass(
        int hWnd,
        Pointer<NativeFunction<SubclassProc>> pfnSubclass,
        int uIdSubclass,
        int dwRefData) =>
    _SetWindowSubclass(hWnd, pfnSubclass, uIdSubclass, dwRefData);