Can any one tell me when and how a TSP can export the supported functions?
I mean, do the TSP export the supported TSPI functions immediately after
service provider installation by it self or the TAPISRV will query the
supported TSPI functions to TSP after instalaltion?
Thanks,
Mohit
Mohit,
one way is the usage of a .DEF file,
another ways the usage of the dllexport attribute.
Please see MSDN for details.
> I mean, do the TSP export the supported TSPI functions immediately after
> service provider installation by it self or the TAPISRV will query the
> supported TSPI functions to TSP after instalaltion?
Exported functions of a DLL (and hence a TSP) are static.
The function entry points are ceated during the compilation / link process
in Visual Studio.
You can use MS Dependeny Walker (a tool part of VS) to explore a DLL's
exported functions.
After a process (e.g. TAPISRV) has loaded a DLL/TSP dynamically
(LoadLibrary()) it can use GetProcAddress() to retrieve the function entry
point for a know ProcName.
Please see MSDN for details.
--
Best Regards
Andreas Marschall
Microsoft MVP for TAPI / Windows SDK / Visual C++ 2003-2008
TAPI / TSP Developer and Tester
My TAPI and TSPI FAQ:
http://www.I-B-A-M.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm
My Toto� Tools (a collection of free, mostly TAPI related tools):
http://www.i-b-a-m.de/Andreas_Marschall's_Toto_Tools.htm
TAPI development around the world (Frappr! map):
http://www.frappr.com/TAPIaroundTheWorld
* Please post all messages and replies to the newsgroup so all may
* benefit from the discussion. Private mail is usually not replied to.
* This posting is provided "AS IS" with no warranties, and confers no
rights.