Hi all, thanks for replying

@itsmeandnobodyelse

I tried using HRESULT hr = CoInitializeEx(0, COINIT_MULTITHREADED); as well as HRESULT hr = CoInitializeEx(0, COINIT_APARTMENTTHREADED);.

Unfortunately, both failed.

@ADSOFT

I tried removing that but it errors. Just initializing the PxeAuthClass using errors.

Code:
IPxeAuthClassPtr pxecls;
hr = pxecls.CreateInstance(CLSID_PxeAuthClass);
Might you have some suggestions how to 'silence' this error so that if I run the .exe program, it will not crash?

Thank you!