Method WProp.Set(+ 1 overload)
Overload
Sets a window property. Calls API SetProp and returns its return value.
public bool Set(string name, nint value)
Parameters
Returns
Remarks
Supports lastError.
Later call WProp.Remove to remove the property. If you use many unique property names and don't remove the properties, the property name strings can fill the global atom table which is of a fixed size (about 48000) and which is used by all processes for various purposes.
Overload(top)
Sets a window property. Calls API SetProp and returns its return value.
public bool Set(ushort atom, nint value)
Parameters
Returns
Remarks
This overload uses atom instead of string. It's about 3 times faster. See API GlobalAddAtom, GlobalDeleteAtom.