Msdn getwindowsdirectory




















The Windows directory is the directory where some legacy applications store initialization and help files. New applications should not store files in the Windows directory; instead, they should store system-wide data in the application's installation directory, and user-specific data in the user's profile. If the user is running a shared version of the system, the Windows directory is guaranteed to be private for each user. If an application creates other files that it wants to store on a per-user basis, it should place them in the directory specified by the HOMEPATH environment variable.

This directory will be different for each user, if so specified by an administrator, through the User Manager administrative tool. Terminal Services: If the application is running in a Terminal Services environment, each user has a private Windows directory. There is also a shared Windows directory for the system. Otherwise, it retrieves the path of the private Windows directory for the user. For an example, see Getting System Information.

The sysinfoapi. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. How can I do that. Is there a function to get the full path of the Windows directory?

I saw the GetWindowsDirectory function but I can't use it. Do I need a certain reference to a library for it or what? Are you looking for the Windows directory or just the system directory? If the System directory you could simply do this:. Otherwise to get the Windows directory you can still use that value to move a directory back up the tree. NET take a look at its page on pinvoke. 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. The sysinfoapi. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors.

For more information, see Conventions for Function Prototypes. System Information Functions. Skip to main content. This browser is no longer supported.

Download Microsoft Edge More info.



0コメント

  • 1000 / 1000