Q:
Message: 5
Subject: Re: Raw disk sector access on Windows - how?
From: "Thomas Tempelmann" <[EMAIL PROTECTED]>
Date: Wed, 29 Mar 2006 01:07:52 +0200
normal file api? but how do i even address a drive on that level? it
can't have a drive letter, and one cannot open a drive letter as a
file anyways.
R:
Raw disk sector access on Windows
All of the functions in the Windows API are documented in the Windows
Development/Platform SDK section of the MSDN library on the Microsoft Web
site, at http://msdn.microsoft.com/library, although the terminology used
and the code samples are targeted at the C++ developer.
...
The official VB-friendly declarations for many of the more commonly used API
functions can be found in the win32api.txt file, which is included with a
viewer in the Developer Editions of Office 972002, Visual Basic 6 and is
available for download from http://support.microsoft.com/?kbid=178020.
You'll notice from the download page that the file hasn't been updated for
some time (Last Review :March 11, 2005).
...
Most API functions are passed constants to modify their behavior or specify
the type of value to return.
...
Although many of the constants are included in the win32api.txt file
mentioned earlier, it does not include constants added for recent versions
of Windows. The best way to find these values is by downloading and
installing the core Platform SDK from
http://www.microsoft.com/msdownload/platformsdk/sdkupdate/. This includes
all the C++ header files that were used to build the DLLs, in a subdirectory
called \include.
...
Win File System Overview:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/ntfs_file_system.asp
...
example of low level access, to change the volume serial number....
http://www.codeproject.com/system/change_drive_sn.asp
and links from the codeproject article take you to MS Q's (knowledge base
article)
...
Getting you into the MSDN. This link (note the browse trail at the top )
takes you to Disk Management Control Codes
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/disk_management_control_codes.asp
If you nav backward along the "nav link" { MSDN Home > MSDN Library >
Win32 and COM Development > System Services > File Services > File
Systems > Disk Management > Disk Management Reference}
You may discover the api call you are seeking.
----------
_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfee®
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>