File tree Expand file tree Collapse file tree 3 files changed +38
-2
lines changed
base/applications/network/netsh Expand file tree Collapse file tree 3 files changed +38
-2
lines changed Original file line number Diff line number Diff line change @@ -194,6 +194,32 @@ wmain(
194194 return result ;
195195}
196196
197+ VOID
198+ WINAPI
199+ FreeQuotedString (
200+ _In_ LPWSTR pszQuotedString )
201+ {
202+ DPRINT ("FreeQuotedString(%S)\n" , pszQuotedString );
203+ HeapFree (GetProcessHeap (), 0 , pszQuotedString );
204+ }
205+
206+ LPWSTR
207+ WINAPI
208+ MakeQuotedString (
209+ _In_ LPWSTR pszString )
210+ {
211+ LPWSTR pszQuotedString ;
212+
213+ DPRINT ("MakeQuotedString(%S)\n" , pszString );
214+
215+ pszQuotedString = HeapAlloc (GetProcessHeap (), 0 , (wcslen (pszString ) + 3 ) * sizeof (WCHAR ));
216+ if (pszQuotedString == NULL )
217+ return NULL ;
218+
219+ swprintf (pszQuotedString , L"\"%s\"" , pszQuotedString );
220+
221+ return pszQuotedString ;
222+ }
197223
198224DWORD
199225WINAPI
Original file line number Diff line number Diff line change 22@ stub ConvertStringToGuid
33@ stub DisplayMessageM
44@ stub DisplayMessageToConsole
5- @ stub FreeQuotedString
5+ @ stdcall FreeQuotedString ( wstr )
66@ stub FreeString
77@ stub GenericMonitor
88@ stub GetEnumString
99@ stub GetHostMachineInfo
1010@ stub InitializeConsole
11- @ stub MakeQuotedString
11+ @ stdcall MakeQuotedString ( wstr )
1212@ stub MakeString
1313@ stub MatchCmdLine
1414@ stdcall MatchEnumTag (ptr wstr long ptr ptr )
Original file line number Diff line number Diff line change 11#ifndef __NETSH_UNDOC_H__
22#define __NETSH_UNDOC_H__
33
4+ VOID
5+ WINAPI
6+ FreeQuotedString (
7+ _In_ LPWSTR pszQuotedString );
8+
9+ LPWSTR
10+ WINAPI
11+ MakeQuotedString (
12+ _In_ LPWSTR pszString );
13+
414DWORD
515WINAPI
616NsGetFriendlyNameFromIfName (
You can’t perform that action at this time.
0 commit comments