Click here to Skip to main content
15,916,945 members
Home / Discussions / C#
   

C#

 
GeneralRe: hello! help for SMSC class Pin
ftanriov10-Mar-04 6:48
ftanriov10-Mar-04 6:48 
GeneralRe: hello! help for SMSC class Pin
Heath Stewart10-Mar-04 6:58
protectorHeath Stewart10-Mar-04 6:58 
GeneralRe: hello! help for SMSC class Pin
ftanriov10-Mar-04 6:52
ftanriov10-Mar-04 6:52 
GeneralRe: hello! help for SMSC class Pin
ftanriov10-Mar-04 6:57
ftanriov10-Mar-04 6:57 
GeneralInterop with MSDev from a C# application Pin
Eric Marchesin10-Mar-04 4:10
Eric Marchesin10-Mar-04 4:10 
GeneralRe: Interop with MSDev from a C# application Pin
Mazdak10-Mar-04 5:03
Mazdak10-Mar-04 5:03 
GeneralRe: Interop with MSDev from a C# application Pin
Eric Marchesin10-Mar-04 7:21
Eric Marchesin10-Mar-04 7:21 
GeneralRe: Interop with MSDev from a C# application Pin
Heath Stewart10-Mar-04 6:36
protectorHeath Stewart10-Mar-04 6:36 
If you're looking to write a plug-in, you can reference EnvDTE. You can find more information about this on MSDN, Manipulating the Development Environment[^]. More easily, just create a new add-in project in VS.NET. You can get access to the open files (the text editor itself won't help) from there.

If you're trying to do this external the development environment, I'm not sure how you could get a reference to the EnvDTE object or if it's even possible. I do know that devenv.exe does register open files in the running object table (ROT). You could P/Invoke GetrunningObjectTable to get a reference to the IRunningObjetTable (a COM interface, so you'll have to import it or re-define it in C#). You can then enumerate the objects using the EnumRunning method with an IEnumMoniker (forunately, .NET already exposes the UCOMIEnumMoniker interface so you don't have to define IEnumMoniker). From there, you can get file monikers, filtering on devenv.exe to get the open documents. COM programming experience will be helpful.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Interop with MSDev from a C# application Pin
Eric Marchesin10-Mar-04 7:33
Eric Marchesin10-Mar-04 7:33 
GeneralRe: Interop with MSDev from a C# application Pin
Heath Stewart10-Mar-04 9:57
protectorHeath Stewart10-Mar-04 9:57 
GeneralRe: Interop with MSDev from a C# application Pin
Eric Marchesin10-Mar-04 21:40
Eric Marchesin10-Mar-04 21:40 
GeneralRe: Interop with MSDev from a C# application Pin
Heath Stewart11-Mar-04 2:58
protectorHeath Stewart11-Mar-04 2:58 
GeneralRe: Interop with MSDev from a C# application Pin
Eric Marchesin11-Mar-04 22:56
Eric Marchesin11-Mar-04 22:56 
GeneralRe: Interop with MSDev from a C# application Pin
Heath Stewart12-Mar-04 3:05
protectorHeath Stewart12-Mar-04 3:05 
Generalraise event in another form Pin
laptop_0110-Mar-04 3:13
laptop_0110-Mar-04 3:13 
GeneralRe: raise event in another form Pin
John Fisher10-Mar-04 3:52
John Fisher10-Mar-04 3:52 
General.Net windows forms problem in c# Pin
libpcap200110-Mar-04 1:07
libpcap200110-Mar-04 1:07 
GeneralRe: .Net windows forms problem in c# Pin
Dave Kreskowiak10-Mar-04 1:22
mveDave Kreskowiak10-Mar-04 1:22 
GeneralRe: .Net windows forms problem in c# Pin
LongRange.Shooter10-Mar-04 3:28
LongRange.Shooter10-Mar-04 3:28 
GeneralExchage server 5.0 Pin
pushpi10-Mar-04 1:04
pushpi10-Mar-04 1:04 
GeneralRe: Exchage server 5.0 Pin
Corinna John10-Mar-04 3:13
Corinna John10-Mar-04 3:13 
GeneralCrystal Reports (9) Sorting hierarchy Pin
Mr. Labenche9-Mar-04 23:18
Mr. Labenche9-Mar-04 23:18 
GeneralRe: Crystal Reports (9) Sorting hierarchy Pin
Heath Stewart10-Mar-04 6:18
protectorHeath Stewart10-Mar-04 6:18 
Generalmultimedia files Pin
m_ramses9-Mar-04 22:50
m_ramses9-Mar-04 22:50 
GeneralRe: multimedia files Pin
Mazdak10-Mar-04 3:13
Mazdak10-Mar-04 3:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.