localspl: Implement DeletePort for XcvDataPort.
This commit is contained in:
parent
4bd9f22f1d
commit
9827e5d24e
dlls/localspl
|
@ -65,6 +65,7 @@ static struct list xcv_handles = LIST_INIT( xcv_handles );
|
|||
|
||||
/* ############################### */
|
||||
|
||||
static const WCHAR cmd_DeletePortW[] = {'D','e','l','e','t','e','P','o','r','t',0};
|
||||
static const WCHAR cmd_ConfigureLPTPortCommandOKW[] = {'C','o','n','f','i','g','u','r','e',
|
||||
'L','P','T','P','o','r','t',
|
||||
'C','o','m','m','a','n','d','O','K',0};
|
||||
|
@ -468,6 +469,18 @@ DWORD WINAPI localmon_XcvDataPort(HANDLE hXcv, LPCWSTR pszDataName, PBYTE pInput
|
|||
return res;
|
||||
}
|
||||
|
||||
if (!lstrcmpW(pszDataName, cmd_DeletePortW)) {
|
||||
TRACE("InputData (%d): %s\n", cbInputData, debugstr_w( (LPWSTR) pInputData));
|
||||
res = RegOpenKeyW(HKEY_LOCAL_MACHINE, WinNT_CV_PortsW, &hroot);
|
||||
if (res == ERROR_SUCCESS) {
|
||||
res = RegDeleteValueW(hroot, (LPWSTR) pInputData);
|
||||
RegCloseKey(hroot);
|
||||
TRACE("=> %u with %u\n", res, GetLastError() );
|
||||
return res;
|
||||
}
|
||||
return ERROR_FILE_NOT_FOUND;
|
||||
}
|
||||
|
||||
if (!lstrcmpW(pszDataName, cmd_GetDefaultCommConfigW)) {
|
||||
TRACE("InputData (%d): %s\n", cbInputData, debugstr_w( (LPWSTR) pInputData));
|
||||
*pcbOutputNeeded = cbOutputData;
|
||||
|
|
Loading…
Reference in New Issue