Commit 388fd47c authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

winspool.drv: Implement DeletePrinterDriverExW.

parent 7ce85a8d
......@@ -5756,9 +5756,40 @@ BOOL WINAPI DeletePrinterConnectionW( LPWSTR pName )
BOOL WINAPI DeletePrinterDriverExW( LPWSTR pName, LPWSTR pEnvironment,
LPWSTR pDriverName, DWORD dwDeleteFlag, DWORD dwVersionFlag)
{
FIXME("%s %s %s %x %x\n", debugstr_w(pName), debugstr_w(pEnvironment),
HKEY hkey_drivers;
BOOL ret = FALSE;
TRACE("%s %s %s %x %x\n", debugstr_w(pName), debugstr_w(pEnvironment),
debugstr_w(pDriverName), dwDeleteFlag, dwVersionFlag);
return TRUE;
if(pName && pName[0])
{
FIXME("pName = %s - unsupported\n", debugstr_w(pName));
SetLastError(ERROR_INVALID_PARAMETER);
return FALSE;
}
if(dwDeleteFlag)
{
FIXME("dwDeleteFlag = %x - unsupported\n", dwDeleteFlag);
SetLastError(ERROR_INVALID_PARAMETER);
return FALSE;
}
hkey_drivers = WINSPOOL_OpenDriverReg(pEnvironment, TRUE);
if(!hkey_drivers)
{
ERR("Can't open drivers key\n");
return FALSE;
}
if(WINSPOOL_SHDeleteKeyW(hkey_drivers, pDriverName) == ERROR_SUCCESS)
ret = TRUE;
RegCloseKey(hkey_drivers);
return ret;
}
/******************************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment