网站首页  词典首页

请输入您要查询的函数:

 

术语 getsystemdirectory
释义 GetSystemDirectory
语法:
C++
UINT WINAPI GetSystemDirectory(
__out LPTSTR lpBuffer,
__in UINT uSize
);
GetSystemDirectory函数
路径检索系统目录。该系统目录包含诸如动态链接库和驱动系统文件。
此功能主要是为兼容。应用程序应存储在Program Files文件夹的代码,并在应用程序中的数据用户的配置文件夹的持久性数据。有关更多信息,请参阅的SHGetFolderPath。
参数
lpBuffer [out]
一个缓冲区指针接收路径。这条道路并没有结束以反斜杠,除非系统目录是根目录。例如,如果系统目录名为Windows \\在驱动器系统C,由这个函数检索系统目录路径是C:\\的Windows \\ System。
uSize [in]
缓冲区的最大大小,在TCHARs。
返回值
如果函数成功,返回值是长度,TCHARs,复制到缓冲区的字符串,不包括终止空字符。如果长度大于缓冲区的大小,返回值是须持有路径缓冲区,包括终止空字符大小。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
应用程序不应建立在系统目录中的文件。如果用户运行的操作系统的共享版本,应用程序不具有写访问到系统目录。
实例
有关示例,请参见获取系统信息。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
Unicode和ANSI namesGetSystemDirectoryW(Unicode)和GetSystemDirectoryA(ANSI)的
参见
GetCurrentDirectory
GetWindowsDirectory
SetCurrentDirectory
系统信息功能
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==GetSystemDirectory Function
Retrieves the path of the system directory. The system directory contains system files such as dynamic-link libraries and drivers.
This function is provided primarily for compatibility. Applications should store code in the Program Files folder and persistent data in the Application Data folder in the user's profile. For more information, see ShGetFolderPath .
Syntax
C++
UINT WINAPI GetSystemDirectory(
__out LPTSTR lpBuffer,
__in UINT uSize
);
Parameters
lpBuffer [out]
A pointer to the buffer to receive the path. This path does not end with a backslash unless the system directory is the root directory. For example, if the system directory is named Windows\\System on drive C, the path of the system directory retrieved by this function is C:\\Windows\\System.
uSize [in]
The maximum size of the buffer, in TCHARs.
Return Value
If the function succeeds, the return value is the length, in TCHARs, of the string copied to the buffer, not including the terminating null character. If the length is greater than the size of the buffer, the return value is the size of the buffer required to hold the path, including the terminating null character.
If the function fails, the return value is zero. To get extended error information, call GetLastError .
Remarks
Applications should not create files in the system directory. If the user is running a shared version of the operating system, the application does not have write access to the system directory.
Examples
For an example, see Getting System Information .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
Unicode and ANSI namesGetSystemDirectoryW (Unicode) and GetSystemDirectoryA (ANSI)
See Also
GetCurrentDirectory
GetWindowsDirectory
SetCurrentDirectory
System Information Functions
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms724373(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:26:33