Sunday, March 10, 2019

HDD programming for protection purpose only

links:

http://www.winpatrol.com/download.html

https://docs.microsoft.com/en-us/sysinternals/downloads/sync

https://www.thoughtco.com/delphi-programming-4133475

http://zarko-gajic.iz.hr/delphi-programming-almanac-1998-2012/

...read the harddisk (HDD) serial number?
https://www.swissdelphicenter.ch/en/showcode.php?id=57

...get a list of all running Exe-Files/ Check if a Exe-File is running?
https://www.swissdelphicenter.ch/en/showcode.php?id=616

...enumerate the registry keys modified in a given time range?
https://www.swissdelphicenter.ch/en/showcode.php?id=2034

...detect if the program is running inside VMWare?
https://www.swissdelphicenter.ch/en/showcode.php?id=2369

...Determine if you are running inside Virtual PC?
https://www.swissdelphicenter.ch/en/showcode.php?id=1756

...obtain a list of loaded drivers under Windows ?
https://www.swissdelphicenter.ch/en/showcode.php?id=961

...get the CPU usage in percent on Windows ?
https://www.swissdelphicenter.ch/en/showcode.php?id=969

...list information about all users currently logged on to a workstation?
https://www.swissdelphicenter.ch/en/showcode.php?id=966

...get a list of users who are registered on the Workstation?
https://www.swissdelphicenter.ch/en/showcode.php?id=428

...get if logged in as administrator?
https://www.swissdelphicenter.ch/en/showcode.php?id=189


--------------------------------

...get handle and class name from the current mouse pos?
https://www.swissdelphicenter.ch/en/showcode.php?id=141

...change the priority class for a specified process?
https://www.swissdelphicenter.ch/en/showcode.php?id=387

...get process informations?
https://www.swissdelphicenter.ch/en/showcode.php?id=281

...enumerate processes and terminate them?
https://www.swissdelphicenter.ch/en/showcode.php?id=593

...patch a process?
https://www.swissdelphicenter.ch/en/showcode.php?id=1364

...get EXE path from window handle?
https://www.swissdelphicenter.ch/en/showcode.php?id=2010

...get the list of active process on a PC of my network?
https://www.swissdelphicenter.ch/en/showcode.php?id=2112

--------------------------------


...get windows, system, temporary directory?
https://www.swissdelphicenter.ch/en/showcode.php?id=144

...set/retrieve the Computer Name?
https://www.swissdelphicenter.ch/en/showcode.php?id=182

...get the current Username?
https://www.swissdelphicenter.ch/en/showcode.php?id=69

...get the CPU name/ speed?
https://www.swissdelphicenter.ch/en/showcode.php?id=994




https://www.experts-exchange.com/questions/21365835/How-to-check-whether-HDD-is-spinning-or-not-in-sleep-mode.html

* This Delphi code transitions INTO standby/hibernate mode.
http://www.swissdelphicenter.ch/torry/showcode.php?id=1401

* Standby transition (much simpler).
http://www.swissdelphicenter.ch/torry/showcode.php?id=862

http://delphi.icm.edu.pl/ftp/d40free/Pwrsav12.zip
PwrSave is a small component to prevent interruption of program execution due to Windows shutdown, hibernate, standby or user log off. When writing programs for data aqcuisition, control systems or servers these might be very undesired. This component will prevent these events and/or gives you the opportunity to take necessary action when such events occur.

* Shareware
http://www.3d2f.com/programs/1-807-powercontrol-download.shtml

* Scheduler approach.
http://www.sharewareconnection.com/shut-down-expert.htm

* Power-related shareware.
http://www.sharewareconnection.com/powrclik-suite.htm

* Shareware.
http://www.softwarevault.com/Remote-Computing/Powercontrol.xml

* using powercfg (which interprets the registry settings into something a bit more viewable and allows you to make changes)
http://www.msfn.org/board/index.php?act=ST&f=70&t=17081

* Auto Power-on
http://www.trialfiles.com/program_15845.html

* From the EE WinXP forum
http://www.experts-exchange.com/Operating_Systems/WinXP/Q_21209736.html

----------------
It was my hope that the links I posted would contain enough detail that an advanced Delphi developer would be able to tweak it to be able to glean the HDD status, rather than to just put it to sleep and wake it up.  I'm not that advanced.

====================
TExtendedForm : Form with power management and Drag'n'Drop for files
http://private.addcom.de/jakobsche/extform.exe

Detailed information about TExtetdedForm finds you in the file COMPONEN.HLP 
http://private.addcom.de/jakobsche/componen.hlp

========================
Pwrsav13 (upgraded version)
http://cc.borland.com/codecentral/ccweb.exe/listing?id=19527


--------------------

try this:
* create a relatively small file of data (src.txt)
* execute the following command, either directly, or through a batch file (.bat/.cmd).

copy /v /y src.txt tgt.txt

* check the execution time.  The /v flag should force the operating system to verify that the file has been written to the HDD successfully.


---------------------


No comments:

Post a Comment

Коментар: