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
Releases
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
Johnny Cai
wine
Commits
b2b2c479
Commit
b2b2c479
authored
21 years ago
by
Michael McCormack
Committed by
Alexandre Julliard
21 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Move the mailslot stubs into the dlls/kernel directory.
parent
147888f4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dlls/kernel/kernel32.spec
+1
-1
1 addition, 1 deletion
dlls/kernel/kernel32.spec
dlls/kernel/sync.c
+92
-0
92 additions, 0 deletions
dlls/kernel/sync.c
win32/newfns.c
+0
-61
0 additions, 61 deletions
win32/newfns.c
with
93 additions
and
62 deletions
dlls/kernel/kernel32.spec
+
1
−
1
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)
...
...
This diff is collapsed.
Click to expand it.
dlls/kernel/sync.c
+
92
−
0
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__
/***********************************************************************
...
...
This diff is collapsed.
Click to expand it.
win32/newfns.c
+
0
−
61
View file @
b2b2c479
...
...
@@ -56,67 +56,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.@]
*
...
...
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