Export (0) Print
Expand All

ITagReplacer::FindReplacementOffset 

Implement this method to return numeric identifiers for a given object and method name. The identifiers can be later passed to ITagReplacer::RenderReplacement.


HTTP_CODE FindReplacementOffset(
   LPCSTR szMethodName,
   DWORD * pdwMethodOffset,
   LPCSTR szObjectName,
   DWORD * pdwObjOffset,
   DWORD * pdwMap,
   void ** ppvParam,
   IAtlMemMgr * pMemMgr 
);

Parameters

szMethodName

The name of a method (and optional arguments). Should not be NULL.

pdwMethodOffset

[out] Address of the variable that, on success, receives the numeric identifier corresponding to szMethodName.

szObjectName

The name of the object providing the method identified by szMethodName. May be NULL.

pdwObjOffset

[out] Address of the variable that, on success, receives the numeric identifier corresponding to szObjectName.

pdwMap

[out] Address of the variable that, on success, receives the identifier of the map containing the object/method identified by szObjectName/szMethodName.

ppvParam

[out] Address of the pointer variable that, on success, receives a pointer to an object representing the arguments in szMethodName.

pMemMgr

The memory manager to be used to allocate the ppvParam object.

Returns HTTP_SUCCESS or another ATL Server status code indicating success or failure.

The values returned from this method's out parameters can be cached and passed to ITagReplacer::RenderReplacement to make a method call at a later time.

Community Additions

ADD
Show:
© 2014 Microsoft