Microsoft KB Archive/175591: Difference between revisions

From BetaArchive Wiki
m (Text replacement - """ to """)
m (Text replacement - "&" to "&")
 
Line 38: Line 38:
   if (FAILED(CoCreateInstance
   if (FAILED(CoCreateInstance
       (CLSID_NmManager,NULL,CLSCTX_INPROC_SERVER,IID_INmManager,
       (CLSID_NmManager,NULL,CLSCTX_INPROC_SERVER,IID_INmManager,
       (VOID **)&g_pMgr)))
       (VOID **)&g_pMgr)))
       return FALSE;
       return FALSE;


Line 44: Line 44:
   ULONG uOptions = (ULONG) 1; // NM_INIT_CONTROL;
   ULONG uOptions = (ULONG) 1; // NM_INIT_CONTROL;
   // The following will run NetMeeting in the background
   // The following will run NetMeeting in the background
   hr = g_pMgr->Initialize(&uOptions, &uchCaps);
   hr = g_pMgr->Initialize(&uOptions, &uchCaps);
   if (S_OK == hr) // NetMeeting initailizes successfully in the background
   if (S_OK == hr) // NetMeeting initailizes successfully in the background
   {
   {

Latest revision as of 11:30, 21 July 2020

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.