(file) Return to cimserver_windows.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / WMIMapper / WMIServer / Attic

Diff for /pegasus/src/WMIMapper/WMIServer/Attic/cimserver_windows.cpp between version 1.13 and 1.14

version 1.13, 2005/02/24 20:09:08 version 1.14, 2005/04/04 10:52:26
Line 37 
Line 37 
 //              Jair Santos, Hewlett-Packard Company (jair.santos@hp.com) //              Jair Santos, Hewlett-Packard Company (jair.santos@hp.com)
 //              Dan Gorey, IBM (djgorey@us.ibm.com) //              Dan Gorey, IBM (djgorey@us.ibm.com)
 //              Mateus Baur, Hewlett-Packard Company (mateus.baur@hp.com) //              Mateus Baur, Hewlett-Packard Company (mateus.baur@hp.com)
   //              Josephine Eskaline Joyce, IBM (jojustin@in.ibm.com) for Bug#2031
 // //
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
Line 330 
Line 331 
       sprintf(displayname, "%s - %s", PEGASUS_DISPLAY_NAME, service_name);       sprintf(displayname, "%s - %s", PEGASUS_DISPLAY_NAME, service_name);
     }     }
  
   GetModuleFileName(NULL, filename, sizeof(filename));    if(0 != GetModuleFileName(NULL, filename, sizeof(filename)))
     {
   status = pegasus_service.Install(displayname, PEGASUS_DESCRIPTION, filename);   status = pegasus_service.Install(displayname, PEGASUS_DESCRIPTION, filename);
  
   // Upon success, set home in registry   // Upon success, set home in registry
Line 344 
Line 346 
       pegasus_homepath[strlen(pegasus_homepath)-1] = '\0';       pegasus_homepath[strlen(pegasus_homepath)-1] = '\0';
       _setRegInfo(g_cimservice_home, pegasus_homepath);       _setRegInfo(g_cimservice_home, pegasus_homepath);
     }     }
     }
     else
     {
       status = (Service::ReturnCode) GetLastError();
     }
  
   return (status == Service::SERVICE_RETURN_SUCCESS) ? true : false;   return (status == Service::SERVICE_RETURN_SUCCESS) ? true : false;
 } }
Line 484 
Line 491 
   // Determine the absolute path to the running program   // Determine the absolute path to the running program
   char exe_pathname[_MAX_PATH] = {0};   char exe_pathname[_MAX_PATH] = {0};
   char home_pathname[_MAX_PATH] = {0};   char home_pathname[_MAX_PATH] = {0};
   GetModuleFileName(NULL, exe_pathname, sizeof(exe_pathname));    if(0 != GetModuleFileName(NULL, exe_pathname, sizeof(exe_pathname)))
     {
  
   // Pegasus home search rules:   // Pegasus home search rules:
   // - look in registry (if set)   // - look in registry (if set)
Line 528 
Line 536 
         }         }
     }     }
 } }
   }
  


Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2