网站首页  词典首页

请输入您要查询的函数:

 

术语 getsystemwindowsdirectory
释义 GetSystemWindowsDirectory
语法:
C++
UINT WINAPI GetSystemWindowsDirectory(
__out LPTSTR lpBuffer,
__in UINT uSize
);
GetSystemWindowsDirectory功能
检索路径共享Windows在一个多用户系统目录中。
此功能主要是为兼容。应用程序应存储在Program Files文件夹的代码,并在应用程序中的数据用户的配置文件夹的持久性数据。有关更多信息,请参阅的SHGetFolderPath。
参数
lpBuffer [out]
一个缓冲区指针接收路径。这条道路并没有结束,除非以反斜杠Windows目录是根目录。例如,如果Windows目录被命名为Windows的C驱动器上的Windows目录的路径检索这个函数是C:\\窗口。如果系统在驱动器C的根目录,检索安装路径是C:\\。
uSize [in]
至于由lpBuffer参数指定的缓冲区的最大尺寸,在TCHARs。
返回值
如果函数成功,返回值是复制到缓冲区的字符串的长度,在TCHARs,不包括终止空字符。
如果长度大于缓冲区的大小,返回值是须持有的路径缓冲区的大小。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
在系统上运行终端服务,每个用户都有一个独特的Windows目录。该系统的Windows目录是由所有用户共享,因此它是一个应用程序目录应该存储初始化和帮助文件适用于所有用户。
随着终端服务,GetSystemWindowsDirectory函数检索系统的Windows目录的路径,而GetWindowsDirectory函数检索的Windows目录中为每个用户的私人路径。在单用户系统,GetSystemWindowsDirectory是为GetWindowsDirectory相同。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
Unicode和ANSI namesGetSystemWindowsDirectoryW(Unicode)和GetSystemWindowsDirectoryA(ANSI)的
参见
GetWindowsDirectory
SHGetFolderLocation
系统信息功能
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==GetSystemWindowsDirectory Function
Retrieves the path of the shared Windows directory on a multi-user system.
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 GetSystemWindowsDirectory(
__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 Windows directory is the root directory. For example, if the Windows directory is named Windows on drive C, the path of the Windows directory retrieved by this function is C:\\Windows. If the system was installed in the root directory of drive C, the path retrieved is C:\\.
uSize [in]
The maximum size of the buffer specified by the lpBuffer parameter, in TCHARs.
Return Value
If the function succeeds, the return value is the length of the string copied to the buffer, in TCHARs, 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.
If the function fails, the return value is zero. To get extended error information, call GetLastError .
Remarks
On a system that is running Terminal Services, each user has a unique Windows directory. The system Windows directory is shared by all users, so it is the directory where an application should store initialization and help files that apply to all users.
With Terminal Services, the GetSystemWindowsDirectory function retrieves the path of the system Windows directory, while the GetWindowsDirectory function retrieves the path of a Windows directory that is private for each user. On a single-user system, GetSystemWindowsDirectory is the same as GetWindowsDirectory.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
Unicode and ANSI namesGetSystemWindowsDirectoryW (Unicode) and GetSystemWindowsDirectoryA (ANSI)
See Also
GetWindowsDirectory
SHGetFolderLocation
System Information Functions
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms724403(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:23:09