Register

The Register entry point returns the level of parsing that this parser understands.

WORD Register(
  HPROTOCOL hProtocol  
);
 

Parameters

hProtocol
Specifies the handle that the kernel will use to describe this parser in the future. This handle should be kept and used by the parser in future APIs, such as CreatePropertyDatabase.

Return Values

Should return a parser level value of 1.

Remarks

Register returns the level of parsing that this parser understands. Only one level of parsing is recognized. When the parser Register function is called, the parser should call CreatePropertyDatabase and AddProperty to build a database describing all of the properties that it will use in describing the protocol it understands.