Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

AfxSetAmbientActCtx

 

Use this function to set the per-module state flag, which affects the WinSxS behavior of MFC.


      void AFXAPI AfxSetAmbientActCtx(
BOOL bSet
);

bSet

New value of the module state flag.

When the flag is set (which is the default) and a thread enters an MFC module (see AFX_MANAGE_STATE), the context of the module is activated.

If the flag is not set, the context of the module is not activated on entry.

The context of a module is determined from its manifest, usually embedded in module resources.

Example

BOOL CMFCListViewApp::InitInstance()
{
   AfxSetAmbientActCtx(FALSE);
   // Remainder of function definition omitted.

Requirements

Header: afxcomctl32.h

Show: