int PCMSCloseServer(PCMServerID serv)



PCMServerID serv – The PC*MILER server ID.


Deletes any remaining trips that haven’t been deleted with PCMSDeletetrip and unloads the PC*MILER highway database. PCMSCloseServer is the last PC*MILER|Connect function called when finished using the engine. You must call PCMSOpenServer again to reinitialize PC*MILER|Connect before calling any other functions.

Return Values 

Returns zero (0) upon success. A negative one (-1) indicates an error has occurred.

Sample Code

void UsePCMILER()
         PCMServerID server;
         /* Pass neither instance handle, nor parent window*/
         server = PCMSOpenServer(0, 0);
         /* Do other processing here. */
         /* Use the server: calculate trips, etc.... */
         /* Shut down the server */

Supported Since: PC*MILER|Connect 12

Category: Administration