- diff --git a/dll/nfs41_np.c b/dll/nfs41_np.c
 - index cb1148c..ee6b222 100644
 - --- a/dll/nfs41_np.c
 - +++ b/dll/nfs41_np.c
 - @@ -458,8 +458,10 @@ NPGetCaps(
 - case WNNC_START:
 - rc = 1;
 - break;
 - - case WNNC_USER:
 - case WNNC_DIALOG:
 - + rc = WNNC_DLG_FORMATNETWORKNAME;
 - + break;
 - + case WNNC_USER:
 - case WNNC_ADMIN:
 - case WNNC_CONNECTION_FLAGS:
 - default:
 - @@ -1368,3 +1370,32 @@ NPGetUniversalName(
 - lpLocalPath, (int)dwInfoLevel));
 - return WN_NOT_SUPPORTED;
 - }
 - +
 - +DWORD APIENTRY
 - +NPFormatNetworkName(
 - + _In_ LPWSTR lpRemoteName,
 - + _Out_writes_(*lpnLength) LPWSTR lpFormattedName,
 - + _Inout_ LPDWORD lpnLength,
 - + _In_ DWORD dwFlags,
 - + _In_ DWORD dwAveCharPerLine
 - +)
 - +{
 - + DWORD Status = WN_SUCCESS;
 - + DbgP((L"--> NPFormatNetworkName(lpRemoteName='%s', "
 - + "*lpnLength='%d', dwFlags=0x%x, "
 - + "dwAveCharPerLine=%d\n",
 - + lpRemoteName, (int)*lpnLength,
 - + (int)dwFlags, (int)dwAveCharPerLine));
 - +
 - + if (*lpnLength < 1024) {
 - + *lpnLength = 1024;
 - + Status = WN_MORE_DATA;
 - + goto out;
 - + }
 - +
 - + (void)swprintf(lpFormattedName, 1024, L"nfs://%ls?done", lpRemoteName);
 - +out:
 - + DbgP((L"<-- NPFormatNetworkName returns %d\n", (int)Status));
 - + return Status;
 - +}
 - +
 - diff --git a/dll/nfs41_np.def b/dll/nfs41_np.def
 - index 8ac37a9..2174d69 100644
 - --- a/dll/nfs41_np.def
 - +++ b/dll/nfs41_np.def
 - @@ -11,6 +11,7 @@ EXPORTS
 - NPEnumResource
 - NPCloseEnum
 - NPGetUniversalName
 - + NPFormatNetworkName
 - NPGetResourceParent
 - NPGetResourceInformation
 - NPLogonNotify
 
NPFormatNetworkName() prototype
Posted by Anonymous on Mon 9th Dec 2024 15:20
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.
 nrubsig.kpaste.net RSS