Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6082393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:17:03+00:00 2026-05-23T11:17:03+00:00

From a Vista workstation, I have an attached XP Embedded computer on which I

  • 0

From a Vista workstation, I have an attached XP Embedded computer on which I want to programmatically mount a volume locally (e.g., mount the XP Embedded \\MyXPEmbedded\C:\some\path\ to the Vista workstation (mounted to C:\mounted_XPEmbedded\).

(This is an administrative utility that runs on the Vista workstation that maintains files on the XP Embedded workstation, which is part of a larger device.)

I can see the XP Embedded computer from the Vista workstation. For example, I can ::getnameinfo() to resolve the XP Embedded computer’s name from its IP address.

However, all calls to GetVolumeNameForVolumeMountPoint() fail (returns false), with the formatted message from ::GetLastError() being:

Logon failure: unknown user name or bad password

So clearly, this seems to be a permissions problem. However, I see no discussion in the Microsoft APIs how I may provide the user/password through these volume GUID path APIs.

When “browsing” the XP Embedded from the Windows Explorer on the Vista workstation by typing the IP address for the XP Embedded machine into the address bar, I get prompted for a user name and password, after which I can see everything on the XP Embedded (duh! How do I provide that programatically?)

QUESTION: How can I provide the user login/password programatically when working with the GUID path APIs (and specifically ::GetVolumeNameForVolumeMountPoint() )?

Part of the problem may be that these computers do not share the same domain (they can’t, the Vista computer will be added to the customer’s domain, the XP Embedded must be “hidden”).

Other info, which probably is not important:

  • The Vista workstation and XP Embedded do not share the same domain (they can’t)
  • Application runs on Vista workstation under an account with Administrative permissions (I assume this is required?)
  • That Vista administrative account is not present on the XP Embedded computer (the XP Embedded has a different administrative account)
  • The clocks between both computers are current (security credentials should work)
  • The Vista workstation has two network cards, one card connects directly to the XP Embedded box, which has only one network card
  • Using C++, MSVS2008

BONUS QUESTION: It would be nice if I could run this administrative utility on the Vista workstation without administrative permissions, is this possible? (I know the administrative login/password for the XP embedded.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T11:17:04+00:00Added an answer on May 23, 2026 at 11:17 am

    Make a call to WNetAddConnection2 before trying to access the shares on the embedded box. You might need to have username in the form of MyXPEmbedded\[admin username].

    You may come across issues if you have already tried to make connections to the embedded box previously. To remove any of the lingering connections you can use, from the command line – net use with the /delete option. You can also play with establishing the connection w/ net use before running your program for debugging purposes.

    As far as running w/o admin privileges that will mostly have to do with where you decide to make the local mount point, but you could probably get away with just using the UNC path. Using the default administrative shares (which are enabled if “use simple file sharing” is disabled) you can access the embedded system using something like \\MyXPEmbedded\c$\some\path.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm migrating my development workstation from 32-bit Vista to 64-bit Vista. The production platform
I run Windows 7 RC1, which uses the same WTM from Vista. When i
Can I have a Windows Vista/7 gadget where the app is loaded from a
I am developing a program which sends images from one computer to another (similar
I recently upgraded from Vista/32 to Win7/64. On my old machine, everything was working
I am developing an application from windows vista machine. The web application is hosted
I'm considering a full upgrade to Windows 7 Beta, thus wiping Vista from my
I'm upgrading an app with many different settings files from XP to Vista and
I've taken the plunge and upgraded (or maybe downgraded?!) from WinXP to Vista. Everything
I installed CruiseControl.net ( from the CruiseControl.NET-1.4-Setup.exe installer ) on my Vista x64 development

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.