网站首页  词典首页

请输入您要查询的函数:

 

术语 getcomputerobjectname
释义 GetComputerObjectName
语法:
C++
BOOLEAN WINAPI GetComputerObjectName(
__in EXTENDED_NAME_FORMAT NameFormat,
__out LPTSTR lpNameBuffer,
__inout PULONG lpnSize
);
GetComputerObjectName功能
检索指定的格式在本地计算机的名称。
参数
NameFormat [in]
为名称格式。此参数是从EXTENDED_NAME_FORMAT枚举类型值。它不能NameUnknown。
lpNameBuffer [out]
A到接收缓冲区中指定格式的名称的指针。
如果该参数为NULL,要么函数成功和lpnSize参数接收所需的大小,或函数与ERROR_INSUFFICIENT_BUFFER和lpnSize未能获得所需的大小。行为取决于对NameFormat价值的操作系统的版本。
lpnSize [ in , out ]
在输入,指定lpNameBuffer在TCHARs缓冲区的大小。在取得成功,获得了复制到缓冲区的名称的大小。如果lpNameBuffer缓冲区太小举行的名称,函数失败并lpnSize获得所需的缓冲区大小。
返回值
如果函数成功,返回值是一个非零值。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderSecext.h(包括Security.h)
LibrarySecur32.lib
DLLSecur32.dll
Unicode和ANSI namesGetComputerObjectNameW(Unicode)和GetComputerObjectNameA(ANSI)的
参见
EXTENDED_NAME_FORMAT
GetComputerNameEx
系统信息功能
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==GetComputerObjectName Function
Retrieves the local computer's name in a specified format.
Syntax
C++
BOOLEAN WINAPI GetComputerObjectName(
__in EXTENDED_NAME_FORMAT NameFormat,
__out LPTSTR lpNameBuffer,
__inout PULONG lpnSize
);
Parameters
NameFormat [in]
The format for the name. This parameter is a value from the EXTENDED_NAME_FORMAT enumeration type. It cannot be NameUnknown.
lpNameBuffer [out]
A pointer to a buffer that receives the name in the specified format.
If this parameter is NULL, either the function succeeds and the lpnSize parameter receives the required size, or the function fails with ERROR_INSUFFICIENT_BUFFER and lpnSize receives the required size. The behavior depends on the value of NameFormat and the version of the operating system.
lpnSize [in, out]
On input, specifies the size of the lpNameBuffer buffer, in TCHARs. On success, receives the size of the name copied to the buffer. If the lpNameBuffer buffer is too small to hold the name, the function fails and lpnSize 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 .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderSecext.h (include Security.h)
LibrarySecur32.lib
DLLSecur32.dll
Unicode and ANSI namesGetComputerObjectNameW (Unicode) and GetComputerObjectNameA (ANSI)
See Also
EXTENDED_NAME_FORMAT
GetComputerNameEx
System Information Functions
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms724304(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:22:02