Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
f6e1dbf7
Commit
f6e1dbf7
authored
Jun 22, 2007
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Jun 22, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntprint: Implement PSetupEnumMonitor.
parent
6d0e14d9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
1 deletion
+46
-1
ntprint.c
dlls/ntprint/ntprint.c
+45
-0
ntprint.spec
dlls/ntprint/ntprint.spec
+1
-1
No files found.
dlls/ntprint/ntprint.c
View file @
f6e1dbf7
...
@@ -120,3 +120,48 @@ VOID WINAPI PSetupDestroyMonitorInfo(HANDLE monitorinfo)
...
@@ -120,3 +120,48 @@ VOID WINAPI PSetupDestroyMonitorInfo(HANDLE monitorinfo)
HeapFree
(
GetProcessHeap
(),
0
,
mi
);
HeapFree
(
GetProcessHeap
(),
0
,
mi
);
}
}
}
}
/*****************************************************
* PSetupEnumMonitor [NTPRINT.@]
*
* Copy the selected Monitorname to a buffer
*
* PARAMS
* monitorinfo [I] HANDLE from PSetupCreateMonitorInfo
* index [I] Nr. of the Monitorname to copy
* buffer [I] Target, that receive the Monitorname
* psize [IO] PTR to a DWORD that hold the size of the buffer and receive
* the needed size, when the buffer is to small
*
* RETURNS
* Success: TRUE
* Failure: FALSE
*
* NOTES
* size is in Bytes on w2k and WCHAR on XP
*
*/
BOOL
WINAPI
PSetupEnumMonitor
(
HANDLE
monitorinfo
,
DWORD
index
,
LPWSTR
buffer
,
LPDWORD
psize
)
{
monitorinfo_t
*
mi
=
(
monitorinfo_t
*
)
monitorinfo
;
LPWSTR
nameW
;
DWORD
len
;
TRACE
(
"(%p, %u, %p, %p) => %d
\n
"
,
mi
,
index
,
buffer
,
psize
,
psize
?
*
psize
:
0
);
if
(
index
<
mi
->
installed
)
{
nameW
=
mi
->
mi2
[
index
].
pName
;
len
=
lstrlenW
(
nameW
)
+
1
;
if
(
len
<=
*
psize
)
{
memcpy
(
buffer
,
nameW
,
len
*
sizeof
(
WCHAR
));
TRACE
(
"#%u: %s
\n
"
,
index
,
debugstr_w
(
buffer
));
return
TRUE
;
}
*
psize
=
len
;
SetLastError
(
ERROR_INSUFFICIENT_BUFFER
);
return
FALSE
;
}
SetLastError
(
ERROR_NO_MORE_ITEMS
);
return
FALSE
;
}
dlls/ntprint/ntprint.spec
View file @
f6e1dbf7
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
@ stub PSetupDestroyPrinterDeviceInfoList
@ stub PSetupDestroyPrinterDeviceInfoList
@ stub PSetupDestroySelectedDriverInfo
@ stub PSetupDestroySelectedDriverInfo
@ stub PSetupDriverInfoFromName
@ stub PSetupDriverInfoFromName
@ st
ub PSetupEnumMonitor
@ st
dcall PSetupEnumMonitor(long long ptr ptr)
@ stub PSetupFreeDrvField
@ stub PSetupFreeDrvField
@ stub PSetupGetDriverInfForPrinter
@ stub PSetupGetDriverInfForPrinter
@ stub PSetupGetDriverInfo3
@ stub PSetupGetDriverInfo3
...
...
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