网站首页  词典首页

请输入您要查询的函数:

 

术语 translatename
释义 TranslateName
语法:
C++
BOOLEAN WINAPI TranslateName(
__in LPCTSTR lpAccountName,
__in EXTENDED_NAME_FORMAT AccountNameFormat,
__in EXTENDED_NAME_FORMAT DesiredNameFormat,
__out LPTSTR lpTranslatedName,
__inout PULONG nSize
);
TranslateName功能
从一种格式转换目录服务对象的名称到另一个。
参数
lpAccountName [in]
这个名字翻译。
AccountNameFormat [in]
名称的格式进行转换。此参数是从EXTENDED_NAME_FORMAT枚举类型值。
DesiredNameFormat [in]
转换后的名称格式。此参数是从EXTENDED_NAME_FORMAT枚举类型值。它不能NameUnknown。
lpTranslatedName [out]
阿一个缓冲区,它接收转换名的指针。
nSize [ in , out ]
在输入,显示该变量的lpTranslatedName在TCHARs缓冲区的大小。在输出的变量返回,返回字符串的大小,在TCHARs,包括终止空字符。
如果lpTranslated为NULL和nSize为0,则函数成功和nSize获得所需的缓冲区大小。
如果lpTranslatedName缓冲区太小,不能容纳转换后的名称,函数失败并nSize获得所需的缓冲区大小。
返回值
如果函数成功,返回值是一个非零值。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
TranslateName失败如果不能绑定到Active Directory域控制器上。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderSecext.h(包括Security.h)
LibrarySecur32.lib
DLLSecur32.dll
Unicode和ANSI namesTranslateNameW(Unicode)和TranslateNameA(ANSI)的
参见
计算机名称
DsCrackNames
EXTENDED_NAME_FORMAT
系统信息功能
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==TranslateName Function
Converts a directory service object name from one format to another.
Syntax
C++
BOOLEAN WINAPI TranslateName(
__in LPCTSTR lpAccountName,
__in EXTENDED_NAME_FORMAT AccountNameFormat,
__in EXTENDED_NAME_FORMAT DesiredNameFormat,
__out LPTSTR lpTranslatedName,
__inout PULONG nSize
);
Parameters
lpAccountName [in]
The name to be translated.
AccountNameFormat [in]
The format of the name to be translated. This parameter is a value from the EXTENDED_NAME_FORMAT enumeration type.
DesiredNameFormat [in]
The format of the converted name. This parameter is a value from the EXTENDED_NAME_FORMAT enumeration type. It cannot be NameUnknown.
lpTranslatedName [out]
A pointer to a buffer that receives the converted name.
nSize [in, out]
On input, the variable indicates the size of the lpTranslatedName buffer, in TCHARs. On output, the variable returns the size of the returned string, in TCHARs, including the terminating null character.
If lpTranslated is NULL and nSize is 0, the function succeeds and nSize receives the required buffer size.
If the lpTranslatedName buffer is too small to hold the converted name, the function fails and nSize receives the required buffer size.
Return Value
If the function succeeds, the return value is a nonzero value.
If the function fails, the return value is zero. To get extended error information, call GetLastError .
Remarks
TranslateName fails if it cannot bind to Active Directory on a domain controller.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderSecext.h (include Security.h)
LibrarySecur32.lib
DLLSecur32.dll
Unicode and ANSI namesTranslateNameW (Unicode) and TranslateNameA (ANSI)
See Also
Computer Names
DsCrackNames
EXTENDED_NAME_FORMAT
System Information Functions
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms725484(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:16:20