From 32376a52273b1c846d74339aa05781215a13f628 Mon Sep 17 00:00:00 2001 From: Jon Griffiths Date: Fri, 30 Jan 2004 22:57:21 +0000 Subject: [PATCH] Add stubs for the Activation Context API (XP+). --- dlls/kernel/Makefile.in | 1 + dlls/kernel/actctx.c | 171 ++++++++++++++++++++++++++++++++++++++ dlls/kernel/kernel32.spec | 12 +++ 3 files changed, 184 insertions(+) create mode 100644 dlls/kernel/actctx.c diff --git a/dlls/kernel/Makefile.in b/dlls/kernel/Makefile.in index 081a1245671..b6fec8a4358 100644 --- a/dlls/kernel/Makefile.in +++ b/dlls/kernel/Makefile.in @@ -25,6 +25,7 @@ C_SRCS = \ $(TOPOBJDIR)/files/smb.c \ $(TOPOBJDIR)/misc/options.c \ $(TOPOBJDIR)/misc/registry.c \ + actctx.c \ atom.c \ change.c \ comm.c \ diff --git a/dlls/kernel/actctx.c b/dlls/kernel/actctx.c new file mode 100644 index 00000000000..82c9cf95205 --- /dev/null +++ b/dlls/kernel/actctx.c @@ -0,0 +1,171 @@ +/* + * Activation contexts + * + * Copyright 2004 Jon Griffiths + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#include "config.h" +#include "wine/port.h" + +#include +#include "ntstatus.h" +#include "windef.h" +#include "winbase.h" +#include "winerror.h" +#include "winnls.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(actctx); + + +/*********************************************************************** + * CreateActCtxA (KERNEL32.@) + * + * Create an activation context. + */ +HANDLE WINAPI CreateActCtxA(PVOID /*PACTCTXA*/ pActCtx) +{ + FIXME("stub!\n"); + return INVALID_HANDLE_VALUE; +} + +/*********************************************************************** + * CreateActCtxW (KERNEL32.@) + * + * Create an activation context. + */ +HANDLE WINAPI CreateActCtxW(PVOID /*PACTCTXW*/ pActCtx) +{ + FIXME("stub!\n"); + return INVALID_HANDLE_VALUE; +} + +/*********************************************************************** + * ActivateActCtx (KERNEL32.@) + * + * Activate an activation context. + */ +BOOL WINAPI ActivateActCtx(PVOID /*HACTCTX*/ hActCtx, ULONG_PTR ulCookie) +{ + FIXME("stub!\n"); + return FALSE; +} + +/*********************************************************************** + * DeactivateActCtx (KERNEL32.@) + * + * Deactivate an activation context. + */ +BOOL WINAPI DeactivateActCtx(DWORD dwFlags, ULONG_PTR ulCookie) +{ + FIXME("stub!\n"); + return FALSE; +} + +/*********************************************************************** + * GetCurrentActCtx (KERNEL32.@) + * + * Get the current activation context. + */ +BOOL WINAPI GetCurrentActCtx(HANDLE* phActCtx) +{ + FIXME("stub!\n"); + return FALSE; +} + +/*********************************************************************** + * AddRefActCtx (KERNEL32.@) + * + * Add a reference to an activation context. + */ +void WINAPI AddRefActCtx(HANDLE hActCtx) +{ + FIXME("stub!\n"); +} + +/*********************************************************************** + * ReleaseActCtx (KERNEL32.@) + * + * Release a reference to an activation context. + */ +void WINAPI ReleaseActCtx(HANDLE hActCtx) +{ + FIXME("stub!\n"); +} + +/*********************************************************************** + * ZombifyActCtx (KERNEL32.@) + * + * Release a reference to an activation context. + */ +BOOL WINAPI ZombifyActCtx(HANDLE hActCtx) +{ + FIXME("stub!\n"); + return FALSE; +} + +/*********************************************************************** + * FindActCtxSectionStringA (KERNEL32.@) + * + * Find information about a GUID in an activation context. + */ +BOOL WINAPI FindActCtxSectionStringA(DWORD dwFlags, const GUID* lpExtGuid, + ULONG ulId, LPCSTR lpSearchStr, + PVOID /*PACTCTX_SECTION_KEYED_DATA*/ pInfo) +{ + FIXME("stub!\n"); + return FALSE; +} + +/*********************************************************************** + * FindActCtxSectionStringW (KERNEL32.@) + * + * Find information about a GUID in an activation context. + */ +BOOL WINAPI FindActCtxSectionStringW(DWORD dwFlags, const GUID* lpExtGuid, + ULONG ulId, LPCWSTR lpSearchStr, + PVOID /*PACTCTX_SECTION_KEYED_DATA*/ pInfo) +{ + FIXME("stub!\n"); + return FALSE; +} + +/*********************************************************************** + * FindActCtxSectionGuid (KERNEL32.@) + * + * Find information about a GUID in an activation context. + */ +BOOL WINAPI FindActCtxSectionGuid(DWORD dwFlags, const GUID* lpExtGuid, + ULONG ulId, const GUID* lpSearchGuid, + PVOID /*PACTCTX_SECTION_KEYED_DATA*/ pInfo) +{ + FIXME("stub!\n"); + return FALSE; +} + +/*********************************************************************** + * QueryActCtxW (KERNEL32.@) + * + * Get information about an activation context. + */ +BOOL WINAPI QueryActCtxW(DWORD dwFlags, HANDLE hActCtx, PVOID pvSubInst, + ULONG ulClass, PVOID pvBuff, SIZE_T cbBuff, + SIZE_T *pcbLen) +{ + FIXME("stub!\n"); + return FALSE; +} diff --git a/dlls/kernel/kernel32.spec b/dlls/kernel/kernel32.spec index 59a347fbdfc..1b2e8b80288 100644 --- a/dlls/kernel/kernel32.spec +++ b/dlls/kernel/kernel32.spec @@ -1068,9 +1068,21 @@ @ stdcall VerifyVersionInfoW(long long long long) # XP extensions +@ stdcall ActivateActCtx(ptr ptr) +@ stdcall AddRefActCtx(ptr) +@ stdcall CreateActCtxA(ptr) +@ stdcall CreateActCtxW(ptr) +@ stdcall DeactivateActCtx(long ptr) @ stdcall DebugActiveProcessStop(long) @ stdcall DebugBreakProcess(long) @ stdcall DebugSetProcessKillOnExit(long) +@ stdcall FindActCtxSectionGuid(long ptr long ptr ptr) +@ stdcall FindActCtxSectionStringA(long ptr long str ptr) +@ stdcall FindActCtxSectionStringW(long ptr long wstr ptr) +@ stdcall GetCurrentActCtx() +@ stdcall QueryActCtxW(long ptr ptr long ptr long ptr) +@ stdcall ReleaseActCtx(ptr) +@ stdcall ZombifyActCtx(ptr) ################################################################ # Wine extensions: Win16 functions that are needed by other dlls