• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 126
  • Last Modified:

System Directory

How do i test if user is  running a shared version of Windows?

Sample codes is appreciated.
0
leowlf
Asked:
leowlf
1 Solution
 
leowlfAuthor Commented:
Edited text of question.
0
 
leowlfAuthor Commented:
Edited text of question.
0
 
leowlfAuthor Commented:
Edited text of question.
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
shaigCommented:
Can you please explain what is a "shared version of windows"?
0
 
leowlfAuthor Commented:
Hi shaig,

The following is extracted from VC on-line help for GetSystemDirectory( ).

"Applications should not create files in the system directory. If the user is running a shared version of Windows, the application does not have write access to the system directory...."

So what does that means?
0
 
MDarlingCommented:
just a guess - but i think this might mean that windows exists on a file server
and that the clients are network computers with minimal local storage

as for how to detect - havent got a clue.

maybe GetSystemDirectory would return a UNC path in this case and you could
check to see if the path starts with \\

regards,
mike.
0
 
shaigCommented:
What is your goal? What are you trying to accomplish?

0
 
Tommy HuiEngineerCommented:
One way would be to create a temporary file in the Windows system directory. If the creation failed, then you know they don't have rights and is most likely running the shared version. If the creation succeeds, then they are running a local version of Windows.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now