Knowledge Base

PRB: GetVolumeInformation() Fails with UNC Name

Article ID: 119219

Article Last Modified on 11/21/2006


APPLIES TO


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

Additional query words: 3.10 3.50 4.00

Keywords: kbprb KB119219