mirror of
https://github.com/reactos/reactos.git
synced 2026-05-25 08:39:58 +08:00
[NETSH] Implement MakeQuotedString() and FreeQuotedString()
These functions are used by WinXPs ifmon.dll.
This commit is contained in:
@@ -194,6 +194,32 @@ done:
|
||||
return result;
|
||||
}
|
||||
|
||||
VOID
|
||||
WINAPI
|
||||
FreeQuotedString(
|
||||
_In_ LPWSTR pszQuotedString)
|
||||
{
|
||||
DPRINT("FreeQuotedString(%S)\n", pszQuotedString);
|
||||
HeapFree(GetProcessHeap(), 0, pszQuotedString);
|
||||
}
|
||||
|
||||
LPWSTR
|
||||
WINAPI
|
||||
MakeQuotedString(
|
||||
_In_ LPWSTR pszString)
|
||||
{
|
||||
LPWSTR pszQuotedString;
|
||||
|
||||
DPRINT("MakeQuotedString(%S)\n", pszString);
|
||||
|
||||
pszQuotedString = HeapAlloc(GetProcessHeap(), 0, (wcslen(pszString) + 3) * sizeof(WCHAR));
|
||||
if (pszQuotedString == NULL)
|
||||
return NULL;
|
||||
|
||||
swprintf(pszQuotedString, L"\"%s\"", pszQuotedString);
|
||||
|
||||
return pszQuotedString;
|
||||
}
|
||||
|
||||
DWORD
|
||||
WINAPI
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
@ stub ConvertStringToGuid
|
||||
@ stub DisplayMessageM
|
||||
@ stub DisplayMessageToConsole
|
||||
@ stub FreeQuotedString
|
||||
@ stdcall FreeQuotedString(wstr)
|
||||
@ stub FreeString
|
||||
@ stub GenericMonitor
|
||||
@ stub GetEnumString
|
||||
@ stub GetHostMachineInfo
|
||||
@ stub InitializeConsole
|
||||
@ stub MakeQuotedString
|
||||
@ stdcall MakeQuotedString(wstr)
|
||||
@ stub MakeString
|
||||
@ stub MatchCmdLine
|
||||
@ stdcall MatchEnumTag(ptr wstr long ptr ptr)
|
||||
|
||||
@@ -1,6 +1,16 @@
|
||||
#ifndef __NETSH_UNDOC_H__
|
||||
#define __NETSH_UNDOC_H__
|
||||
|
||||
VOID
|
||||
WINAPI
|
||||
FreeQuotedString(
|
||||
_In_ LPWSTR pszQuotedString);
|
||||
|
||||
LPWSTR
|
||||
WINAPI
|
||||
MakeQuotedString(
|
||||
_In_ LPWSTR pszString);
|
||||
|
||||
DWORD
|
||||
WINAPI
|
||||
NsGetFriendlyNameFromIfName(
|
||||
|
||||
Reference in New Issue
Block a user