This is a multi-part message in MIME format.
------=_NextPart_000_000E_01C59E87.9A7AA670
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Hi All,
Not suer if volume management control codes are supported in DDK or not.
I'm doing IoBuildDeviceIoControlRequest with FSCTL_LOCK_VOLUME control
code and then got the returned value 0xc00000bb from IoCallDriver.
irp = IoBuildDeviceIoControlRequest(
FSCTL_LOCK_VOLUME,
deviceObj,
NULL,
0,
NULL,
0,
FALSE,
&event,
&ioStatus);
ntStatus = IoCallDriver(deviceObj, irp);
If the volume control codes are not supported in the DDK, is there any
way to lock and unlock volume with the similar implementation
(IoBuildDeviceIoControlRequest/IoCallDriver)? Or any suggestion?
Liangyao
------=_NextPart_000_000E_01C59E87.9A7AA670
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:Arial;
color:windowtext;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=3DEN-US link=3Dblue vlink=3Dpurple>
<div class=3DSection1>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>Hi All,<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>Not suer if volume management control codes are supported =
in DDK
or not. I'm doing IoBuildDeviceIoControlRequest
with FSCTL_LOCK_VOLUME control code and then got the returned =
value
0xc00000bb from IoCallDriver.<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'> <o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'> irp =3D IoBuildDeviceIoControlRequest(<br>
&=
nbsp;FSCTL_LOCK_VOLUME,<br>
deviceObj,<br>
=
NULL,<br>
=
0,<br>
=
NULL,<br>
=
0,<br>
=
FALSE,<br>
&event,<br>
&ioStatus);<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'> ntStatus =3D IoCallDriver(deviceObj, =
irp);<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'> <o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>If the volume control codes are not supported in the DDK, is =
there any
way to lock and unlock volume with the similar implementation
(IoBuildDeviceIoControlRequest/IoCallDriver)? Or any =
suggestion?<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Liangyao<o:p></o:p></span></font></p>
</div>
</body>
</html>
------=_NextPart_000_000E_01C59E87.9A7AA670--