Thread: problem with NtCreateFile

  1. #1
    Registered User
    Join Date
    Mar 2005
    Posts
    69

    problem with NtCreateFile

    the return value is STATUS_EA_LIST_INCONSISTENT (0x80000014L)
    and if i assign ,to the last parameter,
    EALength * sizeof(FILE_FULL_EA_INFORMATION)
    the problem persists

    Code:
    //  us is a UNICODE_STRING with the filename
    
        HANDLE hFile;
        IO_STATUS_BLOCK IO;
        OBJECT_ATTRIBUTES oa;	
    	const ULONG EALength = 1024;
        FILE_FULL_EA_INFORMATION EA[EALength];
    
    	memset(&oa,0,sizeof(oa));
    	oa.ObjectName = &us;
    	oa.uLength = sizeof(OBJECT_ATTRIBUTES);
    
      int  ret = NtCreateFile(&hFile,FILE_LIST_DIRECTORY | FILE_TRAVERSE,&oa,&IO,0,0,FILE_SHARE_READ,FILE_OPEN,FILE_DIRECTORY_FILE,EA,EALength);
    ??

  2. #2
    Registered User
    Join Date
    Mar 2005
    Posts
    69
    it's all ok,the call works if the EA and EALength parameters are set to 0

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help understanding a problem
    By dnguyen1022 in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2009, 04:21 PM
  2. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 11:22 AM
  3. Someone having same problem with Code Block?
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2007, 08:38 AM
  4. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  5. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 06:54 PM