Declaration
Automation:
void  OpenPhysicalDisk ( [in]   String  PhysicalDiskName, [in]   String  FriendlyName, [in]   bool  ReadOnly) ;
Native (C++):
HRESULT  OpenPhysicalDisk ( [in]   BSTR  PhysicalDiskName, [in]   BSTR  FriendlyName, [in]   VARIANT_BOOL  ReadOnly) ;
Parameters
PhysicalDiskNameThe string of form "\\.\PhysicalDriveN", where N is a physical disk number (starting from 0).FriendlyNameFriendly name. Used only in the editor. You may pass an empty string to this parameter.ReadOnlySpecify True to open a disk as read-only, or False otherwise.
Return Value
S_OK or standard OLE error code.
Remarks
Open physical disk.