In Peter's program, the WINMAIN function will need to have an added BYVAL in tthe parameters here:
FUNCTION WINMAIN ... BYVAL CmdLine AS ASCIIZ PTR, ...
Then it should compile and run in the current compilers.
Announcement
Collapse
No announcement yet.
Disk ID
Collapse
X
-
-
FWIW, searching win32API.INC will RARELY tell you how to get some piece of information.. it will tell you how to call the WinAPI function designed to do so - assuming you already know the name of that function.
Searching Google(r) will generally be more productive than searching any of the Windows' header files.
If you don't have a WinAPI reference, you can use the online version for free. You can start at http://msdn.microsoft.com/library/default.asp
Leave a comment:
-
Given what, wanting what?
Given a not-fully-qualified file name, get the drive letter whereon it resides?
Given a drive letter, get the [computername\\]volume name?
Given a computer name, find all drive letters available?
Leave a comment:
-
Disk ID
Is there standard syntax for recovering a drive ID from Windows?
Searching Win32API.inc has been unproductive so far.
Thanks.Tags: None
Leave a comment: