public void LoadPdb(string pdbFile) { int hr; string globalName; hr = dataSource.loadDataFromPdb(pdbFile); if (hr != VSConstants.S_OK) { Marshal.ThrowExceptionForHR(hr); } hr = dataSource.openSession(out session); if (hr != VSConstants.S_OK) { Marshal.ThrowExceptionForHR(hr); } hr = session.get_globalScope(out globalScope); if (hr != VSConstants.S_OK) { Marshal.ThrowExceptionForHR(hr); } hr = globalScope.get_name(out globalName); if (hr != VSConstants.S_OK) { Marshal.ThrowExceptionForHR(hr); } this.GlobalName = globalName; this.GlobalScope = new DiaSymbol(globalScope); }