From: SMTP%"frank@canary.cs.ucla.edu" 5-JAN-1998 16:59:27.06 To: yogendra K chauhan , ntdev@atria.com CC: Subj: [ntdev] physical sector read from hard disk Return-Path: owner-ntdev@atria.com Received: by arisia.gce.com (UCX V4.1-12C, OpenVMS V7.1 VAX); Mon, 5 Jan 1998 16:58:42 -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 QAA03506 for ; Mon, 5 Jan 1998 16:54:26 -0500 (EST) Received: by gw.atria.com id Mon, 5 Jan 1998 12:32:05 -0500 Received: from mailman.cs.ucla.edu by gw.atria.com id Mon, 5 Jan 1998 12:31:59 -0500 Received: from nitro.cs.ucla.edu (nitro.cs.ucla.edu [131.179.17.9]) by mailman.cs.ucla.edu (UCLACS-3.0) with SMTP id JAA20589; Mon, 5 Jan 1998 09:31:55 -0800 (PST) Received: from canary.cs.ucla.edu by nitro.cs.ucla.edu (SMI-8.6/SMI-SVR4) id JAA03761; Mon, 5 Jan 1998 09:31:54 -0800 Received: by canary.cs.ucla.edu (SMI-8.6/SMI-SVR4) id JAA29275; Mon, 5 Jan 1998 09:31:46 -0800 Date: Mon, 5 Jan 1998 09:31:46 -0800 Message-Id: <199801051731.JAA29275@canary.cs.ucla.edu> From: Frank Fabbrocino MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: yogendra K chauhan , ntdev@atria.com Subject: [ntdev] physical sector read from hard disk X-Mailer: VM 6.32 under Emacs 19.34.2 Sender: owner-ntdev@atria.com Precedence: bulk X-Majordomo-Taboo: ntdev Basically, you need to do something like: CreateFile( "\\\\.\\C:", ( GENERIC_READ | GENERIC_WRITE ), ( FILE_SHARE_READ | FILE_SHARE_WRITE ), NULL, OPEN_EXISTING, FILE_FLAG_NO_BUFFERING, NULL ); which gives you back a handle which you can then use to do reads and writes in integral numbers of sectors. Just read the docs on CreateFile(), it's in there. Or email me if you need help. Later, Frank - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [ To unsubscribe, send email to ntdev-request@atria.com with body UNSUBSCRIBE (the subject is ignored). ]