IAgentApp::CreateChar
SECAgentCharacterExPtr*IAgentApp::CreateChar(IAgentExPtr&ptrAgent, LPWSTRpwzAgentChar, SECAgentCharacterExPtr*pptrInChar)
Static function that creates IAgentCharacterEx and attaches it to an instance of SECAgentCharacterExPtr.
Defined in: ot_agent.cpp
Return Value
A new instance of SECAgentCharacterExPtr if pptrInChar is NULL or pptrInChar itself if not null. A new instance of SECAgentCharacterExPtr will be created irrespective of whether the character was loaded successfully or not.
Parameters
ptrAgent
A reference to the Server Smart Ptr.
pwzAgentChar
The file name of the character to load and attach. This need not be the full path as the server will try to load it from the %msagent%\chars directory for such files.
pptrInChar
The smart pointer to attach the loaded IAgentCharacterEx interface to. If NULL, a new instance will be created and returned.
Comments
Use this static function to load a IAgentCharacterEx and attach it to the SECAgentCharacterExPtr smart pointer. NULL*/)