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

From: [at]} <Koen>
Date: Wed, 9 Nov 2011 01:15:09 +0100


Hello Helmut,

    PROCEDURE Do*;
        VAR res: INTEGER; name: ARRAY 60 OF CHAR;
    BEGIN
        res := WinApi.GetVolumeInformationW("c:\", NIL, 0, NIL, NIL, NIL, name, LEN(name));
        StdLog.String(name); StdLog.Ln
    END Do;

This prints "NTFS" on my system

Brgds,
Koen.


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 Wed Nov 09 2011 - 01:15:09 UTC

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