Microsoft KB Archive/119219

{|
 * width="100%"|

PRB: GetVolumeInformation Fails with UNC Name

 * }

Q119219

-

The information in this article applies to:


 * Microsoft Win32 Application Programming Interface (API), used with:
 * Microsoft Windows NT Server versions 3.5, 3.51
 * Microsoft Windows NT Workstation 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 \\\.

RESOLUTION
GetVolumeInformation requires an extra backslash with UNC names, so that the name has the form \\\\.

Additional query words: 3.10 3.50 4.00

Keywords :

Issue type : kbprb

Technology : kbAudDeveloper kbWin32sSearch kbWin32API