33 TRACE(
"%p %08x\n", pActCtx, pActCtx ? pActCtx->dwFlags : 0);
35 if (!pActCtx || pActCtx->cbSize !=
sizeof(*pActCtx))
41 actw.cbSize =
sizeof(actw);
42 actw.dwFlags = pActCtx->dwFlags;
43 if (pActCtx->lpSource)
52 if (actw.dwFlags & ACTCTX_FLAG_PROCESSOR_ARCHITECTURE_VALID)
53 actw.wProcessorArchitecture = pActCtx->wProcessorArchitecture;
54 if (actw.dwFlags & ACTCTX_FLAG_LANGID_VALID)
55 actw.wLangId = pActCtx->wLangId;
56 if (actw.dwFlags & ACTCTX_FLAG_ASSEMBLY_DIRECTORY_VALID)
60 if (!assdir)
goto done;
62 actw.lpAssemblyDirectory = assdir;
64 if (actw.dwFlags & ACTCTX_FLAG_RESOURCE_NAME_VALID)
66 if ((
ULONG_PTR)pActCtx->lpResourceName >> 16)
70 if (!resname)
goto done;
72 actw.lpResourceName = resname;
74 else actw.lpResourceName = (
LPCWSTR)pActCtx->lpResourceName;
76 if (actw.dwFlags & ACTCTX_FLAG_APPLICATION_NAME_VALID)
80 if (!appname)
goto done;
82 actw.lpApplicationName = appname;
84 if (actw.dwFlags & ACTCTX_FLAG_HMODULE_VALID)
85 actw.hModule = pActCtx->hModule;
107 TRACE(
"%p %08x\n", pActCtx, pActCtx ? pActCtx->dwFlags : 0);
217 if (!lpSearchStr || !pInfo)
293 pvBuff, cbBuff, pcbLen )))
#define DEBUG_CHANNEL(args)
#define ERROR_INVALID_PARAMETER
#define INVALID_HANDLE_VALUE
#define HeapFree(x, y, z)
#define MultiByteToWideChar
BOOL WINAPI ZombifyActCtx(HANDLE hActCtx)
VOID WINAPI ReleaseActCtx(IN HANDLE hActCtx)
BOOL WINAPI DeactivateActCtx(IN DWORD dwFlags, IN ULONG_PTR ulCookie)
VOID WINAPI AddRefActCtx(IN HANDLE hActCtx)
BOOL WINAPI QueryActCtxW(IN DWORD dwFlags, IN HANDLE hActCtx, IN PVOID pvSubInstance, IN ULONG ulInfoClass, IN PVOID pvBuffer, IN SIZE_T cbBuffer, IN OUT SIZE_T *pcbWrittenOrRequired OPTIONAL)
BOOL WINAPI GetCurrentActCtx(OUT PHANDLE phActCtx)
BOOL WINAPI ActivateActCtx(IN HANDLE hActCtx, OUT PULONG_PTR ulCookie)
BOOL WINAPI FindActCtxSectionStringW(DWORD dwFlags, const GUID *lpExtGuid, ULONG ulId, LPCWSTR lpSearchStr, PACTCTX_SECTION_KEYED_DATA pInfo)
HANDLE WINAPI CreateActCtxA(PCACTCTXA pActCtx)
BOOL WINAPI FindActCtxSectionStringA(DWORD dwFlags, const GUID *lpExtGuid, ULONG ulId, LPCSTR lpSearchStr, PACTCTX_SECTION_KEYED_DATA pInfo)
HANDLE WINAPI CreateActCtxW(PCACTCTXW pActCtx)
BOOL WINAPI FindActCtxSectionGuid(DWORD dwFlags, const GUID *lpExtGuid, ULONG ulId, const GUID *lpSearchGuid, PACTCTX_SECTION_KEYED_DATA pInfo)
NTSYSAPI NTSTATUS WINAPI RtlActivateActivationContext(DWORD, HANDLE, ULONG_PTR *)
NTSYSAPI NTSTATUS WINAPI RtlFindActivationContextSectionString(ULONG, const GUID *, ULONG, const UNICODE_STRING *, PVOID)
NTSYSAPI NTSTATUS WINAPI RtlZombifyActivationContext(HANDLE)
NTSYSAPI void WINAPI RtlAddRefActivationContext(HANDLE)
NTSYSAPI void WINAPI RtlDeactivateActivationContext(DWORD, ULONG_PTR)
NTSYSAPI void WINAPI RtlReleaseActivationContext(HANDLE)
NTSYSAPI ULONG WINAPI RtlNtStatusToDosError(NTSTATUS)
NTSYSAPI NTSTATUS WINAPI RtlCreateActivationContext(HANDLE *, const void *)
NTSYSAPI NTSTATUS WINAPI RtlGetActiveActivationContext(HANDLE *)
NTSYSAPI NTSTATUS WINAPI RtlQueryInformationActivationContext(ULONG, HANDLE, PVOID, ULONG, PVOID, SIZE_T, SIZE_T *)
static const GUID PACTCTX_SECTION_KEYED_DATA
NTSYSAPI NTSTATUS NTAPI RtlFindActivationContextSectionGuid(ULONG flags, const GUID *extguid, ULONG section_kind, const GUID *guid, void *ptr)
NTSYSAPI VOID NTAPI RtlInitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags