网站首页  词典首页

请输入您要查询的函数:

 

术语 regloadmuistring
释义 RegLoadMUIString
语法:
C++
LONG WINAPI RegLoadMUIString(
__in HKEY hKey,
__in_opt LPCTSTR pszValue,
__out_opt LPTSTR pszOutBuf,
__in DWORD cbOutBuf,
__out_opt LPDWORD pcbData,
__in DWORD Flags,
__in_opt LPCTSTR pszDirectory
);
RegLoadMUIString功能
从指定的键和子项加载指定的字符串。
参数
hKey [in]
句柄到打开注册表项。密钥必须与已开放的KEY_QUERY_VALUE访问权限。有关更多信息,请参见注册表关键的安全和访问权限。
这种处理是由RegCreateKeyEx的或RegOpenKeyEx函数返回。它也可以是下列预定义项之一:
HKEY_CLASSES_ROOT
HKEY_CURRENT_CONFIG
HKEY_CURRENT_USER
HKEY_LOCAL_MACHINE
HKEY_USERS
pszValue [中,可选]
该注册表值的名称。
pszOutBuf [指出,可选]
阿一个缓冲区,它接收字符串指针。
弓弦以下形式得到特别处理:
@ [路径] \\ dllnamedll文件名,- strID
与标识符strID加载字符串从dllnamedll文件名,路径是可选的。如果pszDirectory参数不是NULL,则目录预置到注册表中的数据指定的路径。请注意,dllnamedll文件名可以包含环境变量扩大。
cbOutBuf [in]
该pszOutBuf缓冲区大小,以字节为单位。
pcbData [指出,可选]
一个变量,它接收的pszOutBuf复制到缓冲区中的数据以字节为单位,大小的指针。
如果缓冲区不够大,无法容纳数据,该函数返回ERROR_MORE_DATA并存储在变量所需的缓冲区大小指向pcbData。在这种情况下,缓冲区的内容是不确定的。
标志 [in]
此参数可以是0或下面的值。
ValueMeaning
REG_MUI_STRING_TRUNCATE
0x00000001The字符串被截断以适应现有的pszOutBuf缓冲区的大小。如果这个标志被指定,pcbData必须为NULL。
pszDirectory [中,可选]
该目录的路径。
返回值
如果函数成功,返回值是ERROR_SUCCESS。
如果函数失败,返回值是一个系统错误代码。
如果pcbData缓冲区太小接受字符串,函数返回ERROR_MORE_DATA。
这个函数返回ANSI版本ERROR_CALL_NOT_IMPLEMENTED。
备注
该RegLoadMUIString功能仅支持Unicode的。虽然两者的Unicode(宽)和ANSI(甲)本函数的版本申报,RegLoadMUIStringA函数返回ERROR_CALL_NOT_IMPLEMENTED。应用程序应该明确要求RegLoadMUIStringW或指定在平台调用(平台调用)中的字符集Unicode的要求。
要编译的应用程序使用此功能,定义_WIN32_WINNT为0x0600或更高版本。有关详细信息,请参阅使用Windows头。
要求:
client最低支持Vista
server最低支持 Windows Server 2008
HeaderWinreg.h(头文件:winuser.h)
LibraryAdvapi32.lib
DLLAdvapi32.dll
Unicode和ANSI namesRegLoadMUIStringW(Unicode)和RegLoadMUIStringA(ANSI)的
参见
登记职能
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==RegLoadMUIString Function
Loads the specified string from the specified key and subkey.
Syntax
C++
LONG WINAPI RegLoadMUIString(
__in HKEY hKey,
__in_opt LPCTSTR pszValue,
__out_opt LPTSTR pszOutBuf,
__in DWORD cbOutBuf,
__out_opt LPDWORD pcbData,
__in DWORD Flags,
__in_opt LPCTSTR pszDirectory
);
Parameters
hKey [in]
A handle to an open registry key. The key must have been opened with the KEY_QUERY_VALUE access right. For more information, see Registry Key Security and Access Rights .
This handle is returned by the RegCreateKeyEx or RegOpenKeyEx function. It can also be one of the following predefined keys :
HKEY_CLASSES_ROOT
HKEY_CURRENT_CONFIG
HKEY_CURRENT_USER
HKEY_LOCAL_MACHINE
HKEY_USERS
pszValue [in, optional]
The name of the registry value.
pszOutBuf [out, optional]
A pointer to a buffer that receives the string.
Strings of the following form receive special handling:
@[path]\\dllname,-strID
The string with identifier strID is loaded from dllname; the path is optional. If the pszDirectory parameter is not NULL, the directory is prepended to the path specified in the registry data. Note that dllname can contain environment variables to be expanded.
cbOutBuf [in]
The size of the pszOutBuf buffer, in bytes.
pcbData [out, optional]
A pointer to a variable that receives the size of the data copied to the pszOutBuf buffer, in bytes.
If the buffer is not large enough to hold the data, the function returns ERROR_MORE_DATA and stores the required buffer size in the variable pointed to by pcbData. In this case, the contents of the buffer are undefined.
Flags [in]
This parameter can be 0 or the following value.
ValueMeaning
REG_MUI_STRING_TRUNCATE
0x00000001The string is truncated to fit the available size of the pszOutBuf buffer. If this flag is specified, pcbData must be NULL.

pszDirectory [in, optional]
The directory path.
Return Value
If the function succeeds, the return value is ERROR_SUCCESS.
If the function fails, the return value is a system error code .
If the pcbData buffer is too small to receive the string, the function returns ERROR_MORE_DATA.
The ANSI version of this function returns ERROR_CALL_NOT_IMPLEMENTED.
Remarks
The RegLoadMUIString function is supported only for Unicode. Although both Unicode (W) and ANSI (A) versions of this function are declared, the RegLoadMUIStringA function returns ERROR_CALL_NOT_IMPLEMENTED. Applications should explicitly call RegLoadMUIStringW or specify Unicode as the character set in platform invoke (PInvoke) calls.
To compile an application that uses this function, define _WIN32_WINNT as 0x0600 or later. For more information, see Using the Windows Headers .
Requirements
Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2008
HeaderWinreg.h (include Windows.h)
LibraryAdvapi32.lib
DLLAdvapi32.dll
Unicode and ANSI namesRegLoadMUIStringW (Unicode) and RegLoadMUIStringA (ANSI)
See Also
Registry Functions
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms724890(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 13:20:30