RemoveProp function user32

Win32Result<HANDLE> RemoveProp(
  1. HWND hWnd,
  2. PCWSTR lpString
)

Removes an entry from the property list of the specified window.

The specified character string identifies the entry to be removed.

To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-removepropw.

Implementation

Win32Result<HANDLE> RemoveProp(HWND hWnd, PCWSTR lpString) {
  resolveGetLastError();
  final result_ = _RemoveProp(hWnd, lpString);
  return .new(value: .new(result_), error: GetLastError());
}