From: SMTP%"rick@rdperf.com" 4-NOV-1997 16:13:48.91 To: SMTP%"Peter_Scott@emass.com" CC: NTFSD, NTDEV,RICK Subj: [ntdev] Opening a file by File ID Return-Path: owner-ntdev@atria.com Received: by arisia.gce.com (UCX V4.1-12C, OpenVMS V7.1 VAX); Tue, 4 Nov 1997 16:10:28 -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 XAA09883 for ; Mon, 3 Nov 1997 23:18:56 -0500 (EST) Received: by gw.atria.com id Mon, 3 Nov 1997 19:01:09 -0500 Received: from SPIA by gw.atria.com id Mon, 3 Nov 1997 19:00:58 -0500 From: rick@rdperf.com Date: Mon, 3 Nov 1997 15:38:32 -0800 Message-Id: <97110315383238@rdperf.com> To: Peter_Scott@emass.com, ntfsd@atria.com, ntdev@atria.com Subject: [ntdev] Opening a file by File ID X-VMS-To: SMTP%"Peter_Scott@emass.com" X-VMS-Cc: NTFSD, NTDEV,RICK Sender: owner-ntdev@atria.com Precedence: bulk >Pete Scott wrote: > >When opening a file by file id (IRP_MJ_CREATE with the FILE_OPEN_BY_FILE_ID >option set), does anyone know where the file id is buried? Thanks in >advance. > I assume from the information in the section on ZwCreateFile in the DDK documentation that the filename would be constructed something like: char *file_id_ptr_1, *file_id_ptr_2; strcpy (filename, devicename); file_id_ptr_1 = &filename[strlen (filename)]; file_id_ptr_2 = &file_id; for (i = 0; i < 8; i++) file_id_ptr_1[i] = file_id_ptr_2[i]; file_id_ptr_1[i] = 0; This is based on the following writeup under the CreateOptions Flags: FILE_OPEN_BY_FILE_ID The file name contains the name of a device and a 64-bit ID to be used to open the file. This flag is irrelevant to device and intermediate drivers. However, I would like to know how to open a file by File ID from usermode (win32 call - possibly CreateFile). I need to know the correct parameters / flags. Rick Cadruvi R&D Performance Group, Inc. 1180 E Patricia #102 Simi Valley, CA 93065 rick@rdperf.com - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [ To unsubscribe, send email to ntdev-request@atria.com with body UNSUBSCRIBE (the subject is ignored). ]