python and COM
Well, it’s been a while since I have posted anything about Python. That doesn’t mean that the snake has lost it’s grip on me (wow, that’s corny). Lately I have been working on COM programming on Win32. I am trying to create a CGI script that will connect to an Exchange server and return the mailbox size of a user that is passed to the script. It was a bit of a trick to find the email server for a given user when supplied with their Active Directory account name. I will post the code that I used when I get a chance.
The main thing that is holding me up right now is permissions when attempting to Open a MAPI.Session - I even installed a cool COM dll called sfImpersonator that allows me to impersonate the security context of another logged on user. I think the impersonation works well enough, but then I get an error from the COM subsystem (E_OUTOFMEMORY, I believe). From what I found out, this is another way for the COM subsystem to say access is denied (funny way to say it).
I’ll post code when I can get my hands on it. It is on my work machine. Laundry’s done, gotta go.
March 30th, 2004 at 9:26 am
Pls post that script! Thanks,
Anthony