Solved

Availability of bios.h on the net

Posted on 2001-06-03
11
3,496 Views
Last Modified: 2007-11-27
Hello. I need urgently to find a location from where i can download bios.h and vwin32.h. This is to be able to use _bios_disk to format a disk so that it is unreadable in dos.I want to format a disk somehow in win98 so that it is unreadble in DOS.
if somebody can give me any code to do this (in vc or assembly) i would be very grateful.
ps: I want to program this in vc++. I have already found out DeviceIoControl and _bios_disk but these require the bios.h . Thanks.
ps: Thanks sunbow, can u please suggest the code for this at snb2000@rediffmail.com
0
Comment
Question by:snb2001
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
11 Comments
 
LVL 49

Expert Comment

by:dbrunton
ID: 6151687
Surely that file comes with vc++ ?

It comes with Borland's Turbo C.
0
 
LVL 4

Expert Comment

by:prashant_n_mhatre
ID: 6153238
Yeah..I agree with dbrunton
Also it comes with Watcom C/C++ (bios.h)

You may get source code at(may not useful to you):

(bios.h) ==>

http://minnie.tuhs.org/FreeBSD-srctree/newsrc/i386/include/pc/bios.h.html

(vwin32.h) ==>

http://src.openresources.com/debian/src/libs/HTML/S/v1_1.17.orig%20v1-1.17.orig%20includew%20v%20vwin32.h.html#35

I'll suggest to download Borland C++ Builder (command line tools)from

http://www.borland.com

Thanks
0
 
LVL 24

Expert Comment

by:SunBow
ID: 6153335
ditto....  (btw: M$.Win does 'like' to permit user to access low level)
On Web, try CodeGuru, ex.:
http://www.codeguru.com/cgi-bin/bbs/wt/showpost.pl?Board=vc&Number=243991
http://www.codeguru.com/cgi-bin/bbs/wt/showpost.pl?Board=vc&Number=244156

> "so that it is unreadable in dos"
Probably all you need do is address the placement of code instructions in the first sectors with your own code. Of course, do not make it bootable. Just remember, if you can write code to access differently, so can someone else, AND, many programs will either treat as virus or bad disk, adding confusion to whoever needs to run it.
0
The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

 
LVL 24

Expert Comment

by:SunBow
ID: 6153344
(oops, s/b:) ..btw: M$.Win does NOT 'like' to permit user to access low level code
0
 
LVL 4

Expert Comment

by:prashant_n_mhatre
ID: 6153507
I'll check it @my home PC.
0
 
LVL 4

Expert Comment

by:prashant_n_mhatre
ID: 6153508
I'll check those files @my home PC.
0
 
LVL 24

Expert Comment

by:SunBow
ID: 6160464
Here's some descriptors to beware of:
http://yoyo.cc.monash.edu.au/~davmac/doswin/dosdisk.htm

Another thought, depending on needs, many people simply get the hard drive (space/cheap) and linux, which is theoretically free code/OS.

Linux gives you formatting utilities, that are compatibly incompatible with dos/win. What I mean is that the format can end up recognizable to MSDOS in a way that it will more often reject any user attempt to write to disk, claiming there is something there, dunno what, some unknown OS, etc. So it (1) will not read, (2) will not write, (3) preserve your work, (4) be readable in an alternative shareable format.

Linux, btw, has capability to write back to dos diskette or fat16 HD, usually (depends on who's version you get), with commands very similar to dos, like dir and copy. Thus when in linux environment, you can move real dos files off the dos part of the machine, or back to dos machine again, without having to do any low-level programming. When in the linux formatted part, Dos will not read, but it'll know something is there so you can better avoid uninformed deletions.

For exercising an assembler to use bios, try on interrupt 13:
Function 05 format cylinder
Function 09 Adapt to foreign drives

Note, Windows environment does not want to permit you to access/run low-level I/O. It wants to maintain readability.

For protecting data, consider encrypting files, then decrypting. A good ZIP package may do that efficiently enough for your purpose.
0
 
LVL 24

Expert Comment

by:SunBow
ID: 6161115
With the time, to go on the cheap:
http://www.freesoftware.com/
0
 
LVL 24

Expert Comment

by:SunBow
ID: 6161135
Go here for 90% of the assembler code:
http://www.experts-exchange.com/jsp/qShow.jsp?ta=progsoftgen&qid=20129928
Note: you need not read disk, but should initialize buffer to zero
0
 
LVL 54

Expert Comment

by:nico5038
ID: 7466758

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
 - PAQ'd and pts removed
Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

Nic;o)
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 7506198
Finalized as proposed

modulo

Community Support Moderator
Experts Exchange
0

Featured Post

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
A short article about problems I had with the new location API and permissions in Marshmallow
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question