Creating Mapping Modules

The mapping module is a self-registering server that creates the appropriate entry in the Posting Acceptor’s mapping modules registry during registration. You have the option to accept the default mapping module or create other modules to suit your needs. For more information about mapping modules, see "Mapping Modules" in the "Background Functions" section of this document.

A mapping module must be an in-process server that supports the IMapper interface defined as follows:

const IID IID_IMapper = \

{0x66BE7351,0x83A0,0x11D0,{0xA3,0x17,0x00,0xC0,0x4F,0xD7,0xCF,0xC5}};

This interface supports one additional method besides the standard ones:

HRESULT STDMETHODCALLTYPE GetLocation(

/* in */ LPCTSTR szUrl, // Destination URL ("TargetURL"variable)

/* in */ LPCTSTR szUsername, // User uploading files

/* out */ LPSTR szDestination, // Physical disk location buffer

/* in */ DWORD dwDestinationLength); // Length of the buffer

(For the acceptor, the length of the buffer will always be MAX_PATH.)

Note
You can enable or disable a mapping module by setting its value in the registry to 1 (enable) or 0 (disable).


© 1996-1997 Microsoft Corporation. All rights reserved.