CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 1999
    Location
    BELGIUM
    Posts
    14

    Win 3.11 GetDriveInfo



    Hi,


    i have a problem with with the GetDriveInfo() Function under 16 Bit.

    Under win95/98/NT the function returns DRIVE_CDROM. So i can recognise

    the right type of the drive.

    Under Win 3.0/3.11 i get only DRIVE_REMOTE, which means the same as it

    would be a network drive.

    I assume that there is another function or trick, how to get the right

    information, because the filemanager under Win 3.11 shows a CD-ROM Icon

    for the CD-Drive.


    Can anybody help me?


    Ciao, and thanks in forward,


    Ric

  2. #2
    Join Date
    Apr 1999
    Posts
    5

    Re: Win 3.11 GetDriveInfo



    I'm not sure about this, but it's probably more involved than just a single

    function call. Remember that the Windows 3.x API was developed before CD-

    Drives became as popular as they are now (remember, Windows 3.x was shipping on

    diskettes, not CD-ROM!). At that time, there wasn't really a compelling reason

    to write a function that returned whether the remote drive is a CD-ROM.


    I recall seeing some code that determined whether the remote drive was a CD-

    Drive, but I can't remember where.


    Regards,


    Paul McKenzie

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured