titbits from the world less travelled

Archive for November, 2009

Making calls to COM, which are single threaded

In order to make calls to a COM method which is implemented using a single threaded model, you would need to use the CoInitialize Function.

This basically Initializes the COM library on the current thread and identifies the concurrency model as single-thread apartment (STA).

Format is as below:
HRESULT CoInitialize(
__in_opt LPVOID pvReserved
);

Newer applications can use:

CoInitializeEx(0, COINIT_APARTMENTTHREADED);

posted by admin in Uncategorized and have No Comments

New Spam email

I thought why not put some spam emails of different types on my blog. some are real funny.

Here goes the first one:
My name is Sgt. Nelson Dillon, serving in the Engineering military unit in
Ba’qubah in Iraq. As you know, we are being attacked by insurgents
everyday and car bombings, we found some money here in Baqubah in Iraq, we
cannot keep this money in the bank because we are working for the
government. My partners and i need a good partner/individaul, someone we
can trust and we want to move this money out of iraq to a
reputable/sincere person for investment purposes. We plan on using a
diplomatic means to ship the money out as military cargo, using diplomatic
immunity. This is the reason for contacting you, once the funds get to
you, take your 30% out and keep our own 70%. The only thing we require
from you is just for you to help us find a safe place where the funds can
be sent to,because Iraq is a war zone. If you are interested get back for
more details.

Thanks,

SGT Nelson.

posted by admin in spam and have No Comments