FbwfProtectVolume (fbwflib)
Last changed: -31.19.66.206

.
Summary
Enables write protection for a specified volume.

C# Signature:

[DllImport("fbwflib.dll", SetLastError=true)]
[return: MarshalAs(UnmanagedType.U4)]
static extern uint FbwfProtectVolume(
     [In] [MarshalAs(UnmanagedType.LPWStr)]
     string volume);

VB Signature:

Declare Function FbwfProtectVolume Lib "fbwflib.dll" (TODO) As TODO

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

Code is tested on Windows Embedded Standard 7 32bit.

Tips & Tricks:

The "volume" parameter will not accept the "normal" drive letters (e.g. "C:"). It has to be something like this "\Device\HarddiskVolume1\". The right string can be checked using "diskpart".

Sample Code:

Please add some!

Documentation