Condividi tramite


WinModule Global Functions

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at WinModule Global Functions.

These functions provide support for _AtlCreateWndData structure operations.

Important

The functions listed in the following table cannot be used in applications that execute in the Windows Runtime.

AtlWinModuleAddCreateWndData This function is used to initialize and add an _AtlCreateWndData structure.
AtlWinModuleExtractCreateWndData Call this function to extract an existing _AtlCreateWndData structure.

AtlWinModuleAddCreateWndData

This function is used to initialize and add an _AtlCreateWndData structure.

Important

This function cannot be used in applications that execute in the Windows Runtime.

ATLINLINE ATLAPI_(void) AtlWinModuleAddCreateWndData(
    _ATL_WIN_MODULE* pWinModule,
    _AtlCreateWndData* pData,
    void* pObject);

Parameters

pWinModule
Pointer to a module's _ATL_WIN_MODULE70 structure.

pData
Pointer to the _AtlCreateWndData structure to be initialized and added to the current module.

pObject
Pointer to an object's this pointer.

Remarks

Initializes an _AtlCreateWndData structure, which is used to store the this pointer used to refer to class instances, and adds it to the list referenced by a module's _ATL_WIN_MODULE70 structure. Called by CAtlWinModule::AddCreateWndData.

AtlWinModuleExtractCreateWndData

Call this function to extract an existing _AtlCreateWndData structure.

Important

This function cannot be used in applications that execute in the Windows Runtime.

ATLINLINE ATLAPI_(void*) AtlWinModuleExtractCreateWndData(_ATL_WIN_MODULE* pWinModule);

Parameters

pWinModule
Pointer to a module's _ATL_WIN_MODULE70 structure.

Return Value

Returns a pointer to the _AtlCreateWndData structure.

Remarks

This function will extract an existing _AtlCreateWndData structure from the list referenced by a module's _ATL_WIN_MODULE70 structure.

See Also

Functions