From:	SMTP%"ajha@cc.mcafee.com"  7-NOV-1997 16:52:07.23
To:	ntfsd@atria.com ("'NTFSD'"), ntdev@atria.com ("'Ntdev@atria.com'"),        mor.naveh@kla-tencor.com (Mor Naveh)
CC:	
Subj:	[ntdev] Re: [ntfsd] Write-Protected removable media.

Return-Path: owner-ntfsd@atria.com
Received: by arisia.gce.com (UCX V4.1-12C, OpenVMS V7.1 VAX);
	Fri, 7 Nov 1997 16:43:37 -0500
Received: from gw.atria.com (gw.atria.com [192.88.237.2]) by mercury.mv.net (8.8.8/mem-971025) with SMTP id IAA26292 for <everhart@arisia.gce.com>; Fri, 7 Nov 1997 08:59:02 -0500 (EST)
Received: by gw.atria.com id <GAA08586@gw.atria.com> Fri, 7 Nov 1997 06:01:57 -0500    
Received: from ng.netgate.net by gw.atria.com id <GAA08578@gw.atria.com> Fri, 7 Nov 1997 06:01:53 -0500    
Received: from dragon.agatetech.com (d13.netgate.net [205.214.160.45])
	by ng.netgate.net (8.8.5/8.8.5) with SMTP id DAA15572
	for <ntfsd@atria.com>; Fri, 7 Nov 1997 03:03:33 -0800 (PST)
Received: from [127.0.0.1] by dragon.agatetech.com (NTMail 3.02.13) with ESMTP id ra004775 for <ntfsd@atria.com>; Fri, 7 Nov 1997 03:00:54 +0000
Received: from gw.atria.com (gw.atria.com [192.88.237.2])
	by ng.netgate.net (8.8.5/8.8.5) with SMTP id WAA20194
	for <niraj@agatetech.com>; Thu, 6 Nov 1997 22:47:38 -0800 (PST)
Received: by gw.atria.com id <UAA16456@gw.atria.com> Thu, 6 Nov 1997 20:51:43 -0500    
Received: from cc.mcafee.com by gw.atria.com id <UAA16437@gw.atria.com> Thu, 6 Nov 1997 20:51:36 -0500    
Received: from Connect2 Message Router by cc.mcafee.com
	via Connect2-SMTP 4.30A; Thu, 6 Nov 1997 18:52:18 -0500
Message-ID: <06AA353101D22D00@cc.mcafee.com>
Date: Thu, 6 Nov 1997 17:54:00 -0500
From: Ashutosh Jha <ajha@cc.mcafee.com>
Organization: Mcafee
To: ntfsd@atria.com ("'NTFSD'"), ntdev@atria.com ("'Ntdev@atria.com'"),
        mor.naveh@kla-tencor.com (Mor Naveh)
Subject: [ntdev] Re: [ntfsd] Write-Protected removable media.
MIME-Version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-disposition: inline
Content-transfer-encoding: 7bit
X-Mailer: Connect2-SMTP 4.30A MHS/SMF to SMTP Gateway
Sender: owner-ntfsd@atria.com
Precedence: bulk

     First find that Media is present or not by sending 
     IOCTL_DISK_CHECK_VERIFY.
     
     If Ioctl succeeds that means media is present.
     
     
     After that try to open the volume/file asking for write permission. If 
media is write protected then open will fail.


     Hope it helps,
     -Ashutosh


______________________________ Reply Separator _________________________________
Subject: [ntfsd] Write-Protected removable media.
Author:  Mor.Naveh@kla-tencor.com (Mor Naveh) at MHS
Date:    11/6/97 10:40 AM


Hi,
     
I'm (still) writing a filter to monitor access to the floppy device.
     
Does anyone know how can I tell if the media is write protected without 
pooping up a system message (the 'Abort - Retry - Ignore' thing) ?
     
Thanks.
Mor
Mor Naveh
K
Tel: 972-9-9554413
Mor.Naveh@KLA-Tencor.com
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[ To unsubscribe, send email to ntfsd-request@atria.com with body 
UNSUBSCRIBE (the subject is ignored). ]
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[ To unsubscribe, send email to ntdev-request@atria.com with body
UNSUBSCRIBE (the subject is ignored). ]

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[ To unsubscribe, send email to ntfsd-request@atria.com with body
UNSUBSCRIBE (the subject is ignored). ]