Category : Pascal Source Code
Archive   : TSPA3370.ZIP
Filename : TSUNTK.INT

 
Output of file : TSUNTK.INT contained in archive : TSPA3370.ZIP
(*
Timo Salmi UNiT K
A Turbo Pascal unit of MsDos 4.0+ specific routines
All rights reserved 26-Aug-92

This unit may be used and distributed freely for PRIVATE, NON-COMMERCIAL,
NON-INSTITUTIONAL purposes, provided it is not changed in any way. For
ANY other usage, such as use in a business enterprise or a university,
contact the author for the terms of registration.

The units are under development. Comments and contacts are solicited. If
you have any questions, please do not hesitate to use electronic mail for
communication.
InterNet address: [email protected] (preferred)
Bitnet address: [email protected]

The author shall not be liable to the user for any direct, indirect or
consequential loss arising from the use of, or inability to use, any unit,
program or file howsoever caused. No warranty is given that the units and
programs will work under all circumstances.

Timo Salmi
Professor of Accounting and Business Finance
Faculty of Accounting & Industrial Management; University of Vaasa
P.O. BOX 297, SF-65101 Vaasa, Finland
*)

unit TSUNTK;

(* ======================================================================= *)
interface
(* ======================================================================= *)

uses TSUNTB, { TSUNTK needs internally the number conversion routines }
{$IFDEF VER40}
TSUNT45,
{$ENDIF}
Dos;

(* Returns from which drive the system was booted, requires MsDos 4.0+,
else returns '.' *)
function BOOTDRFN : char;

(* Get disk serial number. Requires MsDos 4.0+.
Else, or on an error, returns an empty string
The default drive can be pointed to by using 0 *)
function GETSERFN (drive : char) : string;

(* Set disk serial number. Requires MsDos 4.0+.
Else, or on an error, sets the status. See TSUNTJ.TST for the codes
For safety allows the operation for drives A and B only *)
procedure SETSER (drive : char; serial : string; var status : integer);

(* A special get disk volume label. Requires MsDos 4.0+. *)
function GETVOLFN (drive : char) : string;



  3 Responses to “Category : Pascal Source Code
Archive   : TSPA3370.ZIP
Filename : TSUNTK.INT

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/