hardware

Get Serial Number of Boot Drive and other info

…衆ロ難τιáo~ 提交于 2019-12-04 08:03:14
I am trying to get the serial number of the boot drive and I haven't figured out how to do it. I do understand that the partition =\= hard drive but I'd like the serial of the boot partition. This what I have so far: var searcher = new ManagementObjectSearcher("SELECT * FROM Win32_PhysicalMedia"); int i = 0; foreach (ManagementObject wmi_HD in searcher.Get()) { // get the hardware serial no. if (wmi_HD["SerialNumber"] == null) richTextBox1.Text += "None" + Environment.NewLine; else richTextBox1.Text += "Name: " + wmi_HD["Name"] + Environment.NewLine; richTextBox1.Text += "SerialNumber: " + wmi

By code, how can I send a hard disk drive to sleep

爱⌒轻易说出口 提交于 2019-12-04 06:55:42
I have lots of hard disk drives in my computer (7). When they are not used the power option send them to sleep after a while. But because everything makes a lot of noise I would like to send them to sleep when I want, not just after the default system timeout. On Windows (XP and up), preferably in C#, How can I send a disk to sleep by code? Thanks a lot in advance for your help... I do not know of the API to do this directly but there are tools that can do it. One that I have seen is Hard Disk Sleeper . I have not used it on my own machines so I cannot speak to its quality or effectiveness. It

Benefits and Hindrances of Regular Server Reboots [closed]

不想你离开。 提交于 2019-12-04 05:09:14
In the ears of working in multiple teams, I've met multiple infrastructure managers that instituted a policy of weekly server reboots. As a developer, I was always against the policy - it seems that this is a hack to work around software bugs and hardware instabilities, instead of correcting them. What are the people's opinions, positive and negative points regarding the policy? If you reboot your servers occasionally, you can be sure they will come back up. Though weekly sounds like a serious overkill, I have seen this problem on Linux machines with long uptimes. Someone didn't bother to set

How to get the temperature of motherboard of a PC (and other hardware statistics)?

天大地大妈咪最大 提交于 2019-12-04 03:56:01
问题 does any one know how to get the current motherboard, processor or HD temperature statistics? In GNU/Linux, I know I could use something like hddtemp or sensord to get the info, and then parse it... but in Windows: How can I do this? And, Can it be done with with C# or Java or any other hight level programming language? Thanks! 回答1: The problem with temperature and other monitoring sensors is that there is no common protocol on the hardware level, nor drivers allowing to retrieve that

How to get front and back camera's megapixel that is designed for android device?

穿精又带淫゛_ 提交于 2019-12-04 01:40:57
问题 How to identify front and back camera's Megapixel of an android device by using Android code? I had tried CameraInfo but am not getting megapixel. For example, To identify Model of device we are using this android.os.Build.MODEL . Likewise any method to identify Megapixel of front and back camera. Advance thanks for any help. If the device is "Videocon A53" features are (540x960 pixel) display and runs Android 4.1 Jelly Bean, 8-megapixel rear camera , 2-megapixel front-facing camera . Now i

Check if Android device has search hardware button

老子叫甜甜 提交于 2019-12-04 00:48:41
问题 I need help figuring out how to check if a device is equipped with the search hardware button or not. Is this possible? EDIT: I'm talking about finding out if the device has the search hardware button or not. Simple question. Each android device has a set of hardware buttons; menu, home button, back button, and search button. But some devices is only equipped with some of them, not all. EDIT 2: The reason why I ask is because I want to have a software button showing in my UI if the device is

VB.net Unique Hardware ID ideas

本小妞迷上赌 提交于 2019-12-03 22:46:16
问题 I was wondering if there would be anything else I could use in my Hardware ID protection that would make it much more unique. I am currently using Processor ID Volume ID MAC Address Graphics Card Name If you guys can provide source codes to anything else that would make it even more unique please tell me. 回答1: I will suggest using the HDD Serial Number instead of the Volume ID. The Volume ID will change if you format your HDD but the HDD Serial Number will not. http://addressof.com/blog

how to get hard disk serial number with php on localhost

。_饼干妹妹 提交于 2019-12-03 22:16:32
问题 is there a way i can get hard disk serial number or machine serial number with php or javascript on localhost ?? we can get it with following command in cmd wmic DISKDRIVE GET SerialNumber or machine serial number by this wmic bios get serialnumber is that possible with php or javascript ?? something in php <?php echo DISKDRIVE GET SerialNumber //** some thing like this on local host ?> Need is to give a project to Clint on local host, and i want no one to access it on other computer (in php)

Making use of sandy bridge's hardware true random number generator?

我怕爱的太早我们不能终老 提交于 2019-12-03 19:28:50
问题 I was wondering if there is a way to make use of the new hardware based true number generator found in intel's sandy bridge CPU? I read that intel's MKL (Math Kernel Library) exposes this functionality, but this requires the MKL suite and an intel complier, ending up pretty expensive. Is there another way to employ the hardware random number generator in my C++ code? For example a nice, header only library? 回答1: Intel has posted a manual, library, and code examples for the rdrand instruction

How can I write a Delphi program to control the CPU fan speed and monitor the temperature?

為{幸葍}努か 提交于 2019-12-03 16:33:17
I want to use Delphi to create a program that controls the fan speed of my computer and monitors the temperature. What API calls are involved in doing that? Are there any good code samples that you can share? You can use the WMI classes Win32_TemperatureProbe and Win32_Fan , from delphi you must import the Microsoft WMIScripting V1.x Library using Component->Import Component->Import type library->Next->"Select the library"->Next->Add unit to project->Finish. See this code. is just a simple example. program GetWMI_Info; {$APPTYPE CONSOLE} uses ActiveX, Variants, SysUtils, WbemScripting_TLB in '