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
f0ee76dc
Commit
f0ee76dc
authored
Mar 09, 2004
by
Bobby Bingham
Committed by
Alexandre Julliard
Mar 09, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stub EnumDesktopsW for now.
Implement EnumDesktopsA in terms of EnumDesktopsW.
parent
fccd869b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
2 deletions
+54
-2
misc.c
dlls/user/misc.c
+52
-0
user32.spec
dlls/user/user32.spec
+2
-2
No files found.
dlls/user/misc.c
View file @
f0ee76dc
...
...
@@ -26,11 +26,39 @@
#include "wingdi.h"
#include "winuser.h"
#include "winerror.h"
#include "winnls.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
win
);
/* callback to allow EnumDesktopsA to use EnumDesktopsW */
typedef
struct
{
DESKTOPENUMPROCA
lpEnumFunc
;
LPARAM
lParam
;
}
ENUMDESKTOPS_LPARAM
;
/* EnumDesktopsA passes this callback function to EnumDesktopsW.
* It simply converts the string to ASCII and calls the callback
* function provided by the original caller
*/
static
BOOL
CALLBACK
EnumDesktopProcWtoA
(
LPWSTR
lpszDesktop
,
LPARAM
lParam
)
{
LPSTR
buffer
;
INT
len
;
BOOL
ret
;
ENUMDESKTOPS_LPARAM
*
data
=
(
ENUMDESKTOPS_LPARAM
*
)
lParam
;
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
lpszDesktop
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
if
(
!
(
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
)))
return
FALSE
;
WideCharToMultiByte
(
CP_ACP
,
0
,
lpszDesktop
,
-
1
,
buffer
,
len
,
NULL
,
NULL
);
ret
=
data
->
lpEnumFunc
(
buffer
,
data
->
lParam
);
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
return
ret
;
}
/**********************************************************************
* SetLastErrorEx [USER32.@] Sets the last-error code.
*
...
...
@@ -173,6 +201,30 @@ HANDLE WINAPI OpenDesktopA( LPCSTR lpszDesktop, DWORD dwFlags,
return
0
;
}
/******************************************************************************
* EnumDesktopsA [USER32.@]
*/
BOOL
WINAPI
EnumDesktopsA
(
HWINSTA
hwinsta
,
DESKTOPENUMPROCA
lpEnumFunc
,
LPARAM
lParam
)
{
ENUMDESKTOPS_LPARAM
caller_data
;
caller_data
.
lpEnumFunc
=
lpEnumFunc
;
caller_data
.
lParam
=
lParam
;
return
EnumDesktopsW
(
hwinsta
,
EnumDesktopProcWtoA
,
(
LPARAM
)
&
caller_data
);
}
/******************************************************************************
* EnumDesktopsW [USER32.@]
*/
BOOL
WINAPI
EnumDesktopsW
(
HWINSTA
hwinsta
,
DESKTOPENUMPROCW
lpEnumFunc
,
LPARAM
lParam
)
{
FIXME
(
"%p,%p,%lx): stub
\n
"
,
hwinsta
,
lpEnumFunc
,
lParam
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
}
/******************************************************************************
* SetUserObjectInformationA (USER32.@)
...
...
dlls/user/user32.spec
View file @
f0ee76dc
...
...
@@ -180,8 +180,8 @@
@ stub EndTask
@ stdcall EnumChildWindows(long ptr long)
@ stdcall EnumClipboardFormats(long)
@ st
ub EnumDesktopsA
@ st
ub EnumDesktopsW
@ st
dcall EnumDesktopsA(ptr ptr long)
@ st
dcall EnumDesktopsW(ptr ptr long)
@ stub EnumDisplayDeviceModesA
@ stub EnumDisplayDeviceModesW
@ stdcall EnumDisplayDevicesA(ptr long ptr long)
...
...
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