removeprop (user32)
Last changed: anonymous

.
Summary

C# Signature:

/// <summary>
/// The RemoveProp function removes an entry from the property list of the specified window. The specified character string identifies the entry to be removed.
/// </summary>
/// <remarks>
/// <para>The return value is the hData value that was passed to SetProp; it is an application-defined value. Note, this function only destroys the association between the data and the window. If appropriate, the application must free the data handles associated with entries removed from a property list. The application can remove only those properties it has added. It must not remove properties added by other applications or by the system itself.</para>
/// <para>The RemoveProp function returns the data handle associated with the string so that the application can free the data associated with the handle.</para>
/// <para>Windows 95/98/Me:  RemovePropW is supported by the Microsoft Layer for Unicode (MSLU). RemovePropA is also supported to provide more consistent behavior across all Microsoft Windows operating systems. To use this, you must add certain files to your application, as outlined in Microsoft Layer for Unicode on Windows 95/98/Me Systems.</para>
/// <para>Windows Vista: RemoveProp is subject to the restrictions of User Interface Privilege Isolation (UIPI). A process can only call this function on a window belonging to a process of lesser or equal integrity level. When UIPI blocks property changes, GetLastError will return 5.</para>
/// </remarks>
/// <param name="hWnd">Handle to the window whose property list is to be changed.</param>
/// <param name="lpString">Pointer to a null-terminated character string or contains an atom that identifies a string. If this parameter is an atom, it must have been created using the GlobalAddAtom function. The atom, a 16-bit value, must be placed in the low-order word of lpString; the high-order word must be zero.</param>
/// <returns>The return value identifies the specified data. If the data cannot be found in the specified property list, the return value is NULL.</returns>
[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
static extern IntPtr RemoveProp(IntPtr hWnd, string lpString);

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation
RemoveProp on MSDN