bool IServerConfig.GetUncUser(IApplicationHost appHost, VirtualPath path, out string username, out string password)
        {
            bool foundCreds = false;

            username = null;
            password = null;

            IntPtr pBstrUserName = IntPtr.Zero;
            int    cBstrUserName = 0;
            IntPtr pBstrPassword = IntPtr.Zero;
            int    cBstrPassword = 0;

            try {
                int result = _nativeConfig.MgdGetVrPathCreds(appHost.GetSiteName(),
                                                             path.VirtualPathString,
                                                             out pBstrUserName,
                                                             out cBstrUserName,
                                                             out pBstrPassword,
                                                             out cBstrPassword);
                if (result == 0)
                {
                    username   = (cBstrUserName > 0) ? StringUtil.StringFromWCharPtr(pBstrUserName, cBstrUserName) : null;
                    password   = (cBstrPassword > 0) ? StringUtil.StringFromWCharPtr(pBstrPassword, cBstrPassword) : null;
                    foundCreds = (!String.IsNullOrEmpty(username) && !String.IsNullOrEmpty(password));
                }
            }
            finally {
                if (pBstrUserName != IntPtr.Zero)
                {
                    Marshal.FreeBSTR(pBstrUserName);
                }
                if (pBstrPassword != IntPtr.Zero)
                {
                    Marshal.FreeBSTR(pBstrPassword);
                }
            }

            return(foundCreds);
        }