Using Entry Point Functions in Protocol Parser DLLs
Every parser DLL must have five entry points:
-
Register( ), which builds the property database by making calls to CreatePropertyDatabase( ), and then passes the database back to the kernel.
-
Deregister( ), which allows a parser to clean up by calling DestroyPropertyDatabase on its property database.
-
RecognizeFrame( ), which takes a pointer to raw data and passes back to the kernel whether or not the parser recognizes the data; if the parser does recognize the data, it also passes back the length of the recognized data.
-
AttachProperties( ), which identifies every displayable element of the recognized frame.
-
FormatProperties( ), which asks the parser to take all of the property instances and build the PropertyText field in each PropertyInst structure.