AP I

  • Thread starter Thread starter [GHO]
  • Start date Start date
G

[GHO]

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)
 
Check the System.Management namespace classes and query the WMI class 'Win32_IRQResource'.

Following is a small sample that lists all IRQ's used

using System;
using System.Management;
class App {
public static void Main() {
SelectQuery query = new SelectQuery("Win32_IRQResource");
ManagementObjectSearcher searcher = new ManagementObjectSearcher(query);
foreach (ManagementObject mo in searcher.Get()) {
Console.WriteLine("IRQ : {0} ",mo["IRQnumber"]);
}
}
}


Willy.
 
can you excplain how to do that in c (mfc) , or how to
make C# dll and use this dll from mfc
Best Regards
-----Original Message-----
Check the System.Management namespace classes and query
the WMI class 'Win32_IRQResource'.
Following is a small sample that lists all IRQ's used

using System;
using System.Management;
class App {
public static void Main() {
SelectQuery query = new SelectQuery ("Win32_IRQResource");
ManagementObjectSearcher searcher = new ManagementObjectSearcher(query);
foreach (ManagementObject mo in searcher.Get()) {
Console.WriteLine("IRQ : {0} ",mo["IRQnumber"]);
}
}
}


Willy.

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)


.
 
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
-----Original Message-----
Check the System.Management namespace classes and query
the WMI class 'Win32_IRQResource'.
Following is a small sample that lists all IRQ's used

using System;
using System.Management;
class App {
public static void Main() {
SelectQuery query = new SelectQuery ("Win32_IRQResource");
ManagementObjectSearcher searcher = new ManagementObjectSearcher(query);
foreach (ManagementObject mo in searcher.Get()) {
Console.WriteLine("IRQ : {0} ",mo["IRQnumber"]);
}
}
}


Willy.

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)


.
 
Just expose your managed class as a COM class, check :
COM Interop Part 2: C# Server Tutorial
in the MSDN doc's.

Willy.

can you excplain how to do that in c (mfc) , or how to
make C# dll and use this dll from mfc
Best Regards
-----Original Message-----
Check the System.Management namespace classes and query
the WMI class 'Win32_IRQResource'.
Following is a small sample that lists all IRQ's used

using System;
using System.Management;
class App {
public static void Main() {
SelectQuery query = new SelectQuery ("Win32_IRQResource");
ManagementObjectSearcher searcher = new ManagementObjectSearcher(query);
foreach (ManagementObject mo in searcher.Get()) {
Console.WriteLine("IRQ : {0} ",mo["IRQnumber"]);
}
}
}


Willy.

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)


.
 
Back
Top