Knowledge Base

HOWTO: Start the NetMeeting Whiteboard from an Application

PSS ID Number: 175591

Article Last Modified on 2/3/2000


The information in this article applies to:


This article was previously published under Q175591

SUMMARY

How can I start the NetMeeting Whiteboard from my own application?

To launch NetMeeting Whiteboard (wb32.exe), NetMeeting needs to be running in the foreground or background. This article includes sample code that demonstrates how to programmatically check whether or not NetMeeting is running.

MORE INFORMATION

Sample Code

   INmManager * g_pMgr  = NULL;
   HRESULT hr;
   // Start NetMeeing manager
   if (FAILED(CoCreateInstance
      (CLSID_NmManager,NULL,CLSCTX_INPROC_SERVER,IID_INmManager,
      (VOID **)&g_pMgr)))
      return FALSE;

   ULONG uchCaps = 0;
   ULONG uOptions = (ULONG) 1; // NM_INIT_CONTROL;
   // The following will run NetMeeting in the background
   hr = g_pMgr->Initialize(&uOptions, &uchCaps);
   if (S_OK == hr) // NetMeeting initailizes successfully in the background
   {
      char szNMDir[300]; // To hold the path name of NetMeeting wb32.exe
      strcpy (szNMDir, "Directory path to wb32.exe");
      HINSTANCE Hinst = ShellExecute( NULL, NULL, szNMDir,
                                      NULL,NULL,SW_NORMAL );
   }
				
You can also programmatically obtain the NetMeeting installation directory from the registry.

Keywords: kbinfo KB175591
Technology: kbAudDeveloper kbNMeetSearch kbSDKNMEET210 kbSDKSearch