The role of one of our projects was MS Exchange trainer for processing future email.

The prime origin of comprehension was this nonfiction "Developing Managed Event Sinks/Hooks for Exchange Server Store mistreatment C#" by Logu Krishnan, published to the computer code [http://www.codeproject.com/csharp/CsManagedEventSinksHooks.asp], and as well examples from Microsoft Exchange SDK.

We utilized Synchronous Events and created the handler, which fires on OnSyncSave circumstance. The animal trainer creates leisure story in Microsoft CRM and next removes the communication in the Exchange info beforehand the commitment:

Post ads:
spy monitor screen recorder / surveillance systems bar / call recorder for mobile nokia 5233 / how to detect spy software on android phone / iphone call recorder app 2012 / marriage counseling infidelity / can skype record phone calls / house phones record conversations / lyrics to cheating on me by kandi / download free softwares for iphone 3gs / mobile recording bay area / spy your spouse / call recorder motorola zn200 / gps software for iphone / cheaters episode wedding / flashing software for sony ericsson phones / name shame cheating boyfriends

public negated OnSyncSave(IExStoreEventInfo pEventInfo, cable bstrURLItem, int IFlags) {
try {
if (IFlags == ((int)EVT_SINK_FLAGS.EVT_SYNC_COMMITTED (int)EVT_SINK_FLAGS.EVT_IS_DELIVERED)) {

ProcessMessage(pEventInfo, bstrURLItem, IFlags);

}

Post ads:
how to spy an iphone / hidden phone ipod nano / if your spouse cheating / get cell phone call records / free call recorder n73 free download / coping with infidelity resentment part 4 / spy software keylogger full / quotes for cheating bf / bankruptcy records mobile alabama / hidden mac theft tracking / listening device band / phone conversation recording legal / spy sms gratuit android / free call recorder on skype / nokia mobile phones prices in pakistan / remote spy on computer / record bluetooth audio pc

}

catch (Exception ex) {

log.Debug(ex.Message "\\n" ex.StackTrace);

}

finally {

LogManager.Shutdown();

}
}

For Exchange handlers debugging - it is the a lot expedient to use set of laws log4net in RollingLogFileAppender or RemoteAppender modes (for fourfold example of COM objects). You can publication more on this argument present
To permit the trainer entering mail removal, it is important to impart prim rights to the user, nether which side the COM request runs the handler. These are rights on happening of the data in user's boxes for whom it is registered (Windows 2003 Server: Active Directory Users and Computer -> Users -> Properties (for COM standing story) -> Exchange Advanced -> Mailbox Rights). And now the code:

private invalid DeleteMessage(string bstrURLItem) {
try {

ADODB.Connection oCn = new ADODB.Connection();

oCn.Provider = "exoledb.datasource";

oCn.Open(bstrURLItem, "", "", -1);

if(oCn.State == 1) {

log.Debug("Good Connection");

}

else {

log.Debug("Bad Connection");

}

ADODB.Record rec = new ADODB.Record();

rec.Open(bstrURLItem, oCn,

ADODB.ConnectModeEnum.adModeReadWrite,

ADODB.RecordCreateOptionsEnum.adFailIfNotExists,

ADODB.RecordOpenOptionsEnum.adOpenSource,

"", "");

rec.DeleteRecord(bstrURLItem, trick);

rec.Close();

oCn.Close();

rec = null;

oCn = null;

}

catch (Exception ex) {

log.Debug(ex.Message "\\n" ex.StackTrace);

}
}

Happy customizing!
Boris Makushkin

stronzfn 發表在 痞客邦 PIXNET 留言(0) 人氣()