setupapi: Add support for DIRID_PRINTPROCESSOR.
This commit is contained in:
parent
be964897aa
commit
000136ac30
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue