MS Exchnage 2007 threading and session creation.

Joined
Jul 22, 2008
Messages
1
Reaction score
0
We were using Exchange 2000 previously. Used AIDs class for object creation and CoCreateInstance() for Exchnage Server instance creation.

Now usinf Exchnage 2007 and we don't want to use AIDs. So can you please help me how can I implement the threading concept without using AIDs.

i want alternative to this class in my C++ code. Exchange Code is in C# using powershell. ( Out process mechanism used)

Snippet :

class CADThreadContext
{
public:
static void Initialize();
static void Uninitialize();
static CADThreadContext* GetCurrent();
static ThreadPoolTask Close(void *pv);
void SetSessionObject( IADs* SessionObject );
IADs* GetSessionObject();
protected:
CADThreadContext();
~CADThreadContext();

unsigned long m_ThreadID;
DWORD m_TaskId;
IADs* m_SessionObject;
time_t m_TimeStamp; // Derived from time ie: Universal
BOOL m_Close;

};
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top