Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
4d626b06
Commit
4d626b06
authored
Nov 11, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Authors: Dmitry Timoshkov <dmitry@codeweavers.com>, Huw Davies <huw@codeweavers.com>
Constify strings. Fix args of [GS]etPrinterDataEx
parent
a39afdd6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
41 deletions
+41
-41
info.c
dlls/winspool/info.c
+33
-33
winspool.h
include/winspool.h
+8
-8
No files found.
dlls/winspool/info.c
View file @
4d626b06
...
...
@@ -68,40 +68,40 @@ static INT (WINAPI *GDI_CallExtDeviceMode16)( HWND hwnd, LPDEVMODEA lpdmOutput,
LPDEVMODEA
lpdmInput
,
LPSTR
lpszProfile
,
DWORD
fwMode
);
static
char
Printers
[]
=
static
c
onst
c
har
Printers
[]
=
"System
\\
CurrentControlSet
\\
control
\\
Print
\\
Printers
\\
"
;
static
char
Drivers
[]
=
static
c
onst
c
har
Drivers
[]
=
"System
\\
CurrentControlSet
\\
control
\\
Print
\\
Environments
\\
%s
\\
Drivers
\\
"
;
static
WCHAR
DefaultEnvironmentW
[]
=
{
'W'
,
'i'
,
'n'
,
'e'
,
0
};
static
const
WCHAR
DefaultEnvironmentW
[]
=
{
'W'
,
'i'
,
'n'
,
'e'
,
0
};
static
WCHAR
Configuration_FileW
[]
=
{
'C'
,
'o'
,
'n'
,
'f'
,
'i'
,
'g'
,
'u'
,
'r'
,
'a'
,
't'
,
static
const
WCHAR
Configuration_FileW
[]
=
{
'C'
,
'o'
,
'n'
,
'f'
,
'i'
,
'g'
,
'u'
,
'r'
,
'a'
,
't'
,
'i'
,
'o'
,
'n'
,
' '
,
'F'
,
'i'
,
'l'
,
'e'
,
0
};
static
WCHAR
DatatypeW
[]
=
{
'D'
,
'a'
,
't'
,
'a'
,
't'
,
'y'
,
'p'
,
'e'
,
0
};
static
WCHAR
Data_FileW
[]
=
{
'D'
,
'a'
,
't'
,
'a'
,
' '
,
'F'
,
'i'
,
'l'
,
'e'
,
0
};
static
WCHAR
Default_DevModeW
[]
=
{
'D'
,
'e'
,
'f'
,
'a'
,
'u'
,
'l'
,
't'
,
' '
,
'D'
,
'e'
,
'v'
,
static
const
WCHAR
DatatypeW
[]
=
{
'D'
,
'a'
,
't'
,
'a'
,
't'
,
'y'
,
'p'
,
'e'
,
0
};
static
const
WCHAR
Data_FileW
[]
=
{
'D'
,
'a'
,
't'
,
'a'
,
' '
,
'F'
,
'i'
,
'l'
,
'e'
,
0
};
static
const
WCHAR
Default_DevModeW
[]
=
{
'D'
,
'e'
,
'f'
,
'a'
,
'u'
,
'l'
,
't'
,
' '
,
'D'
,
'e'
,
'v'
,
'M'
,
'o'
,
'd'
,
'e'
,
0
};
static
WCHAR
Dependent_FilesW
[]
=
{
'D'
,
'e'
,
'p'
,
'e'
,
'n'
,
'd'
,
'e'
,
'n'
,
't'
,
' '
,
'F'
,
static
const
WCHAR
Dependent_FilesW
[]
=
{
'D'
,
'e'
,
'p'
,
'e'
,
'n'
,
'd'
,
'e'
,
'n'
,
't'
,
' '
,
'F'
,
'i'
,
'l'
,
'e'
,
's'
,
0
};
static
WCHAR
DescriptionW
[]
=
{
'D'
,
'e'
,
's'
,
'c'
,
'r'
,
'i'
,
'p'
,
't'
,
'i'
,
'o'
,
'n'
,
0
};
static
WCHAR
DriverW
[]
=
{
'D'
,
'r'
,
'i'
,
'v'
,
'e'
,
'r'
,
0
};
static
WCHAR
Help_FileW
[]
=
{
'H'
,
'e'
,
'l'
,
'p'
,
' '
,
'F'
,
'i'
,
'l'
,
'e'
,
0
};
static
WCHAR
LocationW
[]
=
{
'L'
,
'o'
,
'c'
,
'a'
,
't'
,
'i'
,
'o'
,
'n'
,
0
};
static
WCHAR
MonitorW
[]
=
{
'M'
,
'o'
,
'n'
,
'i'
,
't'
,
'o'
,
'r'
,
0
};
static
WCHAR
NameW
[]
=
{
'N'
,
'a'
,
'm'
,
'e'
,
0
};
static
WCHAR
ParametersW
[]
=
{
'P'
,
'a'
,
'r'
,
'a'
,
'm'
,
'e'
,
't'
,
'e'
,
'r'
,
's'
,
0
};
static
WCHAR
PortW
[]
=
{
'P'
,
'o'
,
'r'
,
't'
,
0
};
static
WCHAR
Print_ProcessorW
[]
=
{
'P'
,
'r'
,
'i'
,
'n'
,
't'
,
' '
,
'P'
,
'r'
,
'o'
,
'c'
,
'e'
,
static
const
WCHAR
DescriptionW
[]
=
{
'D'
,
'e'
,
's'
,
'c'
,
'r'
,
'i'
,
'p'
,
't'
,
'i'
,
'o'
,
'n'
,
0
};
static
const
WCHAR
DriverW
[]
=
{
'D'
,
'r'
,
'i'
,
'v'
,
'e'
,
'r'
,
0
};
static
const
WCHAR
Help_FileW
[]
=
{
'H'
,
'e'
,
'l'
,
'p'
,
' '
,
'F'
,
'i'
,
'l'
,
'e'
,
0
};
static
const
WCHAR
LocationW
[]
=
{
'L'
,
'o'
,
'c'
,
'a'
,
't'
,
'i'
,
'o'
,
'n'
,
0
};
static
const
WCHAR
MonitorW
[]
=
{
'M'
,
'o'
,
'n'
,
'i'
,
't'
,
'o'
,
'r'
,
0
};
static
const
WCHAR
NameW
[]
=
{
'N'
,
'a'
,
'm'
,
'e'
,
0
};
static
const
WCHAR
ParametersW
[]
=
{
'P'
,
'a'
,
'r'
,
'a'
,
'm'
,
'e'
,
't'
,
'e'
,
'r'
,
's'
,
0
};
static
const
WCHAR
PortW
[]
=
{
'P'
,
'o'
,
'r'
,
't'
,
0
};
static
const
WCHAR
Print_ProcessorW
[]
=
{
'P'
,
'r'
,
'i'
,
'n'
,
't'
,
' '
,
'P'
,
'r'
,
'o'
,
'c'
,
'e'
,
's'
,
's'
,
'o'
,
'r'
,
0
};
static
WCHAR
Printer_DriverW
[]
=
{
'P'
,
'r'
,
'i'
,
'n'
,
't'
,
'e'
,
'r'
,
' '
,
'D'
,
'r'
,
'i'
,
static
const
WCHAR
Printer_DriverW
[]
=
{
'P'
,
'r'
,
'i'
,
'n'
,
't'
,
'e'
,
'r'
,
' '
,
'D'
,
'r'
,
'i'
,
'v'
,
'e'
,
'r'
,
0
};
static
WCHAR
PrinterDriverDataW
[]
=
{
'P'
,
'r'
,
'i'
,
'n'
,
't'
,
'e'
,
'r'
,
'D'
,
'r'
,
'i'
,
static
const
WCHAR
PrinterDriverDataW
[]
=
{
'P'
,
'r'
,
'i'
,
'n'
,
't'
,
'e'
,
'r'
,
'D'
,
'r'
,
'i'
,
'v'
,
'e'
,
'r'
,
'D'
,
'a'
,
't'
,
'a'
,
0
};
static
WCHAR
Separator_FileW
[]
=
{
'S'
,
'e'
,
'p'
,
'a'
,
'r'
,
'a'
,
't'
,
'o'
,
'r'
,
' '
,
'F'
,
static
const
WCHAR
Separator_FileW
[]
=
{
'S'
,
'e'
,
'p'
,
'a'
,
'r'
,
'a'
,
't'
,
'o'
,
'r'
,
' '
,
'F'
,
'i'
,
'l'
,
'e'
,
0
};
static
WCHAR
Share_NameW
[]
=
{
'S'
,
'h'
,
'a'
,
'r'
,
'e'
,
' '
,
'N'
,
'a'
,
'm'
,
'e'
,
0
};
static
WCHAR
WinPrintW
[]
=
{
'W'
,
'i'
,
'n'
,
'P'
,
'r'
,
'i'
,
'n'
,
't'
,
0
};
static
WCHAR
devicesW
[]
=
{
'd'
,
'e'
,
'v'
,
'i'
,
'c'
,
'e'
,
's'
,
0
};
static
const
WCHAR
Share_NameW
[]
=
{
'S'
,
'h'
,
'a'
,
'r'
,
'e'
,
' '
,
'N'
,
'a'
,
'm'
,
'e'
,
0
};
static
const
WCHAR
WinPrintW
[]
=
{
'W'
,
'i'
,
'n'
,
'P'
,
'r'
,
'i'
,
'n'
,
't'
,
0
};
static
const
WCHAR
devicesW
[]
=
{
'd'
,
'e'
,
'v'
,
'i'
,
'c'
,
'e'
,
's'
,
0
};
static
const
WCHAR
May_Delete_Value
[]
=
{
'W'
,
'i'
,
'n'
,
'e'
,
'M'
,
'a'
,
'y'
,
'D'
,
'e'
,
'l'
,
'e'
,
't'
,
'e'
,
'M'
,
'e'
,
0
};
...
...
@@ -388,7 +388,7 @@ PRINTCAP_LoadPrinters(void) {
return
hadprinter
;
}
static
inline
DWORD
set_reg_szW
(
HKEY
hkey
,
WCHAR
*
keyname
,
WCHAR
*
value
)
static
inline
DWORD
set_reg_szW
(
HKEY
hkey
,
const
WCHAR
*
keyname
,
const
WCHAR
*
value
)
{
if
(
value
)
return
RegSetValueExW
(
hkey
,
keyname
,
0
,
REG_SZ
,
(
LPBYTE
)
value
,
...
...
@@ -2400,7 +2400,7 @@ static BOOL WINSPOOL_GetDriverInfoFromReg(
((
PDRIVER_INFO_3A
)
ptr
)
->
cVersion
=
dw
;
if
(
!
pEnvironment
)
pEnvironment
=
DefaultEnvironmentW
;
pEnvironment
=
(
LPWSTR
)
DefaultEnvironmentW
;
if
(
unicode
)
size
=
(
lstrlenW
(
pEnvironment
)
+
1
)
*
sizeof
(
WCHAR
);
else
...
...
@@ -3183,8 +3183,8 @@ BOOL WINAPI GetDefaultPrinterW(LPWSTR name, LPDWORD namesize)
/******************************************************************************
* SetPrinterDataExA (WINSPOOL.@)
*/
DWORD
WINAPI
SetPrinterDataExA
(
HANDLE
hPrinter
,
LPSTR
pKeyName
,
LPSTR
pValueName
,
DWORD
Type
,
DWORD
WINAPI
SetPrinterDataExA
(
HANDLE
hPrinter
,
LP
C
STR
pKeyName
,
LP
C
STR
pValueName
,
DWORD
Type
,
LPBYTE
pData
,
DWORD
cbData
)
{
HKEY
hkeyPrinter
,
hkeySubkey
;
...
...
@@ -3212,8 +3212,8 @@ DWORD WINAPI SetPrinterDataExA(HANDLE hPrinter, LPSTR pKeyName,
/******************************************************************************
* SetPrinterDataExW (WINSPOOL.@)
*/
DWORD
WINAPI
SetPrinterDataExW
(
HANDLE
hPrinter
,
LPWSTR
pKeyName
,
LPWSTR
pValueName
,
DWORD
Type
,
DWORD
WINAPI
SetPrinterDataExW
(
HANDLE
hPrinter
,
LP
C
WSTR
pKeyName
,
LP
C
WSTR
pValueName
,
DWORD
Type
,
LPBYTE
pData
,
DWORD
cbData
)
{
HKEY
hkeyPrinter
,
hkeySubkey
;
...
...
@@ -3261,8 +3261,8 @@ DWORD WINAPI SetPrinterDataW(HANDLE hPrinter, LPWSTR pValueName, DWORD Type,
/******************************************************************************
* GetPrinterDataExA (WINSPOOL.@)
*/
DWORD
WINAPI
GetPrinterDataExA
(
HANDLE
hPrinter
,
LPSTR
pKeyName
,
LPSTR
pValueName
,
LPDWORD
pType
,
DWORD
WINAPI
GetPrinterDataExA
(
HANDLE
hPrinter
,
LP
C
STR
pKeyName
,
LP
C
STR
pValueName
,
LPDWORD
pType
,
LPBYTE
pData
,
DWORD
nSize
,
LPDWORD
pcbNeeded
)
{
HKEY
hkeyPrinter
,
hkeySubkey
;
...
...
@@ -3292,8 +3292,8 @@ DWORD WINAPI GetPrinterDataExA(HANDLE hPrinter, LPSTR pKeyName,
/******************************************************************************
* GetPrinterDataExW (WINSPOOL.@)
*/
DWORD
WINAPI
GetPrinterDataExW
(
HANDLE
hPrinter
,
LPWSTR
pKeyName
,
LPWSTR
pValueName
,
LPDWORD
pType
,
DWORD
WINAPI
GetPrinterDataExW
(
HANDLE
hPrinter
,
LP
C
WSTR
pKeyName
,
LP
C
WSTR
pValueName
,
LPDWORD
pType
,
LPBYTE
pData
,
DWORD
nSize
,
LPDWORD
pcbNeeded
)
{
HKEY
hkeyPrinter
,
hkeySubkey
;
...
...
include/winspool.h
View file @
4d626b06
...
...
@@ -990,11 +990,11 @@ DWORD WINAPI GetPrinterDataW(HANDLE hPrinter, LPWSTR pValueName, LPDWORD pType,
LPBYTE
pData
,
DWORD
nSize
,
LPDWORD
pcbNeeded
);
#define GetPrinterData WINELIB_NAME_AW(GetPrinterData)
DWORD
WINAPI
GetPrinterDataExA
(
HANDLE
hPrinter
,
LPSTR
pKeyName
,
LPSTR
pValueName
,
LPDWORD
pType
,
DWORD
WINAPI
GetPrinterDataExA
(
HANDLE
hPrinter
,
LP
C
STR
pKeyName
,
LP
C
STR
pValueName
,
LPDWORD
pType
,
LPBYTE
pData
,
DWORD
nSize
,
LPDWORD
pcbNeeded
);
DWORD
WINAPI
GetPrinterDataExW
(
HANDLE
hPrinter
,
LPWSTR
pKeyName
,
LPWSTR
pValueName
,
LPDWORD
pType
,
DWORD
WINAPI
GetPrinterDataExW
(
HANDLE
hPrinter
,
LP
C
WSTR
pKeyName
,
LP
C
WSTR
pValueName
,
LPDWORD
pType
,
LPBYTE
pData
,
DWORD
nSize
,
LPDWORD
pcbNeeded
);
#define GetPrinterDataEx WINELIB_NAME_AW(GetPrinterDataEx)
...
...
@@ -1004,11 +1004,11 @@ DWORD WINAPI SetPrinterDataW(HANDLE hPrinter, LPWSTR pValueName, DWORD Type,
LPBYTE
pData
,
DWORD
cbData
);
#define SetPrinterData WINELIB_NAME_AW(SetPrinterData)
DWORD
WINAPI
SetPrinterDataExA
(
HANDLE
hPrinter
,
LPSTR
pKeyName
,
LPSTR
pValueName
,
DWORD
Type
,
DWORD
WINAPI
SetPrinterDataExA
(
HANDLE
hPrinter
,
LP
C
STR
pKeyName
,
LP
C
STR
pValueName
,
DWORD
Type
,
LPBYTE
pData
,
DWORD
cbData
);
DWORD
WINAPI
SetPrinterDataExW
(
HANDLE
hPrinter
,
LPWSTR
pKeyName
,
LPWSTR
pValueName
,
DWORD
Type
,
DWORD
WINAPI
SetPrinterDataExW
(
HANDLE
hPrinter
,
LP
C
WSTR
pKeyName
,
LP
C
WSTR
pValueName
,
DWORD
Type
,
LPBYTE
pData
,
DWORD
cbData
);
#define SetPrinterDataEx WINELIB_NAME_AW(SetPrinterDataEx)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment