Check the System.Manageme nt namespace classes and query the WMI class 'Win32_IRQResou rce'.
Following is a small sample that lists all IRQ's used
using System;
using System.Manageme nt;
class App {
public static void Main() {
SelectQuery query = new SelectQuery("Wi n32_IRQResource ");
ManagementObjec tSearcher searcher = new ManagementObjec tSearcher(query );
foreach (ManagementObje ct mo in searcher.Get()) {
Console.WriteLi ne("IRQ : {0} ",mo["IRQnumber"]);
}
}
}
Willy.
"[GHO]" <yousefk@taux01 .nsc.com> wrote in message news:079301c3a8 24$e5ccd040$a40 1280a@phx.gbl.. .[color=blue]
> some one can help for how to get a free IRQ .
> I want to get the number of free IRQ or list of IRQ's
> avilable (not using)[/color]
can you excplain how to do that in c (mfc) , or how to
make C# dll and use this dll from mfc
Best Regards
[color=blue]
>-----Original Message-----
>Check the System.Manageme nt namespace classes and query[/color]
the WMI class 'Win32_IRQResou rce'.[color=blue]
>
>Following is a small sample that lists all IRQ's used
>
>using System;
>using System.Manageme nt;
>class App {
> public static void Main() {
> SelectQuery query = new SelectQuery[/color]
("Win32_IRQReso urce");[color=blue]
> ManagementObjec tSearcher searcher = new[/color]
ManagementObjec tSearcher(query );[color=blue]
> foreach (ManagementObje ct mo in searcher.Get()) {
> Console.WriteLi ne("IRQ : {0} ",mo["IRQnumber"]);
> }
> }
>}
>
>
>Willy.
>
>"[GHO]" <yousefk@taux01 .nsc.com> wrote in message[/color]
news:079301c3a8 24$e5ccd040$a40 1280a@phx.gbl.. .[color=blue][color=green]
>> some one can help for how to get a free IRQ .
>> I want to get the number of free IRQ or list of IRQ's
>> avilable (not using)[/color]
>
>
>.
>[/color]
Hi,
can excplain me how to do that by C (MFC), or how to creat
this in DLL file (C3) , then use this C3 dll from MFC
application.
Best Regards
[color=blue]
>-----Original Message-----
>Check the System.Manageme nt namespace classes and query[/color]
the WMI class 'Win32_IRQResou rce'.[color=blue]
>
>Following is a small sample that lists all IRQ's used
>
>using System;
>using System.Manageme nt;
>class App {
> public static void Main() {
> SelectQuery query = new SelectQuery[/color]
("Win32_IRQReso urce");[color=blue]
> ManagementObjec tSearcher searcher = new[/color]
ManagementObjec tSearcher(query );[color=blue]
> foreach (ManagementObje ct mo in searcher.Get()) {
> Console.WriteLi ne("IRQ : {0} ",mo["IRQnumber"]);
> }
> }
>}
>
>
>Willy.
>
>"[GHO]" <yousefk@taux01 .nsc.com> wrote in message[/color]
news:079301c3a8 24$e5ccd040$a40 1280a@phx.gbl.. .[color=blue][color=green]
>> some one can help for how to get a free IRQ .
>> I want to get the number of free IRQ or list of IRQ's
>> avilable (not using)[/color]
>
>
>.
>[/color]
Just expose your managed class as a COM class, check :
COM Interop Part 2: C# Server Tutorial
in the MSDN doc's.
Willy.
<anonymous@disc ussions.microso ft.com> wrote in message news:09ff01c3a9 c9$9b07dbd0$a50 1280a@phx.gbl.. .[color=blue]
> can you excplain how to do that in c (mfc) , or how to
> make C# dll and use this dll from mfc
> Best Regards
>[color=green]
> >-----Original Message-----
> >Check the System.Manageme nt namespace classes and query[/color]
> the WMI class 'Win32_IRQResou rce'.[color=green]
> >
> >Following is a small sample that lists all IRQ's used
> >
> >using System;
> >using System.Manageme nt;
> >class App {
> > public static void Main() {
> > SelectQuery query = new SelectQuery[/color]
> ("Win32_IRQReso urce");[color=green]
> > ManagementObjec tSearcher searcher = new[/color]
> ManagementObjec tSearcher(query );[color=green]
> > foreach (ManagementObje ct mo in searcher.Get()) {
> > Console.WriteLi ne("IRQ : {0} ",mo["IRQnumber"]);
> > }
> > }
> >}
> >
> >
> >Willy.
> >
> >"[GHO]" <yousefk@taux01 .nsc.com> wrote in message[/color]
> news:079301c3a8 24$e5ccd040$a40 1280a@phx.gbl.. .[color=green][color=darkred]
> >> some one can help for how to get a free IRQ .
> >> I want to get the number of free IRQ or list of IRQ's
> >> avilable (not using)[/color]
> >
> >
> >.
> >[/color][/color]
Comment