PRB: GetVolumeInformation() Fails with UNC Name

ID: Q119219


The information in this article applies to:
  • Microsoft Win32 Application Programming Interface (API), used with:
    • Microsoft Windows NT, versions 3.5, 3.51
    • Microsoft Windows 95


SYMPTOMS

GetVolumeInformation() fails and GetLastError() returns 123 (ERROR_INVALID_NAME) if a UNC name is used. The UNC name has the form \\<SERVER>\<SHARE>.


RESOLUTION

GetVolumeInformation() requires an extra backslash with UNC names, so that the name has the form \\<SERVER>\<SHARE>\.

Additional query words: 3.10 3.50 4.00

Keywords :
Version : winnt:3.5,3.51
Platform : winnt
Issue type : kbprb


Last Reviewed: September 21, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.