Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "ACTCTX" in [All]

Constants

.

        public const int ERROR_SXS_CANT_GEN_ACTCTX = 14001;

.

        public const int ERROR_SXS_INVALID_ACTCTXDATA_FORMAT = 14002;

Structures

.
Summary
The ACTCTX structure is used by the CreateActCtx function to create the activation context.
.

private struct ACTCTX

.

Private Structure ACTCTX

.
Documentation
[ACTCTX] on MSDN

kernel32

.
Summary
The ActivateActCtx function activates the specified activation context. It does this by pushing the specified activation context to the top of the activation stack. The specified activation context is thus associated with the current thread and any appropriate side-by-side API functions.
.

private static extern bool ActivateActCtx(IntPtr hActCtx, out IntPtr lpCookie);

.

Private Declare Function ActivateActCtx Lib "Kernel32" (ByVal hActCtx As IntPtr, _

.

    private struct ACTCTX

.

    private const uint ACTCTX_FLAG_PROCESSOR_ARCHITECTURE_VALID = 0x001;

.

    private const uint ACTCTX_FLAG_LANGID_VALID = 0x002;

.

    private const uint ACTCTX_FLAG_ASSEMBLY_DIRECTORY_VALID = 0x004;

.

    private const uint ACTCTX_FLAG_RESOURCE_NAME_VALID = 0x008;

.

    private const uint ACTCTX_FLAG_SET_PROCESS_DEFAULT = 0x010;

.

    private const uint ACTCTX_FLAG_APPLICATION_NAME_VALID = 0x020;

.

    private const uint ACTCTX_FLAG_HMODULE_VALID = 0x080;

.

    actCtx = new ACTCTX();

.

    actCtx.cbSize = Marshal.SizeOf(typeof(ACTCTX));

.

    actCtx.dwFlags = ACTCTX_FLAG_RESOURCE_NAME_VALID;

.

    actCtx.lpSource = rgchFullModulePath;

.

    actCtx.lpResourceName = ISOLATIONAWARE_MANIFEST_RESOURCE_ID;

.

    hActCtx = CreateActCtx(ref actCtx);

.

    contextCreationSucceeded = (hActCtx != new IntPtr(-1));

.

        actCtx.lpResourceName = ISOLATIONAWARE_NOSTATICIMPORT_MANIFEST_RESOURCE_ID;

.

        hActCtx = CreateActCtx(ref actCtx);

.

        contextCreationSucceeded = (hActCtx != new IntPtr(-1));

.

        actCtx.lpResourceName = CREATEPROCESS_MANIFEST_RESOURCE_ID;

.

        hActCtx = CreateActCtx(ref actCtx);

.

        contextCreationSucceeded = (hActCtx != new IntPtr(-1));

.
Documentation
[ActivateActCtx] on MSDN
.

private static extern bool ActivateActCtx(IntPtr hActCtx, out IntPtr lpCookie);

.

Declare Function ActiveActCtx Lib "Kernel32.dll" (TODO) As TODO

.
Documentation
[ActiveActCtx] on MSDN
.

static extern bool AddRefActCtxWorker(IntPtr ctx, out IntPtr worker);

.
Summary
The CreateActCtx function creates an activation context.
.

private static extern IntPtr CreateActCtxW(ref ACTCTX pActCtx);

.

private static extern IntPtr CreateActCtxA(ref ACTCTX pActCtx);

.

Declare Function CreateActCtxW Lib "Kernel32.dll" (TODO) As TODO

.
Documentation
[CreateActCtxW] on MSDN
.
Summary
The DeactivateActCtx function deactivates the activation context corresponding to the specified cookie.
.

private static extern bool DeactivateActCtx(int dwFlags, IntPtr lpCookie);

.

Declare Function DeactivateActCtx Lib "Kernel32.dll" (TODO) As TODO

.
Documentation
[DeactivateActCtx] on MSDN
.
Summary
The GetCurrentActCtx function returns the handle to the active activation context of the calling thread.
.

private static extern bool GetCurrentActCtx(ref ACTCTX pActCtx);

.

Declare Function GetCurrentActCtx Lib "Kernel32.dll" (TODO) As TODO

.
Documentation
[GetCurrentActCtx] on MSDN
.
Summary
The ReleaseActCtx function decrements the reference count of the specified activation context.
.

static extern void ReleaseActCtx(IntPtr hActCtx);

.

Declare Function ReleaseActCtx Lib "Kernel32.dll" (TODO) As TODO

.
Documentation
[ReleaseActCtx] on MSDN

 
Access PInvoke.net directly from VS: