SetProp function Null safety user32

int SetProp(
  1. int hWnd,
  2. Pointer<Utf16> lpString,
  3. int hData

Adds a new entry or changes an existing entry in the property list of the specified window. The function adds a new entry to the list if the specified character string does not exist already in the list. The new entry contains the string and the handle. Otherwise, the function replaces the string's current handle with the specified handle.

BOOL SetPropW(
  HWND    hWnd,
  LPCWSTR lpString,
  HANDLE  hData


int SetProp(int hWnd, Pointer<Utf16> lpString, int hData) =>
    _SetProp(hWnd, lpString, hData);