|
|
|
#1
|
||||
|
||||
|
www.msdn.com
information is also in the win32api that comes with most compilers, and can be found relatively easily with google - its size varies from 12mb upwards, and is also included in some of the microsoft sdk's etc.. Searching for 'GetDriveType' might have also helped, most win32 api's have an A at the end (signifying Ansi 'version' of the code) or a W (signifying unicode/widechar 'version' of the code) The GetDriveType function determines whether a disk drive is a removable, fixed, CD-ROM, RAM disk, or network drive. UINT GetDriveType( LPCTSTR lpRootPathName // address of root path ); Parameters lpRootPathName Points to a null-terminated string that specifies the root directory of the disk to return information about. If lpRootPathName is NULL, the function uses the root of the current directory. Return Values The return value specifies the type of drive. It can be one of the following values: Value Meaning 0 The drive type cannot be determined. 1 The root directory does not exist. DRIVE_REMOVABLE The drive can be removed from the drive. DRIVE_FIXED The disk cannot be removed from the drive. DRIVE_REMOTE The drive is a remote (network) drive. DRIVE_CDROM The drive is a CD-ROM drive. DRIVE_RAMDISK The drive is a RAM disk. the DRIVE_* are equates.. and its really 0,1,2,3,4,5,6 (5 being cdrom, dvd is also 'cdrom') hope that helps, happy googling
__________________
bleh DO NOT PM me with questions, leave that in the forums...ESPECIALLY if i dont know you... |
| Sponsored Links |
|
#2
|
|||
|
|||
|
So if i understand, this function tell me if a cd is present or not ?
|
|
#3
|
|||
|
|||
|
Well, no.
For GetDriveTypeA, you give as input the name of a drive, and then it tells you what type of drive it is (i.e CD Drive, Hard Drive etc...)
__________________
Sanity is for the weak. |
|
#4
|
|||
|
|||
|
ok, i understood, thanks.
So now i need to know when the program call this fonction,how could i do that ? I thought lots of thing but i didn't find something makable. |
|
#5
|
|||
|
|||
|
Any language has a way of calling API's like for example GetDriveTypeA.
If your using C/C++ look on how to include dll's into the program or how to call API's from dll files. |
|
#6
|
||||
|
||||
|
Also, see http://sta.c64.org/docs.html#win32api for a help file on the 32-bit Windows API.
__________________
Joe Forster/STA For more information, see the FileForums forum rules and the PC Games forum FAQ! Don't contact me via E-mail or PM to ask for help with anything other than patches (or software in general) done by me, otherwise your request may be deleted without any reply! Homepage: http://sta.c64.org, E-mail: [email protected]; for attachments, send compressed (ZIP or RAR) files only, otherwise your E-mail will bounce back! |
|
#7
|
|||
|
|||
|
Forbidden !!
Reverse Engineering is forbidden by law. I don´t know how hard it´s gonna be punished but u should know before starting.
Last edited by princcce; 06-04-2006 at 08:45. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| TO SPOOKY - I think boot cd does work without modchip. | NooK | PSX Games | 23 | 27-08-2001 10:18 |
| work - doesn't work | stephane | PSX Games | 0 | 20-07-2001 08:22 |
| PLZ HELP! my cdclone-copies only work on my computer. is this NORMAL? | buk | PC Games | 2 | 04-03-2001 14:23 |
| clonecd didnt work but i have the hardware.....grrrrrrr......can anyone help me????? | Smart | CD/DVD Software & Utilities | 3 | 12-01-2001 19:26 |
| What brand cd rw's work or don't work for burning games? | shawn | DC Games | 4 | 07-12-2000 00:58 |