网站首页  词典首页

请输入您要查询的函数:

 

术语 shlocalstrdup
释义 SHLocalStrDup
语法:
HRESULT SHLocalStrDup( LPCWSTR psz,
LPWSTR *ppsz
);
SHLocalStrDup功能
让一个在新分配的内存中的字符串的副本。
参数

一个空指针,终止,Unicode字符串被复制。
ppsz
[指出]指针的地址分配一个Unicode字符串,其中包含的结果。 SHLocalStrDup分配为这个LocalAlloc字符串的内存。您应该自由与LocalFree字符串时,不再需要。
返回值
返回S_OK如果成功,或其他错误值。
功能信息
最低DLL版本 Shell32.dll
自定义ImplementationNo
Headershlwapi.h
import libraryNone
最低支持操作系统 Vista
UnicodeImplemented为ANSI和Unicode版本。
==英文原文==SHLocalStrDup Function
Makes a copy of a string in newly allocated memory.
Syntax
HRESULT SHLocalStrDup( LPCWSTR psz,
LPWSTR *ppsz
);
Parameters
psz
A pointer to a null-terminated, Unicode string to be copied.
ppsz
[out] The address of a pointer to an allocated Unicode string that contains the result. SHLocalStrDup allocates memory for this string with LocalAlloc . You should free the string with LocalFree when it is no longer needed.
Return Value
Returns S_OK if successful, or an error value otherwise.
Function Information
Minimum DLL VersionShell32.dll
Custom ImplementationNo
Headershlwapi.h
Import libraryNone
Minimum operating systemsWindows Vista
UnicodeImplemented as ANSI and Unicode versions.
==原始网址==http://msdn.microsoft.com/en-us/library/bb759921(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:32:13