FindActCtxSectionGuid Function

The FindActCtxSectionGuid function retrieves information on a specific GUID in the current activation context and returns a ACTCTX_SECTION_KEYED_DATA structure.

Syntax

C++
BOOL FindActCtxSectionGuid(
  __in   DWORD dwFlags,
  __in   const GUID *lpExtensionGuid,
  __in   ULONG ulSectionId,
  __in   const GUID *lpGuidToFind,
  __out  PACTCTX_SECTION_KEYED_DATA ReturnedData
);

Parameters

dwFlags [in]

Flags that determine how this function is to operate. Only the following flag is currently defined.

ValueMeaning
FIND_ACTCTX_SECTION_KEY_RETURN_HACTCTX

This function returns the activation context handle where the redirection data was found in the hActCtx member of the ACTCTX_SECTION_KEYED_DATA structure. The caller must use ReleaseActCtx to release this activation context.

 

lpExtensionGuid [in]

Reserved; must be null.

ulSectionId [in]

Identifier of the section of the activation context in which to search for the specified GUID.

The following are valid GUID section identifiers:

  • ACTIVATION_CONTEXT_SECTION_COM_SERVER_REDIRECTION
  • ACTIVATION_CONTEXT_SECTION_COM_INTERFACE_REDIRECTION
  • ACTIVATION_CONTEXT_SECTION_COM_TYPE_LIBRARY_REDIRECTION

The following is a valid GUID section identifier beginning with Windows Server 2003 and Windows XP with SP1:

  • ACTIVATION_CONTEXT_SECTION_CLR_SURROGATES
lpGuidToFind [in]

Pointer to a GUID to be used as the search criteria.

ReturnedData [out]

Pointer to an ACTCTX_SECTION_KEYED_DATA structure to be filled out with the requested GUID information.

Return Value

If the function succeeds, it returns TRUE. Otherwise, it returns FALSE.

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

This function should only be called by the Side-by-side API functions or COM methods. Applications should not directly call this function.

Requirements

Minimum supported clientWindows XP
Minimum supported serverWindows Server 2003
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll

See Also

FindActCtxSectionString
ACTCTX_SECTION_KEYED_DATA

Send comments about this topic to Microsoft

Build date: 10/29/2009

Tags :


Page view tracker