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
b2b2c479
Commit
b2b2c479
authored
Sep 15, 2003
by
Mike McCormack
Committed by
Alexandre Julliard
Sep 15, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move the mailslot stubs into the dlls/kernel directory.
parent
147888f4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
93 additions
and
62 deletions
+93
-62
kernel32.spec
dlls/kernel/kernel32.spec
+1
-1
sync.c
dlls/kernel/sync.c
+92
-0
newfns.c
win32/newfns.c
+0
-61
No files found.
dlls/kernel/kernel32.spec
View file @
b2b2c479
...
...
@@ -772,7 +772,7 @@
@ stdcall SetLocalTime(ptr)
@ stdcall SetLocaleInfoA(long long str)
@ stdcall SetLocaleInfoW(long long wstr)
@ st
ub SetMailslotInfo
@ st
dcall SetMailslotInfo(long long)
@ stub SetMessageWaitingIndicator
@ stdcall SetNamedPipeHandleState(long ptr ptr ptr)
@ stdcall SetPriorityClass(long long)
...
...
dlls/kernel/sync.c
View file @
b2b2c479
...
...
@@ -1178,6 +1178,98 @@ BOOL WINAPI CreatePipe( PHANDLE hReadPipe, PHANDLE hWritePipe,
}
/******************************************************************************
* CreateMailslotA [KERNEL32.@]
*/
HANDLE
WINAPI
CreateMailslotA
(
LPCSTR
lpName
,
DWORD
nMaxMessageSize
,
DWORD
lReadTimeout
,
LPSECURITY_ATTRIBUTES
sa
)
{
DWORD
len
;
HANDLE
handle
;
LPWSTR
name
=
NULL
;
TRACE
(
"%s %ld %ld %p
\n
"
,
debugstr_a
(
lpName
),
nMaxMessageSize
,
lReadTimeout
,
sa
);
if
(
lpName
)
{
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
lpName
,
-
1
,
NULL
,
0
);
name
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
)
);
MultiByteToWideChar
(
CP_ACP
,
0
,
lpName
,
-
1
,
name
,
len
);
}
handle
=
CreateMailslotW
(
name
,
nMaxMessageSize
,
lReadTimeout
,
sa
);
if
(
name
)
HeapFree
(
GetProcessHeap
(),
0
,
name
);
return
handle
;
}
/******************************************************************************
* CreateMailslotW [KERNEL32.@] Creates a mailslot with specified name
*
* PARAMS
* lpName [I] Pointer to string for mailslot name
* nMaxMessageSize [I] Maximum message size
* lReadTimeout [I] Milliseconds before read time-out
* sa [I] Pointer to security structure
*
* RETURNS
* Success: Handle to mailslot
* Failure: INVALID_HANDLE_VALUE
*/
HANDLE
WINAPI
CreateMailslotW
(
LPCWSTR
lpName
,
DWORD
nMaxMessageSize
,
DWORD
lReadTimeout
,
LPSECURITY_ATTRIBUTES
sa
)
{
FIXME
(
"(%s,%ld,%ld,%p): stub
\n
"
,
debugstr_w
(
lpName
),
nMaxMessageSize
,
lReadTimeout
,
sa
);
return
(
HANDLE
)
1
;
}
/******************************************************************************
* GetMailslotInfo [KERNEL32.@] Retrieves info about specified mailslot
*
* PARAMS
* hMailslot [I] Mailslot handle
* lpMaxMessageSize [O] Address of maximum message size
* lpNextSize [O] Address of size of next message
* lpMessageCount [O] Address of number of messages
* lpReadTimeout [O] Address of read time-out
*
* RETURNS
* Success: TRUE
* Failure: FALSE
*/
BOOL
WINAPI
GetMailslotInfo
(
HANDLE
hMailslot
,
LPDWORD
lpMaxMessageSize
,
LPDWORD
lpNextSize
,
LPDWORD
lpMessageCount
,
LPDWORD
lpReadTimeout
)
{
FIXME
(
"(%p): stub
\n
"
,
hMailslot
);
if
(
lpMaxMessageSize
)
*
lpMaxMessageSize
=
(
DWORD
)
NULL
;
if
(
lpNextSize
)
*
lpNextSize
=
(
DWORD
)
NULL
;
if
(
lpMessageCount
)
*
lpMessageCount
=
(
DWORD
)
NULL
;
if
(
lpReadTimeout
)
*
lpReadTimeout
=
(
DWORD
)
NULL
;
return
TRUE
;
}
/******************************************************************************
* SetMailslotInfo [KERNEL32.@] Sets the read timeout of a specified mailslot
*
* RETURNS
* Success: TRUE
* Failure: FALSE
*/
BOOL
WINAPI
SetMailslotInfo
(
HANDLE
hMailslot
,
DWORD
dwReadTimeout
)
{
FIXME
(
"%p %ld: stub
\n
"
,
hMailslot
,
dwReadTimeout
);
return
TRUE
;
}
#ifdef __i386__
/***********************************************************************
...
...
win32/newfns.c
View file @
b2b2c479
...
...
@@ -57,67 +57,6 @@ BOOL WINAPI FlushInstructionCache(HANDLE hProcess, LPCVOID lpBaseAddress, SIZE_T
/******************************************************************************
* CreateMailslotA [KERNEL32.@]
*/
HANDLE
WINAPI
CreateMailslotA
(
LPCSTR
lpName
,
DWORD
nMaxMessageSize
,
DWORD
lReadTimeout
,
LPSECURITY_ATTRIBUTES
sa
)
{
FIXME
(
"(%s,%ld,%ld,%p): stub
\n
"
,
debugstr_a
(
lpName
),
nMaxMessageSize
,
lReadTimeout
,
sa
);
return
(
HANDLE
)
1
;
}
/******************************************************************************
* CreateMailslotW [KERNEL32.@] Creates a mailslot with specified name
*
* PARAMS
* lpName [I] Pointer to string for mailslot name
* nMaxMessageSize [I] Maximum message size
* lReadTimeout [I] Milliseconds before read time-out
* sa [I] Pointer to security structure
*
* RETURNS
* Success: Handle to mailslot
* Failure: INVALID_HANDLE_VALUE
*/
HANDLE
WINAPI
CreateMailslotW
(
LPCWSTR
lpName
,
DWORD
nMaxMessageSize
,
DWORD
lReadTimeout
,
LPSECURITY_ATTRIBUTES
sa
)
{
FIXME
(
"(%s,%ld,%ld,%p): stub
\n
"
,
debugstr_w
(
lpName
),
nMaxMessageSize
,
lReadTimeout
,
sa
);
return
(
HANDLE
)
1
;
}
/******************************************************************************
* GetMailslotInfo [KERNEL32.@] Retrieves info about specified mailslot
*
* PARAMS
* hMailslot [I] Mailslot handle
* lpMaxMessageSize [O] Address of maximum message size
* lpNextSize [O] Address of size of next message
* lpMessageCount [O] Address of number of messages
* lpReadTimeout [O] Address of read time-out
*
* RETURNS
* Success: TRUE
* Failure: FALSE
*/
BOOL
WINAPI
GetMailslotInfo
(
HANDLE
hMailslot
,
LPDWORD
lpMaxMessageSize
,
LPDWORD
lpNextSize
,
LPDWORD
lpMessageCount
,
LPDWORD
lpReadTimeout
)
{
FIXME
(
"(%p): stub
\n
"
,
hMailslot
);
if
(
lpMaxMessageSize
)
*
lpMaxMessageSize
=
(
DWORD
)
NULL
;
if
(
lpNextSize
)
*
lpNextSize
=
(
DWORD
)
NULL
;
if
(
lpMessageCount
)
*
lpMessageCount
=
(
DWORD
)
NULL
;
if
(
lpReadTimeout
)
*
lpReadTimeout
=
(
DWORD
)
NULL
;
return
TRUE
;
}
/******************************************************************************
* GetCompressedFileSizeA [KERNEL32.@]
*
* NOTES
...
...
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