L_InetStartUp

#include "l_bitmap.h"
#include "ltnet.h"

L_LTNET_API L_INT L_InetStartUp(L_VOID)

Initializes the LEADTOOLS Peer-to-Peer DLL.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

This function initializes the LEADTOOLS Peer-to-Peer DLL. This must be the first function that is called before using any other Peer-to-Peer functions. For each call to L_InetStartUp, there needs to be a corresponding call to L_InetShutDown.

Required DLLs and Libraries

LTNET

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application

See Also

Functions:

L_InetShutDown, L_InetSendSound

Topics:

Peer-to-Peer Functions

Example

L_INT WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, L_INT)
{
   MSG msg;

   /* start up internet DLL */
   L_InetStartUp();

   while (GetMessage(&msg, NULL, 0, 0))
   {
      TranslateMessage(&msg) ;
      DispatchMessage(&msg) ;
   }

   /* shut down internet DLL */
   L_InetShutDown();
   return (L_INT) (msg.wParam);
}