delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2002/01/23/13:29:19

Mailing-List: contact cygwin-apps-help AT cygwin DOT com; run by ezmlm
Sender: cygwin-apps-owner AT cygwin DOT com
List-Subscribe: <mailto:cygwin-apps-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-apps/>
List-Post: <mailto:cygwin-apps AT cygwin DOT com>
List-Help: <mailto:cygwin-apps-help AT cygwin DOT com>, <http://sources.redhat.com/lists.html#faqs>
Delivered-To: mailing list cygwin-apps AT cygwin DOT com
Date: Wed, 23 Jan 2002 13:28:41 -0500
From: Christopher Faylor <cygwin AT cygwin DOT com>
To: cygwin-apps AT cygwin DOT com
Cc: cygwin AT cygwin DOT com
Subject: Re: touch
Message-ID: <20020123182841.GB16029@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin-apps AT cygwin DOT com, cygwin AT cygwin DOT com
References: <200201231825 DOT g0NIPKa09236 AT abrell DOT ac DOT upc DOT es>
Mime-Version: 1.0
In-Reply-To: <200201231825.g0NIPKa09236@abrell.ac.upc.es>
User-Agent: Mutt/1.3.23.1i

Wrong mailing list.  Redirected.

cgf

On Wed, Jan 23, 2002 at 07:25:20PM +0100, Ivan Martel Perez wrote:
>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

-- 
Please do not send me personal email with cygwin questions.
Use the resources at http://cygwin.com/ .

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019