Skip to content

Latest commit

 

History

History
79 lines (63 loc) · 2.51 KB

nf-dpa_dsa-str_setptrw.md

File metadata and controls

79 lines (63 loc) · 2.51 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:dpa_dsa.Str_SetPtrW
Str_SetPtrW function (dpa_dsa.h)
Sets ppszCurrent to a copy of pszNew and frees the previous value, if necessary.
Str_SetPtr
Str_SetPtr function [Windows Controls]
Str_SetPtrA
Str_SetPtrW
_win32_Str_SetPtrW
_win32_Str_SetPtrW_cpp
controls.Str_SetPtrW
controls._win32_Str_SetPtrW
dpa_dsa/Str_SetPtr
dpa_dsa/Str_SetPtrA
dpa_dsa/Str_SetPtrW
controls\Str_SetPtrW.htm
Controls
VS|Controls|~\controls\common\functions\str_setptrw.htm
12/05/2018
Str_SetPtr, Str_SetPtr function [Windows Controls], Str_SetPtrA, Str_SetPtrW, _win32_Str_SetPtrW, _win32_Str_SetPtrW_cpp, controls.Str_SetPtrW, controls._win32_Str_SetPtrW, dpa_dsa/Str_SetPtr, dpa_dsa/Str_SetPtrA, dpa_dsa/Str_SetPtrW
dpa_dsa.h
Windows
Windows Vista [desktop apps only]
Windows Server 2003 [desktop apps only]
Str_SetPtrW (Unicode) and Str_SetPtrA (ANSI)
Comctl32.lib
ComCtl32.dll
Windows
19H1
Str_SetPtrW
dpa_dsa/Str_SetPtrW
c++
APIRef
kbSyntax
DllExport
ComCtl32.dll
Str_SetPtr
Str_SetPtrA
Str_SetPtrW

Str_SetPtrW function

-description

Sets ppszCurrent to a copy of pszNew and frees the previous value, if necessary.

-parameters

-param ppsz [in, out]

Type: LPTSTR*

The address of a pointer to the current string. The current string is freed and the pointer is set to a copy of pszNew.

-param psz

Type: LPCTSTR

A pointer to the string to copy into ppszCurrent.

-returns

Type: BOOL

Returns TRUE if successful; otherwise, FALSE.

-remarks

The ANSI version of Str_SetPtrW, Str_SetPtrA, is not exported by name or declared in a public header file. To use it, you must use GetProcAddress and request ordinal 234 from ComCtl32.dll to obtain a function pointer.