Compartir a través de


GetProp

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This function retrieves a data handle identified by a specified character string from the property list of a specified window.

Syntax

HANDLE GetProp(
  HWND hWnd,
  LPCTSTR lpString
);

Parameters

  • hWnd
    [in] Handle to the window for which you want to retrieve a data handle from the property list.
  • lpString
    [in] Pointer to a null-terminated character string that identifies the data handle, or an atom that identifies the string. If this parameter is an atom, the application must create the atom by using the GlobalAddAtom function. The application must place the atom, a 16-bit value, in the low-order word of the lpString parameter; the high-order word of lpString must then be zero.

Return Value

The data handle associated with the specified string indicates that the property list contains the string. NULL indicates that the property list does not contain the string.

Remarks

The application must add the string and handle to the property list by previously calling the SetProp function.

Requirements

Header windows.h
Library coredll.lib
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

GlobalAddAtom
SetProp