Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
OPTNAMECHANGEPFN
Collapse the table of content
Expand the table of content

OPTNAMECHANGEPFN

This is a callback function specified in a call to the SccSetOption Function (using option SCC_OPT_NAMECHANGEPFN) and is used to communicate name changes made by the source control plug-in back to the IDE.

typedef void (*OPTNAMECHANGEPFN)(
   LPVOID pvCallerData,
   LPCSTR pszOldName,
   LPCSTR pszNewName
);

pvCallerData

[in] User value specified in a previous call to the SccSetOption Function (using option SCC_OPT_USERDATA).

pszOldName

[in] The original name of the file.

pszNewName

[in] The name the file was renamed to.

If a file is renamed during a source control operation, the source control plug-in can notify the IDE about the name change through this callback.

If the IDE does not support this callback, it will not call the SccSetOption Function to specify it. If the plug-in does not support this callback, it will return SCC_E_OPNOTSUPPORTED from the SccSetOption function when the IDE attempts to set the callback.

Show:
© 2015 Microsoft