Is there's a number in windows like inode in linux?

This is a discussion on Is there's a number in windows like inode in linux? within the Windows Programming forums, part of the Platform Specific Boards category; hi guys, anyone know that the ntfs's file sytem struct? is there's a API or something other could let get ...

  1. #1
    Registered User
    Join Date
    Dec 2009
    Posts
    1

    Question Is there's a number in windows like inode in linux?

    hi guys,

    anyone know that the ntfs's file sytem struct? is there's a API or something other could let get this number? Or there is actually no such number in windows like inode in linux??

    any suggestion could be ok! thks!

  2. #2
    Registered User
    Join Date
    Mar 2007
    Posts
    416
    What are you trying to find out about a file/folder? Here is the Win32 file structure API File Management Functions (Windows).

    Look at the "Get" functions if you need information about the file/folder.

  3. #3
    'Allo, 'Allo, Allo
    Join Date
    Apr 2008
    Posts
    611
    NTFS stores a unique 8-byte reference number for each file. It's available on Vista+ by enumerating the directory files with GetFileInformationByHandleEx(<directoryHandle>, FileBothDirectoryInfo, ...) till it returns the file you're interested in, and otherwise since NT4 by NtQueryInformationFile(<fileHandle>, ..., FileInternalInformation);

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Thinking of upgrading to linux...
    By Yarin in forum General Discussions
    Replies: 37
    Last Post: 07-24-2009, 11:40 AM
  2. Issue w/ Guess My Number Program
    By mkylman in forum C++ Programming
    Replies: 5
    Last Post: 08-23-2007, 01:31 AM
  3. Windows -> Linux
    By misplaced in forum C++ Programming
    Replies: 6
    Last Post: 12-19-2004, 10:27 AM
  4. Number of words multiplied by the number of lines in Linux
    By sjalesho in forum Linux Programming
    Replies: 2
    Last Post: 11-20-2003, 02:25 PM
  5. FlashWindowEx not declared?
    By Aidman in forum Windows Programming
    Replies: 3
    Last Post: 05-17-2003, 02:58 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21