Hi every one
Please help me:
How can i found, if there is any disk in a removable drive (floppy drive or cd drive).
I am programming with C++Builder. If there is any Win API function for this.
Thank you very much.
hkiani
0
Newbie Poster
Recommended Answers
Jump to Post#include <stdio.h> #include <stdlib.h> #include <dos.h> #include <memory.h> #include "fdc.h" int main() { int i, j, drive, head, track, start_sect, max_sect, type; int times; long size; int sector; char buf[BUFSIZ * 9 + 1]; char buf1[BUFSIZ * 9 + 1]; int fd; size = (long)(360l * 1024l); …
All 4 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.