Exception in GetComputerObjectName

  • Thread starter Thread starter ialexei
  • Start date Start date
I

ialexei

Hi,

I get a First-chance exception (0x000006BA: The RPC server is unavailable.)
on my VS.NET output window, when I call GetComputerObjectName. Here is the code
frament.
....
TCHAR szDn[1000];
DWORD dwLen = 1000;
BOOL bRes = ::GetComputerObjectName(NameFullyQualifiedDN,szDn,&dwLen);
....

Can anybody there tell me what is wrong with my code.

Thanks
-Alexei
 
The only solution I have found that works its to turn of expeptions in Visual Studio...

That is Debug -> Expections ->

And turn off "Win32 Expections" box... You can later turn all the individual exceptions on but the parent box has to be off.
 
Back
Top