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
bb84eaa9
Commit
bb84eaa9
authored
Mar 07, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Mar 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: Improve the activation context stubs.
parent
78a43b3d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
14 deletions
+48
-14
actctx.c
dlls/kernel/actctx.c
+48
-14
No files found.
dlls/kernel/actctx.c
View file @
bb84eaa9
...
@@ -31,6 +31,19 @@
...
@@ -31,6 +31,19 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
actctx
);
WINE_DEFAULT_DEBUG_CHANNEL
(
actctx
);
#define ACTCTX_FLAGS_ALL (\
ACTCTX_FLAG_PROCESSOR_ARCHITECTURE_VALID |\
ACTCTX_FLAG_LANGID_VALID |\
ACTCTX_FLAG_ASSEMBLY_DIRECTORY_VALID |\
ACTCTX_FLAG_RESOURCE_NAME_VALID |\
ACTCTX_FLAG_SET_PROCESS_DEFAULT |\
ACTCTX_FLAG_APPLICATION_NAME_VALID |\
ACTCTX_FLAG_SOURCE_IS_ASSEMBLYREF |\
ACTCTX_FLAG_HMODULE_VALID )
#define ACTCTX_FAKE_HANDLE ((HANDLE) 0xf00baa)
#define ACTCTX_FAKE_COOKIE ((ULONG_PTR) 0xf00bad)
/***********************************************************************
/***********************************************************************
* CreateActCtxA (KERNEL32.@)
* CreateActCtxA (KERNEL32.@)
*
*
...
@@ -38,8 +51,15 @@ WINE_DEFAULT_DEBUG_CHANNEL(actctx);
...
@@ -38,8 +51,15 @@ WINE_DEFAULT_DEBUG_CHANNEL(actctx);
*/
*/
HANDLE
WINAPI
CreateActCtxA
(
PCACTCTXA
pActCtx
)
HANDLE
WINAPI
CreateActCtxA
(
PCACTCTXA
pActCtx
)
{
{
FIXME
(
"stub!
\n
"
);
FIXME
(
"%p %08lx
\n
"
,
pActCtx
,
pActCtx
?
pActCtx
->
dwFlags
:
0
);
return
INVALID_HANDLE_VALUE
;
if
(
!
pActCtx
)
return
INVALID_HANDLE_VALUE
;
if
(
pActCtx
->
cbSize
!=
sizeof
*
pActCtx
)
return
INVALID_HANDLE_VALUE
;
if
(
pActCtx
->
dwFlags
&
~
ACTCTX_FLAGS_ALL
)
return
INVALID_HANDLE_VALUE
;
return
ACTCTX_FAKE_HANDLE
;
}
}
/***********************************************************************
/***********************************************************************
...
@@ -49,8 +69,15 @@ HANDLE WINAPI CreateActCtxA(PCACTCTXA pActCtx)
...
@@ -49,8 +69,15 @@ HANDLE WINAPI CreateActCtxA(PCACTCTXA pActCtx)
*/
*/
HANDLE
WINAPI
CreateActCtxW
(
PCACTCTXW
pActCtx
)
HANDLE
WINAPI
CreateActCtxW
(
PCACTCTXW
pActCtx
)
{
{
FIXME
(
"stub!
\n
"
);
FIXME
(
"%p %08lx
\n
"
,
pActCtx
,
pActCtx
?
pActCtx
->
dwFlags
:
0
);
return
INVALID_HANDLE_VALUE
;
if
(
!
pActCtx
)
return
INVALID_HANDLE_VALUE
;
if
(
pActCtx
->
cbSize
!=
sizeof
*
pActCtx
)
return
INVALID_HANDLE_VALUE
;
if
(
pActCtx
->
dwFlags
&
~
ACTCTX_FLAGS_ALL
)
return
INVALID_HANDLE_VALUE
;
return
ACTCTX_FAKE_HANDLE
;
}
}
/***********************************************************************
/***********************************************************************
...
@@ -60,8 +87,10 @@ HANDLE WINAPI CreateActCtxW(PCACTCTXW pActCtx)
...
@@ -60,8 +87,10 @@ HANDLE WINAPI CreateActCtxW(PCACTCTXW pActCtx)
*/
*/
BOOL
WINAPI
ActivateActCtx
(
HANDLE
hActCtx
,
ULONG_PTR
*
ulCookie
)
BOOL
WINAPI
ActivateActCtx
(
HANDLE
hActCtx
,
ULONG_PTR
*
ulCookie
)
{
{
FIXME
(
"stub!
\n
"
);
FIXME
(
"%p %p
\n
"
,
hActCtx
,
ulCookie
);
return
FALSE
;
if
(
ulCookie
)
*
ulCookie
=
ACTCTX_FAKE_COOKIE
;
return
TRUE
;
}
}
/***********************************************************************
/***********************************************************************
...
@@ -71,8 +100,10 @@ BOOL WINAPI ActivateActCtx(HANDLE hActCtx, ULONG_PTR *ulCookie)
...
@@ -71,8 +100,10 @@ BOOL WINAPI ActivateActCtx(HANDLE hActCtx, ULONG_PTR *ulCookie)
*/
*/
BOOL
WINAPI
DeactivateActCtx
(
DWORD
dwFlags
,
ULONG_PTR
ulCookie
)
BOOL
WINAPI
DeactivateActCtx
(
DWORD
dwFlags
,
ULONG_PTR
ulCookie
)
{
{
FIXME
(
"stub!
\n
"
);
FIXME
(
"%08lx %08lx
\n
"
,
dwFlags
,
ulCookie
);
return
FALSE
;
if
(
ulCookie
!=
ACTCTX_FAKE_COOKIE
)
return
FALSE
;
return
TRUE
;
}
}
/***********************************************************************
/***********************************************************************
...
@@ -82,8 +113,9 @@ BOOL WINAPI DeactivateActCtx(DWORD dwFlags, ULONG_PTR ulCookie)
...
@@ -82,8 +113,9 @@ BOOL WINAPI DeactivateActCtx(DWORD dwFlags, ULONG_PTR ulCookie)
*/
*/
BOOL
WINAPI
GetCurrentActCtx
(
HANDLE
*
phActCtx
)
BOOL
WINAPI
GetCurrentActCtx
(
HANDLE
*
phActCtx
)
{
{
FIXME
(
"stub!
\n
"
);
FIXME
(
"%p
\n
"
,
phActCtx
);
return
FALSE
;
*
phActCtx
=
ACTCTX_FAKE_HANDLE
;
return
TRUE
;
}
}
/***********************************************************************
/***********************************************************************
...
@@ -93,7 +125,7 @@ BOOL WINAPI GetCurrentActCtx(HANDLE* phActCtx)
...
@@ -93,7 +125,7 @@ BOOL WINAPI GetCurrentActCtx(HANDLE* phActCtx)
*/
*/
void
WINAPI
AddRefActCtx
(
HANDLE
hActCtx
)
void
WINAPI
AddRefActCtx
(
HANDLE
hActCtx
)
{
{
FIXME
(
"
stub!
\n
"
);
FIXME
(
"
%p
\n
"
,
hActCtx
);
}
}
/***********************************************************************
/***********************************************************************
...
@@ -103,7 +135,7 @@ void WINAPI AddRefActCtx(HANDLE hActCtx)
...
@@ -103,7 +135,7 @@ void WINAPI AddRefActCtx(HANDLE hActCtx)
*/
*/
void
WINAPI
ReleaseActCtx
(
HANDLE
hActCtx
)
void
WINAPI
ReleaseActCtx
(
HANDLE
hActCtx
)
{
{
FIXME
(
"
stub!
\n
"
);
FIXME
(
"
%p
\n
"
,
hActCtx
);
}
}
/***********************************************************************
/***********************************************************************
...
@@ -113,8 +145,10 @@ void WINAPI ReleaseActCtx(HANDLE hActCtx)
...
@@ -113,8 +145,10 @@ void WINAPI ReleaseActCtx(HANDLE hActCtx)
*/
*/
BOOL
WINAPI
ZombifyActCtx
(
HANDLE
hActCtx
)
BOOL
WINAPI
ZombifyActCtx
(
HANDLE
hActCtx
)
{
{
FIXME
(
"stub!
\n
"
);
FIXME
(
"%p
\n
"
,
hActCtx
);
return
FALSE
;
if
(
hActCtx
!=
ACTCTX_FAKE_HANDLE
)
return
FALSE
;
return
TRUE
;
}
}
/***********************************************************************
/***********************************************************************
...
...
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