Re: [BLACKBOX] Summertime, wintertime, NTFS and FAT

From: [at]} <Romiras>
Date: Tue, 8 Nov 2011 16:31:44 +0200


Perhaps WMI will help you...
1. <http://msdn.microsoft.com/en-us/library/windows/desktop/aa394173%28v=vs.85%29.aspx> check-for-daylight-saving-time-with-wmi-on-vista-win7 <http://stackoverflow.com/questions/1797758/check-for-daylight-saving-time-with-wmi-on-vista-win7>
2. The Win32_LogicalDisk WMI class <http://msdn.microsoft.com/en-us/library/windows/desktop/aa394173%28v=vs.85%29.aspx> see FileSystem

How to work with WMI from Delphi: wmi-in-delphi-how-to-... <http://sergworks.wordpress.com/2009/12/23/wmi-in-delphi-how-to-enumerate-serial-ports-and-everything-in-windows/>
Embarcadero Delphi FAQ: Get System information from WMI <http://www.tek-tips.com/faqs.cfm?fid=7315>
You can build a DLL in external tools (VC++/GCC, FPC/GPC, ...) and import in BlackBox.


2011/11/8 Zinn, Helmut <Helmut.Zinn{([at]})nowhere.xy



Dear BlackBox users,

I always get some trouble after the system time changes between summertime and wintertime and vice versa.

I need two PROCEDUREs to solve my problems:

1.
PROCEDURE IsSummertime() : BOOLEAN;
BEGIN
        RETURN (* TRUE if system time is summertime -- FALSE if system time is wintertime *)
END IsSummertime;

2.
PROCEDURE IsNtfs(IN drive: ARRAY OF CHAR) : BOOLEAN;
BEGIN
        RETURN (* TRUE if the file system is NTFS -- FALSE if the file system is FAT *)
END IsNtfs;

Has someone a solution for those procedures?

Thank you very much.

Regards
Helmut Zinn
 
 

---- To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy


---- To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy
Received on Tue Nov 08 2011 - 15:31:44 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:10 UTC