Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yoann Laissus
wine
Commits
85d30863
Commit
85d30863
authored
23 years ago
by
Michael Stefaniuc
Committed by
Alexandre Julliard
23 years ago
Browse files
Options
Downloads
Patches
Plain Diff
- added stubs for three console functions
- updated wincon.h
parent
035a7585
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
debugger/editline.c
+1
-0
1 addition, 0 deletions
debugger/editline.c
dlls/kernel/kernel32.spec
+3
-3
3 additions, 3 deletions
dlls/kernel/kernel32.spec
include/wincon.h
+50
-0
50 additions, 0 deletions
include/wincon.h
win32/console.c
+80
-0
80 additions, 0 deletions
win32/console.c
with
134 additions
and
3 deletions
debugger/editline.c
+
1
−
0
View file @
85d30863
...
...
@@ -30,6 +30,7 @@
#include
<string.h>
#include
"windef.h"
#include
"winbase.h"
#include
"wincon.h"
#include
"debugger.h"
...
...
This diff is collapsed.
Click to expand it.
dlls/kernel/kernel32.spec
+
3
−
3
View file @
85d30863
...
...
@@ -776,9 +776,9 @@ debug_channels (comm debugstr dll int resource stress thunk toolhelp win32)
@ stdcall WriteConsoleInputA(long ptr long ptr) WriteConsoleInputA
@ stdcall WriteConsoleInputW(long ptr long ptr) WriteConsoleInputW
@ stdcall WriteConsoleOutputA(long ptr long long ptr) WriteConsoleOutputA
@ st
ub
WriteConsoleOutputAttribute
@ st
ub
WriteConsoleOutputCharacterA
@ st
ub
WriteConsoleOutputCharacterW
@ st
dcall WriteConsoleOutputAttribute(long ptr long long ptr)
WriteConsoleOutputAttribute
@ st
dcall WriteConsoleOutputCharacterA(long ptr long long ptr)
WriteConsoleOutputCharacterA
@ st
dcall WriteConsoleOutputCharacterW(long ptr long long ptr)
WriteConsoleOutputCharacterW
@ stdcall WriteConsoleOutputW(long ptr long long ptr) WriteConsoleOutputW
@ stdcall WriteConsoleW(long ptr long ptr ptr) WriteConsoleW
@ stdcall WriteFile(long ptr long ptr ptr) WriteFile
...
...
This diff is collapsed.
Click to expand it.
include/wincon.h
+
50
−
0
View file @
85d30863
...
...
@@ -191,4 +191,54 @@ BOOL WINAPI GetConsoleScreenBufferInfo(HANDLE hConsoleOutput,
BOOL
WINAPI
SetConsoleScreenBufferSize
(
HANDLE
hConsoleOutput
,
COORD
dwSize
);
BOOL
WINAPI
AllocConsole
(
VOID
);
HANDLE
WINAPI
CreateConsoleScreenBuffer
(
DWORD
dwDesiredAccess
,
DWORD
dwShareMode
,
LPSECURITY_ATTRIBUTES
sa
,
DWORD
dwFlags
,
LPVOID
lpScreenBufferData
);
BOOL
WINAPI
FillConsoleOutputAttribute
(
HANDLE
hConsoleOutput
,
WORD
wAttribute
,
DWORD
nLength
,
COORD
dwCoord
,
LPDWORD
lpNumAttrsWritten
);
BOOL
WINAPI
FillConsoleOutputCharacterA
(
HANDLE
hConsoleOutput
,
BYTE
cCharacter
,
DWORD
nLength
,
COORD
dwCoord
,
LPDWORD
lpNumCharsWritten
);
BOOL
WINAPI
FillConsoleOutputCharacterW
(
HANDLE
hConsoleOutput
,
WCHAR
cCharacter
,
DWORD
nLength
,
COORD
dwCoord
,
LPDWORD
lpNumCharsWritten
);
#define FillConsoleOutputCharacter WINELIB_NAME_AW(FillConsoleOutputCharacter)
BOOL
WINAPI
FlushConsoleInputBuffer
(
HANDLE
handle
);
BOOL
WINAPI
FreeConsole
(
VOID
);
BOOL
WINAPI
GenerateConsoleCtrlEvent
(
DWORD
dwCtrlEvent
,
DWORD
dwProcessGroupID
);
UINT
WINAPI
GetConsoleCP
(
VOID
);
BOOL
WINAPI
GetConsoleCursorInfo
(
HANDLE
hcon
,
LPCONSOLE_CURSOR_INFO
cinfo
);
BOOL
WINAPI
GetConsoleMode
(
HANDLE
hcon
,
LPDWORD
mode
);
UINT
WINAPI
GetConsoleOutputCP
(
VOID
);
DWORD
WINAPI
GetConsoleTitleA
(
LPSTR
title
,
DWORD
size
);
DWORD
WINAPI
GetConsoleTitleW
(
LPWSTR
title
,
DWORD
size
);
#define GetConsoleTitle WINELIB_NAME_AW(GetConsoleTitle)
BOOL
WINAPI
GetNumberOfConsoleInputEvents
(
HANDLE
hcon
,
LPDWORD
nrofevents
);
BOOL
WINAPI
GetNumberOfConsoleMouseButtons
(
LPDWORD
nrofbuttons
);
BOOL
WINAPI
ReadConsoleOutputAttribute
(
HANDLE
hConsoleOutput
,
LPWORD
lpAttribute
,
DWORD
nLength
,
COORD
dwReadCoord
,
LPDWORD
lpNumberOfAttrsRead
);
BOOL
WINAPI
ScrollConsoleScreenBufferA
(
HANDLE
hConsoleOutput
,
LPSMALL_RECT
lpScrollRect
,
LPSMALL_RECT
lpClipRect
,
COORD
dwDestOrigin
,
LPCHAR_INFO
lpFill
);
BOOL
WINAPI
ScrollConsoleScreenBufferW
(
HANDLE
hConsoleOutput
,
LPSMALL_RECT
lpScrollRect
,
LPSMALL_RECT
lpClipRect
,
COORD
dwDestOrigin
,
LPCHAR_INFO
lpFill
);
#define ScrollConsoleScreenBuffer WINELIB_NAME_AW(ScrollConsoleScreenBuffer)
BOOL
WINAPI
SetConsoleActiveScreenBuffer
(
HANDLE
hConsoleOutput
);
BOOL
WINAPI
SetConsoleCP
(
UINT
cp
);
BOOL
WINAPI
SetConsoleCtrlHandler
(
HANDLER_ROUTINE
*
func
,
BOOL
add
);
BOOL
WINAPI
SetConsoleCursorInfo
(
HANDLE
hcon
,
LPCONSOLE_CURSOR_INFO
cinfo
);
BOOL
WINAPI
SetConsoleMode
(
HANDLE
hcon
,
DWORD
mode
);
BOOL
WINAPI
SetConsoleOutputCP
(
UINT
cp
);
BOOL
WINAPI
SetConsoleTextAttribute
(
HANDLE
hConsoleOutput
,
WORD
wAttr
);
BOOL
WINAPI
SetConsoleTitleA
(
LPCSTR
title
);
BOOL
WINAPI
SetConsoleTitleW
(
LPCWSTR
title
);
#define SetConsoleTitle WINELIB_NAME_AW(SetConsoleTitle)
BOOL
WINAPI
SetConsoleWindowInfo
(
HANDLE
hcon
,
BOOL
bAbsolute
,
LPSMALL_RECT
window
);
BOOL
WINAPI
WriteConsoleOutputAttribute
(
HANDLE
hConsoleOutput
,
CONST
WORD
*
lpAttribute
,
DWORD
nLength
,
COORD
dwCoord
,
LPDWORD
lpNumAttrsWritten
);
BOOL
WINAPI
WriteConsoleOutputCharacterA
(
HANDLE
hConsoleOutput
,
LPCSTR
lpCharacter
,
DWORD
nLength
,
COORD
dwCoord
,
LPDWORD
lpNumCharsWritten
);
BOOL
WINAPI
WriteConsoleOutputCharacterW
(
HANDLE
hConsoleOutput
,
LPCWSTR
lpCharacter
,
DWORD
nLength
,
COORD
dwCoord
,
LPDWORD
lpNumCharsWritten
);
#define WriteConsoleOutputCharacter WINELIB_NAME_AW(WriteConsoleOutputCharacter)
#endif
/* __WINE_WINCON_H */
This diff is collapsed.
Click to expand it.
win32/console.c
+
80
−
0
View file @
85d30863
...
...
@@ -1701,3 +1701,83 @@ BOOL WINAPI SetConsoleInputExeNameA( LPCSTR name )
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
TRUE
;
}
/******************************************************************************
* WriteConsoleOutputAttribute [KERNEL32.@] Sets attributes for some cells in
* the console screen buffer
*
* PARAMS
* hConsoleOutput [I] Handle to screen buffer
* lpAttribute [I] Pointer to buffer with write attributes
* nLength [I] Number of cells to write to
* dwCoord [I] Coords of first cell
* lpNumAttrsWritten [O] Pointer to number of cells written
*
* RETURNS
* Success: TRUE
* Failure: FALSE
*
* BUGS
* Unimplemented
*/
BOOL
WINAPI
WriteConsoleOutputAttribute
(
HANDLE
hConsoleOutput
,
CONST
WORD
*
lpAttribute
,
DWORD
nLength
,
COORD
dwCoord
,
LPDWORD
lpNumAttrsWritten
)
{
FIXME
(
"(%d,%p,%ld,%dx%d,%p): stub
\n
"
,
hConsoleOutput
,
lpAttribute
,
nLength
,
dwCoord
.
X
,
dwCoord
.
Y
,
lpNumAttrsWritten
);
*
lpNumAttrsWritten
=
nLength
;
return
TRUE
;
}
/******************************************************************************
* WriteConsoleOutputCharacterA [KERNEL32.@] Copies character to consecutive
* cells in the console screen buffer
*
* PARAMS
* hConsoleOutput [I] Handle to screen buffer
* lpCharacter [I] Pointer to buffer with chars to write
* nLength [I] Number of cells to write to
* dwCoord [I] Coords of first cell
* lpNumCharsWritten [O] Pointer to number of cells written
*
* BUGS
* Unimplemented
*/
BOOL
WINAPI
WriteConsoleOutputCharacterA
(
HANDLE
hConsoleOutput
,
LPCSTR
lpCharacter
,
DWORD
nLength
,
COORD
dwCoord
,
LPDWORD
lpNumCharsWritten
)
{
FIXME
(
"(%d,%p,%ld,%dx%d,%p): stub
\n
"
,
hConsoleOutput
,
lpCharacter
,
nLength
,
dwCoord
.
X
,
dwCoord
.
Y
,
lpNumCharsWritten
);
*
lpNumCharsWritten
=
nLength
;
return
TRUE
;
}
/******************************************************************************
* WriteConsoleOutputCharacterW [KERNEL32.@] Copies character to consecutive
* cells in the console screen buffer
*
* PARAMS
* hConsoleOutput [I] Handle to screen buffer
* lpCharacter [I] Pointer to buffer with chars to write
* nLength [I] Number of cells to write to
* dwCoord [I] Coords of first cell
* lpNumCharsWritten [O] Pointer to number of cells written
*
* RETURNS
* Success: TRUE
* Failure: FALSE
*
* BUGS
* Unimplemented
*/
BOOL
WINAPI
WriteConsoleOutputCharacterW
(
HANDLE
hConsoleOutput
,
LPCWSTR
lpCharacter
,
DWORD
nLength
,
COORD
dwCoord
,
LPDWORD
lpNumCharsWritten
)
{
FIXME
(
"(%d,%p,%ld,%dx%d,%p): stub
\n
"
,
hConsoleOutput
,
lpCharacter
,
nLength
,
dwCoord
.
X
,
dwCoord
.
Y
,
lpNumCharsWritten
);
*
lpNumCharsWritten
=
nLength
;
return
TRUE
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment