News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Undefined symbols etc.

Started by Magnum, November 08, 2011, 01:54:36 PM

Previous topic - Next topic

Magnum

It worked with a CD in.

I will check your work.

Thanks.
Have a great day,
                         Andy

dedndave

yah - that's how it is written
if the media is not present, it does not check the drive type

i was thinking of writing a function that returns
EAX = drive status (i.e. valid/invalid drive letter)
ECX = media type/status
EDX = drive type

a lot depends on what you want to do with it
if you give me specific info about what you are trying to accomplish, we can make it do what you like

Magnum

I use a batch file to backup files to various drives.

I run into problems when it tries to copy to a CD drive.

That is the reason for the program.

Have a great day,
                         Andy

ragdog

GET_MEDIA_TYPES is this

http://msdn.microsoft.com/en-us/library/windows/desktop/aa363264%28v=vs.85%29.aspx


typedef struct _GET_MEDIA_TYPES {
  DWORD             DeviceType;
  DWORD             MediaInfoCount;
  DEVICE_MEDIA_INFO MediaInfo[1];
} GET_MEDIA_TYPES, *PGET_MEDIA_TYPES;


GET_MEDIA_TYPES struct
DeviceType DWORD ?
MediaInfoCount DWORD ?
MediaInfo DEVICE_MEDIA_INFO 1 dup (<>)
GET_MEDIA_TYPES ends

PGET_MEDIA_TYPES typedef ptr GET_MEDIA_TYPES



i have convert all used structur´s what i use in my code from Msdn or sdk  to masm32

But i cannot send my complete project this is not open source sorry
I can only post source snipped from it.

Sorry