Export (0) Print
Expand All

CreateActCtx function

The CreateActCtx function creates an activation context.

Syntax


HANDLE CreateActCtx(
  _Inout_  PACTCTX pActCtx
);

Parameters

pActCtx [in, out]

Pointer to an ACTCTX structure that contains information about the activation context to be created.

Return value

If the function succeeds, it returns a handle to the returned activation context. Otherwise, it returns INVALID_HANDLE_VALUE.

This function sets errors that can be retrieved by calling GetLastError. For an example, see Retrieving the Last-Error Code. For a complete list of error codes, see System Error Codes.

Remarks

Set any undefined bits in dwFlags of ACTCTX to 0. If any undefined bits are not set to 0, the call to CreateActCtx that creates the activation context fails and returns an invalid parameter error code. The handle returned from CreateActCtx is passed in a call to ActivateActCtx to activate the context for the current thread.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Winbase.h (include Windows.h)

Library

Kernel32.lib

DLL

Kernel32.dll

Unicode and ANSI names

CreateActCtxW (Unicode) and CreateActCtxA (ANSI)

See also

ACTCTX

 

 

Community Additions

ADD
Show:
© 2014 Microsoft