Commit 000136ac authored by Andrey Turkin's avatar Andrey Turkin Committed by Alexandre Julliard

setupapi: Add support for DIRID_PRINTPROCESSOR.

parent be964897
......@@ -6,7 +6,7 @@ VPATH = @srcdir@
MODULE = setupapi.dll
IMPORTLIB = setupapi
IMPORTS = uuid user32 version advapi32 rpcrt4 kernel32 ntdll
DELAYIMPORTS = shell32 wintrust ole32
DELAYIMPORTS = shell32 wintrust ole32 winspool
C_SRCS = \
devinst.c \
......
......@@ -28,6 +28,7 @@
#include "wingdi.h"
#include "winuser.h"
#include "winnls.h"
#include "winspool.h"
#include "setupapi.h"
#include "shlobj.h"
#include "wine/unicode.h"
......@@ -86,6 +87,7 @@ static const WCHAR *create_system_dirid( int dirid )
WCHAR buffer[MAX_PATH+32], *str;
int len;
DWORD needed;
switch(dirid)
{
......@@ -138,8 +140,14 @@ static const WCHAR *create_system_dirid( int dirid )
return get_csidl_dir(CSIDL_PROFILE);
case DIRID_LOADER:
return C_Root; /* FIXME */
case DIRID_PRINTPROCESSOR:
if (!GetPrintProcessorDirectoryW(NULL, NULL, 1, (LPBYTE)buffer, sizeof(buffer), &needed))
{
WARN( "cannot retrieve print processor directory\n" );
return get_unknown_dirid();
}
break;
case DIRID_COLOR: /* FIXME */
case DIRID_PRINTPROCESSOR: /* FIXME */
default:
FIXME( "unknown dirid %d\n", dirid );
return get_unknown_dirid();
......
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