Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than user32, prefix the name with the module name and a period.
/// The RemoveProp function removes an entry from the property list of the specified window. The specified character string identifies the entry to be removed.
/// <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>
/// <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);
Tips & Tricks:
Please add some!
Please add some!
Alternative Managed API:
Do you know one? Please contribute it!
The RemoveProp API
9/7/2009 12:57:30 PM - -184.108.40.206
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).