PRB: GetVolumeInformation() Fails with UNC Name (119219)



The information in this article applies to:

  • Microsoft Win32 Application Programming Interface (API), when used with:
    • Microsoft Windows NT Server 3.5
    • Microsoft Windows NT Server 3.51
    • Microsoft Windows NT Workstation 3.5
    • Microsoft Windows NT Workstation 3.51
    • Microsoft Windows 95

This article was previously published under Q119219

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>\.

Modification Type:MinorLast Reviewed:3/7/2005
Keywords:kbprb KB119219