Export (0) Print
Expand All

Str_SetPtr function

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

Syntax


BOOL WINAPI Str_SetPtr(
  _Inout_  LPTSTR *ppszCurrent,
  LPCTSTR pszNew
);

Parameters

ppszCurrent [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.

pszNew

Type: LPCTSTR

A pointer to the string to copy into ppszCurrent.

Return value

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.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Commctrl.h

Library

Comctl32.lib

DLL

ComCtl32.dll

Unicode and ANSI names

Str_SetPtrW (Unicode) and Str_SetPtrA (ANSI)

 

 

Community Additions

ADD
Show:
© 2014 Microsoft