RegisterServiceMethod
Registers a callable method with the NetWare HTTP Stack, which is invoked when the tag is encountered at the beginning of the relative URL path.
#include <httpexp.h>
BOOL RegisterServiceMethod (
void *pzServiceName,
void *pServiceTag,
int serviceTagLength,
UINT32 (*pServiceMethodCheck)(
HINTERNET hndl,
void *pExtraInfo,
UINT32 szExtraInfo,
UINT32 InformationBits),
void *pRTag,
UINT32 *pReturnCode);
RegisterServiceMethod registers the service method with a default of zero rights (the method handles rights check).
The first call to the registered method is an initialization call. The CONTROL_INITIALIZATION_BIT is set in the InformationBits to signal this call. This allows the method to do any of its own initialization it needs to do before handling HTTP requests. Also, when HTTPSTK unloads or the method is deregistered, another call to the method is made with the CONTROL_DEINITIALIZATION_BIT set. Make sure any symbols dynamically imported from HTTPSTK are released before returning from your method on deinitialization.