* touch
@ 2002-01-23 12:16 Ivan Martel Perez
2002-01-23 13:53 ` touch Christopher Faylor
0 siblings, 1 reply; 2+ messages in thread
From: Ivan Martel Perez @ 2002-01-23 12:16 UTC (permalink / raw)
To: cygwin-apps
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: touch
2002-01-23 12:16 touch Ivan Martel Perez
@ 2002-01-23 13:53 ` Christopher Faylor
0 siblings, 0 replies; 2+ messages in thread
From: Christopher Faylor @ 2002-01-23 13:53 UTC (permalink / raw)
To: cygwin-apps; +Cc: cygwin
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/ .
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-01-23 18:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-23 12:16 touch Ivan Martel Perez
2002-01-23 13:53 ` touch Christopher Faylor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).