Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/175591

From BetaArchive Wiki

HOWTO: Start the NetMeeting Whiteboard from an Application

Q175591



The information in this article applies to:


  • Microsoft NetMeeting 2.1 Software Development Kit (SDK)





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.

Additional query words:

Keywords : kbNetMeeting kbSDKNMeet210 kbSDKPlatform
Issue type : kbinfo
Technology : kbAudDeveloper kbNMeetSearch kbSDKSearch kbSDKNMEET210


Last Reviewed: February 3, 2000
© 2001 Microsoft Corporation. All rights reserved. Terms of Use.