0
Answer

Windows services connection with an application

vijay ram

vijay ram

18y
1.6k
1

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