|
according to me you should first understand the device driver for your k/B..
to develop a driver for windows environment you should download Driver Development Kit by Microsoft
|
|
|
|
|
Hi,
I am working on VS 2005 on Vista Platform and also have Vista SDK on my system.
All I want is to be able to handle any notification events on my Ethernet Network adapter.
These could be Ethernet Cable Pluged-in, Pluged-out, in each of these cases, an notification has to be sent.
I know that this can be achieved by registering a callback function with that Port/Network adapter ( I get the Port/Adapter info by calling the native API GetAdaptersAddresses( )
Once any event on the adapter occures, the callback function will be invoked and recieve the event for which the callback was called.
Can anybody please tell me as to how do I register/associate an Callback/event handling function with an Adapter using native Vista API's??
Any guidance will be of great help.
|
|
|
|
|
Marimuthu.pesit wrote: These could be Ethernet Cable Pluged-in, Pluged-out, in each of these cases, an notification has to be sent.
I know that this can be achieved by registering a callback function with that Port/Network adapter ( I get the Port/Adapter info by calling the native API GetAdaptersAddresses( )
No, it doesn't. At least not for the "events" you specified. The functions you're referring to are under the IP Helper section of the API and don't have anything to do with the physical connection of the adapter. They have to do with the TCP/IP stack and it's relation to the adapter.
The events you're talking about come under the System Event Notification Service[^].
|
|
|
|
|
Hi Dave,
Thanks for the response.
Is there any code snippet or a sample application that I could
refer to??
|
|
|
|
|
I don't know of any. System Event Notification Services is a pretty obscure API to use. I haven't been able to find any examples.
But, about 3 minutes of research finds hat SENS is installed automatically with every version of Windows after NT4, AND it exposes a COM library you can use in your code.
Start your project and open the Project properties. Click the References tab and in the dialog that shows up, click on the COM tab. Scroll down the list and find the "SENS Events Type Library". Double click on that line to add the reference. You can now use SENS as if it where a normal class in the .NET BCL.
All you have to do is add a class-level Dim to create a SENS object and then create the event handlers.
Dim WithEvents sens As New SensEvents.SENS
|
|
|
|
|
If your net card driver supports WMI, then you could write an app that gets the WMI data off the card.
Otherwise, you will need to write a protocol driver. Its not too hard. You then write an app which tells the protocol driver which OID to query (all Network card drivers must suport OIDs. OIDs (look in the DDJ for details) return data such as link speed, media state (cable in or out) tx packets etc etc etc.
Your app then displays the data from that OID. (Actually, WMI is just an extension of the OIDs allowing them to be acessed by user mode apps)
Protocol drivers are pretty easy to write, there are samples in the DDK, if not I can send you some code.
Truth is the subjection of reality to an individuals perception
|
|
|
|
|
A sample application or a code snippet will be of great help to understand the way things have to be approached/implemented.
Thanks & Regards
|
|
|
|
|
Google, or even CP, you should be able to find WMI sample code easially enough. If not, then use MSDN.
Truth is the subjection of reality to an individuals perception
|
|
|
|
|
Hi, if there is anyone here with more than a week's VHDL experience, could you help me by telling me why the code below gives this error:
Error: Can't resolve multiple constant drivers for net y.s1 at Vending.vhd(54)
Here is the process: Both U and O are inputs, STATE is a signal representing the current state of the Finite State Machine.
PROCESS ( U, O)
BEGIN
CASE STATE IS
WHEN S4 =>
IF O = '1' THEN
y <= S5;
END IF;
WHEN S6 =>
IF O = '1' THEN
y <= S7;
ELSIF U = '1' THEN
y <= S8;
END IF;
WHEN OTHERS =>
y <= y;
END CASE ;
END PROCESS ;
Regards
_______________________________________________________________________
http://www.readytogiveup.com/[ ^]
"you can't forget something you never knew..." M. Du Toit
|
|
|
|
|
VHDL is plenty mysterious but one of the good people here has taken a look at the code you posted. The only thing obviously wrong with it is that STATE should be in the sensitivity list PROCESS ( U, O, STATE )
That does not account for the error though. You probably need to post at least the code referring to y.s1 to get a better answer.
Apparently your code looks combinatorial rather than clocked. Someone who understands this stuff will likely need to know that for sure to help you.
Sorry that's all I can do, my regular VHDL guru is on holiday for the next 2 weeks.
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
I took it to my lecturer last night and he said that I'm creating an asynchronous STATE MACHINE instead of a synchronous one. Is it really required to have all SIGNALS in the sensitivity list? I noticed the warnings but couldn't understand why you would always want all your SIGNALS in the sensitivity list.
Anyway, my code had another process which was sensitive for 'clock' and 'reset', I pushed all the code from the process in my OP into that process and everything works.
_______________________________________________________________________
http://www.readytogiveup.com/[ ^]
"you can't forget something you never knew..." M. Du Toit
|
|
|
|
|
Yes it is absolutely necessary to have all needed signals in the sensitivity list for simulating RTL. They don't have to be there for synthesis though.
|
|
|
|
|
Hey
I have a Sony VAIO that came with a 120GB HDD however this has given up the ghost so I have bought a 250GB drive. When I come to install all my Sony software it errors saying it is not the correct hardware setup.
Is there any way of tricking it into beleiving it is the correct system specification or do I need another identical 120GB drive if I wish to continue using my Sony software?
Thanks
Dan
|
|
|
|
|
DanB1983 wrote: I have a Sony VAIO
I'm sorry to hear that. I have one too. (It hasn't been all that bad, it's just that I'm so mad at Sony that I won't likely buy anything from them ever again. And I have a ton of Sony stuff. But that's another thread.)
DanB1983 wrote: install all my Sony software
What does that mean, exactly? If you are using a "recovery" CD that came with the machine, I doubt there's much hope. You would really need to trick it, as you said, but I don't know how to do that.
I was able to replace my hard drive with a larger one, but didn't reinstall anything. Rather I copied the old disk contents to the new one. Actually a friend did that part for me, I believe using Norton Ghost or similar. That's probably not an option for you, since it sounds like the HDD failed. Probably the easiest is to buy a 120GB drive and try it with that. If that doesn't work, return the 120 GB drive.
You could also try asking Sony support from the web site. I don't recommend that, however, based on the worthless responses I have received from them.
Sorry to bear such bad news. I wish you luck with this!
BDF
|
|
|
|
|
Cheers - I tried the ghost thing hoping the 120gb drive would hold out to copy but it wouldnt - all the data is backed up so its not all bad - its just the apps I need - oh well time to get the wallet out for some new software :P
Dan
|
|
|
|
|
Hi all ,
I have a (DVD 8xdvd+R DL)
When I try to Burn some thing with Nero then a error is occured ---
Sorry,your complation cannot written on this kind of
disc. Please insert a disc of the correct type or modify
the setting of your compilation to make it compatible
with the current disc.
I have a DVD drive install in my PC.
Please give me a proper setting for this problem.
Thanks for This.
nilesh
|
|
|
|
|
You need a DVD burner that can burn dual layer DVDs. Saying you "have a dvd drive" is beyond pointless when you don't provide additional information regarding its capabilities. Is it just a reader, or is it a burner too? Does it burn dual-layer DVDs? What's the meaning of liquid soap? What's the difference between an orange? If you went into the woods alone and asked the same question but nobody heard you, would you still sound like an idiot?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
John Simmons / outlaw programmer wrote: If you went into the woods alone and asked the same question but nobody heard you, would you still sound like an idiot?
Brilliant!!!!!!111one111
--
You have to explain to them [VB coders] what you mean by "typed". their first response is likely to be something like, "Of course my code is typed. Do you think i magically project it onto the screen with the power of my mind?" --- John Simmons / outlaw programmer
|
|
|
|
|
I want to get the WiFi information (eg. signal strength) from code (eg. C++, C#).
OS may be XP, CE5.0 or above.
I know it can be related to ndisuio.
Where can I get more coding information?
Thanks!
|
|
|
|
|
I have a Windows 2000 server with 15 workstations connected to it via a domain. The server has 2 Network cards both Intel Pro 1000 MT Gigabit Ethernet Adapter - Onboard. The network speed used to be 1000.0mbps on each card but suddenly fell to 100.0mbps slowing the entire network. What could be the cause and how can it be rectified? The server is a Dell.
|
|
|
|
|
One/both of the cards are defective? Have you tried re-booting it? Have you looked at each NICs properties and made sure that the speed is either "auto" or "1gb"?
On-board NICs have always been kind of flaky (regardless of what motherboard you might happen to mention). If it's a Dell, I'd contact their customer disservice department.
For what it's worth, I disable on-board NICs and insert add-on cards. This way, a repair consists of replacing the add-on card instead of completely dismantling the system itself to replace the motherboard. Besides, it's cheaper to maintain a supply of spare NICs than a supply of spare motherboards.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
You must have a switch / router in the network, you haven't recently replaced / reconfigured it have you? Have you tried connecting a workstation directly to the server to see what speed you can get?
Peter
"Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."
|
|
|
|
|
It's a copper network, right? In that case, check the cabling as well. 1000 Base T uses all four pairs, and if auto-configuration is on, damage to one pair can cause the network to fall back to 100 MBit/s.
Cheers,
Sebastian
--
"If it was two men, the non-driver would have challenged the driver to simply crash through the gates. The macho image thing, you know." - Marc Clifton
|
|
|
|
|
Hi,
I'm trying to find a way to access ACPI from within C#.
I want to read thermal zone _TMP property. I've searched the web, and found references to acpi.sys driver. This should be able to get the thermal information, but I can't find a way how to read it.
Does anyone have any experience with accessing ACPI from C#?
Does anyone perhaps know of some API or so to access the ACPI info?
Any help would be appreciated!
Tim
|
|
|
|
|
I'm also searching how to get CPU's temprature via ACPI.SYS, but there is no documentation at least on MSDN. you can try to read the open source code - Linux 2.6.20 ACPI Driver .
|
|
|
|