|
I'm not sure what you're trying to do, but if you just need signatures for the win32 API try www.pinvoke.net They have signatures for most if not all win32 apis.
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
|
|
|
|
|
A nice way to look for hardware changes is to use Windows Management Instrumentations (WMI).
.net has the System.Management namespace for WMI interaction. You might use ManagementClass and ObjectQuery for searching specific hardware components.
Hope this info helps
|
|
|
|
|
This is no joke!
For a second time in past two years I have this weird problem.
My internal hard drive (dynamic disk with mirrors) gradually disappeared from the BIOS.
By gradually I mean sometime it was there and another time it was not.
The Logical Disk Management (win2000) would report dynamic disk missing and reactivation would say the disk cannot be located.
During the windows startup I would get two consecutive short beeps at random until the windows starts – maybe two or five of them.
I had this happened before ( different box, same OS) and the temporary solution was to take the drive out of the machine (!) and place it vertically next to it! I am not kidding!
So, last night I took the drive out of the box (vertical mount) and turn the power on.
Did not touch any cabling!
Guess what - it loaded and RAID started regenerating my mirrors!
I put it back into the box and it worked just peachy the whole day.
Today – zilch, same old problem - disk is just not there!
Of course the disk is out of warranty and the vendor could careless about my problem.
In reality I do not want to spend much time troubleshooting this, but this is a second time around and I feel the hard drive should last past the warranty period.
Before I toss this worthless drive – can anybody tell me what could be wrong and where are these beeps coming from.
My best guess is that the drive has some temperature related issues.
Or maybe “consumer grade “ run of the mill drives are not suitable for RAID – the forced or hidden regeneration may be too stressful.
Thanks for reading. Any constructive comments are appreciated, just please do not waste my time telling me that drives are cheap and to buy a new one.
Vaclav
|
|
|
|
|
The beeps are most likely your RAID controller or BIOS reporting that it can't see the drive you've configured.
I'd check and replace the cables. They do fail if damaged, and often intermittent connections occur where it works in a certain range of temperature or certain positions, but not others.
Likewise, electronics can fail when subjected to shock or high temperatures. There can also be poor joints in the soldered board which eventually fail with vibration, shock or temperature.
If it's mirrored, and replacing the cables doesn't help, toss the drive. It just isn't worth investigating the problem. If it's bad electronics or weak joints it can't be fixed without replacing the drive's controller board anyway.
Consumer drives are pretty much identical to 'enterprise' ones, except that the enterprise drives generally have write-back buffers disabled (consumer drives will report that they have written data when they have written it to the on-drive cache, not actually to the disk itself, so you can lose data on losing power that the OS thought was written) and also have aggressive error-recovery disabled. Consumer drives will re-read sectors that have errors repeatedly, leading to long delays if there is a problem, but it might be able to recover the data. Enterprise drives are intended for use in mirrored or parity-protected arrays, the system can recover the data from other drives, so the recovery is much reduced so the OS or RAID controller can get on with doing that, then replace the bad sector.
Drives often do last quite a long time. We recently had to replace one that had been in service for six years in a RAID array in a server - this was a setup with Windows 2000 Server mirroring the data on consumer IDE drives. Unfortunately it's common for drives in the same batch to fail at more-or-less the same time, if they haven't been subjected to different stresses. Some administrators get drives from different batches or even different manufacturers for this reason.
Sometimes, though, drives fail much sooner. In a computer I bought for my parents in 2001, the disk failed in less than three months. (It was replaced under warranty by the manufacturer.)
DoEvents: Generating unexpected recursion since 1991
|
|
|
|
|
Thanks for the comments.
I run two development machines side by side and some of the drives are "semiopen", one in the bottom of "standard" IDE 3 slots horizontal bay and the other has the drive attached vertically (front of the box). All together I have five hard drives and have noticed that they get rather hot. You cannot keep your hand on it for long.
I am beginning to believe that is my problem - poor air flow around drives.
I have used some swappable drives in past and they have rather beefy cases.
Maybe some small fan would help. I’ll try that.
You have mentioned possibly bad cable. I went that route with my other problem - moved IDE ports and cables. But eventually tossed the 80GB drive.
I think this one is on the way to the wherever bad drives go.
But you have answered my main question – where does the beep comes from, thanks.
Thanks
PS. I forgot to mention - I use OS RAID.
|
|
|
|
|
|
|
Hi
Iam designing a receipt using Microsoft OPOS and VB.NET2008. The receipt is to generated through a thermal/dotmatrix printer. I have to provide a feature to the user by which he can stipulate the nos. of columns to be printed eg., 5,10,12.
How will I provide column generation function dynamically ? I have previously hardcoded my columns in the program.
Also how can the column names(col. header) generated dynamically? I will only provide names eg.(1,"SRL NO.)(2,"NAME")etc.
I appreciate any help in this regard.
Best Wishes ....... ARIJIT
|
|
|
|
|
Hi I am new in windows driver development . can any one tell how can i start it.
Ashish
|
|
|
|
|
This is a good article to get you started - it's written in C and outlines the basics of NT kernel programming.
Hope this helps,
--Perspx
"Nowadays, security guys break the Mac every single day. Every single day, they come out with a total exploit, your machine can be taken over totally. I dare anybody to do that once a month on the Windows machine." - Bill Gates
BSoD during a Win98 presentation
|
|
|
|
|
We need to set up monitors throughout a hospital that display information to the nurses. This will be like the flight information displays in an airport (just a display, no interaction through keyboard or mouse). Each display will have different information and there could be quite a few of these displays (Multiple per floor).
Does anyone have suggestions or relevant experience on what is the most economical way to do this?
You could have a PC per display, but this seems like overkill.
The application that displays the information has a small resource footprint, so many could run on one PC.
|
|
|
|
|
I can think of a couple of different approaches.
1. Get Samsung 940 UX monitors, they get the videosignal over USB. And buy USB over CAT5 extenders, for example Gefen[^].
Pros: You can service really many monitors from one server in the server hall.
Cons: Price of the USB extenders. Might be negotiable if you buy many.
2. Same approach but with VGA extenders and normal monitors.
Cons: Cannot connect as many monitors per Server
Pros: VGA extenders are cheaper, but not cheap.
3. Thin clients
Pros: This might actually be the cheapest solution.
Cons: Not as tamperproof as the thinclient has to be close to the monitor. Administration.
|
|
|
|
|
Isn't usb bandwidth limited to 1024x768x16? That'd require running almost any monitor below native resolution and really sucking the display downward.
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
|
|
|
|
|
I don't know anything about the compression algorithms used, but there is no apparent speed problems in normal office use.
So for the use similar to flight information displays I can't see how they can be to slow.
Well, I surely wouldn't use a USB monitor for gaming, movies or 3D modeling.
|
|
|
|
|
Well, the question is: how many displays should the software handle?
If some processing power is requested, or you want to keep the cabling at a low level, you could look into JackPCs, e.g. by ChipPC ((Website)[^]. There even are some version with dual-display support.
Otherwise, you can always go for a Panel PC (one example, though not for your application, is an Apple iMac), which are even available to be built into control panels or other furniture.
If cost is everything, and the displays all will show the same info, go for a display multiplexer. (VGA multiplexer)
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 am interesting Device programming.
i am already seen C, C++.
i want to learn that technique. so, i was searching book about Device programm and i found below 3 book.
but i don't know these book fit me who is beginner.
1. Programming the Microsoft Windows Driver Model,
2. The Windows 2000 Device Driver Book : A Guide for Programmers 2/E
3. Writing Windows WDM Device Drivers ,
4. Microsoft Windows Internals(4/E)
and if you have other book, can recommend me, please let me know~
have a good day^^~
firstly, i am sorry, i am from korea.
and i am not good in wriitting english so please understand~
Thank you everyone~
modified on Tuesday, July 15, 2008 3:52 AM
|
|
|
|
|
The first book, by Oney, is generally considered the best book. It isnt a beginners bok, none of them are, they all require a very good understanding of C programming (C++ isnt used in the kernel so forget about it).
You might also prefer to use WDF rather than WDM, its easier, but as yet there are no books on it, just the DDK. Well, WDK these days.
Morality is indistinguishable from social proscription
|
|
|
|
|
fat_boy wrote: You might also prefer to use WDF rather than WDM, its easier, but as yet there are no books on it
Actually, there is Developing Drivers with Windows Driver Foundation by Penny Orwick and Guy Smith, published by Micorsoft Press in 2007.
Judy
|
|
|
|
|
JudyL_FL wrote: Actually, there is Developing Drivers with Windows Driver Foundation by Penny Orwick and Guy Smith, published by Micorsoft Press in 2007.
Is it any good?
Morality is indistinguishable from social proscription
|
|
|
|
|
As a reference book, it's pretty good. The driver team at MS always seems to produce much better stuff than the usual MS drek. I've put off buying it for my personal library since I was waiting for the OSR KMDF book to come out. However, that STILL isn't out yet, so I think I'm going to have to bite the bullet and get it. I'm tired of borrowing a friend's copy.
Judy
|
|
|
|
|
so, what book should i see?
firstly, i am sorry, i am from korea.
and i am not good in wriitting english so please understand~
Thank you everyone~
modified on Tuesday, July 15, 2008 7:01 AM
|
|
|
|
|
See my reply to fat_boy for a WDF book. There is no "one" book or a "starter" book for drivers. It's a complex subject and the best way to start is to learn how the OS operates internally.
Judy
|
|
|
|
|
I have "Linux Device drivers" ( Alessandro Rubini published by O'Reilly) but I have not opened it so I am of no help here.
Maybe someone else can comment on this book.
Vaclav
|
|
|
|
|
how can i check whether the audio driver installed or not(in pc) for my vc++ application?
Thnx,
Fedi
|
|
|
|
|
Take a look at setupdi functions. You can enumerate all the audio devices on the system , check their names, their status, and so on.
Morality is indistinguishable from social proscription
|
|
|
|
|