网站首页  词典首页

请输入您要查询的函数:

 

术语 getdlldirectory
释义 GetDllDirectory
语法:
C++
DWORD WINAPI GetDllDirectory(
__in DWORD nBufferLength,
__out LPTSTR lpBuffer
);
GetDllDirectory功能
检索应用程序特定部分用于定位应用程序DLL的搜索路径。
参数
nBufferLength [in]
输出缓冲区的大小,以字符。
lpBuffer [out]
阿一个缓冲区,它接收应用程序的搜索路径的特定部分的指针。
返回值
如果函数成功,返回值是复制到lpBuffer字符串的长度,以字符,不包括终止空字符。如果返回值大于nBufferLength大,它指定的路径所需的缓冲区大小。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
要编译的应用程序使用此功能,定义_WIN32_WINNT为0x0502或更高版本。有关详细信息,请参阅使用Windows头。
要求:
最低支持clientWindows SP1的Vista中,Windows XP的
最低支持serverWindows服务器2003
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
Unicode和ANSI namesGetDllDirectoryW(Unicode)和GetDllDirectoryA(ANSI)的
参见
动态链接库搜索顺序
SetDllDirectory
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==GetDllDirectory Function
Retrieves the application-specific portion of the search path used to locate DLLs for the application.
Syntax
C++
DWORD WINAPI GetDllDirectory(
__in DWORD nBufferLength,
__out LPTSTR lpBuffer
);
Parameters
nBufferLength [in]
The size of the output buffer, in characters.
lpBuffer [out]
A pointer to a buffer that receives the application-specific portion of the search path.
Return Value
If the function succeeds, the return value is the length of the string copied to lpBuffer, in characters, not including the terminating null character. If the return value is greater than nBufferLength, it specifies the size of the buffer required for the path.
If the function fails, the return value is zero. To get extended error information, call GetLastError .
Remarks
To compile an application that uses this function, define _WIN32_WINNT as 0x0502 or later. For more information, see Using the Windows Headers .
Requirements
Minimum supported clientWindows Vista, Windows XP with SP1
Minimum supported serverWindows Server 2003
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
Unicode and ANSI namesGetDllDirectoryW (Unicode) and GetDllDirectoryA (ANSI)
See Also
Dynamic-Link Library Search Order
SetDllDirectory
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms683186(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:28:31