RegisterProtocolLoadedCallbackFunction function
The RegisterProtocolLoadedCallbackFunction function will register a callback function that will be called every time a new protocol is loaded.Syntax
int __stdcall RegisterProtocolLoadedCallbackFunction(
__in ProtocolSession *psess,
__in ProtocolIsLoaded *func
);
Parameters
psess [in] A pointer to a ProtocolSession structure. This is a session assigned to a protocol at the moment it's loaded into the memory.
func [in] A pointer to a ProtocolIsLoaded function. This function wil be registered to be called when a new protocol is loaded.
Return value
If no error occurs the function returns True (one). If the function fails it will return False (zero).
Remarks
The protocol needs to set the flag PT_CONTROLPANEL with the function
SetProtocolInformation to be able to execute this function.
Requirements
Should be exported by | -
|
Minimum supported API | 1.00
|
Header | tvsserver_base.h
|