vijay ram

vijay ram

  • NA
  • 2
  • 0

Windows services connection with an application

Dec 20 2005 11:56 AM

Dear all...

im trying to connect windows service with an application(Skype).But its is showing the error "apiAttachNotAvailable"
im using ActiveS com wrapper as API.

Please give a suitable suggestion frds.

 

 

 


The code i hv did in windows services:

protected override void OnStart(string[] args)
{

// TODO: Add code here to start your service.
m_oSkype =new SKYPEAPILib.AccessClass() ;
m_oSkype.APIStatusChanged += new SKYPEAPILib._IAccessEvents_APIStatusChangedEventHandler(this.OnAPIStatusChanged) ;
m_oSkype.Connect();


eventLog1.WriteEntry("my service started..");
}

private void OnAPIStatusChanged(SkypeAPIAttachmentStatus z_status)
{
m_iAppStatus = z_status;
eventLog1.WriteEntry(z_status.ToString());
}

 


Thx in advance
Vijayram.R