This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

touch


Hi all!

  I am trying to open a directory using Win32 API :

        DWORD n;
        int n1;
        char a[100+1];
        HANDLE h;

        h=CreateFile("c:\\bin\\cygwin",
                GENERIC_READ|GENERIC_WRITE,
                FILE_SHARE_READ,
                NULL,
                OPEN_EXISTING|OPEN_ALWAYS,
                FILE_FLAG_BACKUP_SEMANTICS,
                NULL);

        if(h==INVALID_HANDLE_VALUE) error();

I always get and invalid handle and the error string "Access 
denied". I've been trying some flag changes without results.

The program I'm writting is motivated because 'touch' does not
update directories.

Is there a way to enable 'touching' dirs?

Thanks a lot.

My system: Win98 SE FAT-32. 
DLL version: 1.3.6
Touch version: 4.1 fileutils


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]