This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: thunk createDirectory and createFile calls
- From: Corinna Vinschen <cygwin-patches at cygwin dot com>
- To: cygwin-patches at cygwin dot com
- Date: Fri, 14 Nov 2003 11:18:15 +0100
- Subject: Re: thunk createDirectory and createFile calls
- References: <3FB4A341.5070101@cygwin.com>
On Fri, Nov 14, 2003 at 08:41:21PM +1100, Robert Collins wrote:
> /* io.h
>
> Copyright 2003 Robert Collins <rbtcollins@hotmail.com>
> Copyright 2003 Ron Parker <rdparker@butlermfg.com>
>
> This file is part of Cygwin.
>
> This software is a copyrighted work licensed under the terms of the
> Cygwin license. Please consult the file "CYGWIN_LICENSE" for
> details. */
>
> #ifndef _IO_H_
> #define _IO_H_
>
> inline HANDLE
> cygwin_create_file (LPCTSTR file_name, DWORD access, DWORD share_mode,
> LPSECURITY_ATTRIBUTES sec_attr,
> DWORD disposition, DWORD flags,
> HANDLE template_file)
> {
> return CreateFileA(file_name, access, share_mode, sec_attr, disposition,
> flags, template_file);
> }
>
> inline
> BOOL cygwin_create_directory (LPCTSTR filename, LPSECURITY_ATTRIBUTES sec_attr)
> {
> return CreateDirectory(filename, sec_attr);
^^^^^^^^^^^^^^^
CreateDirectoryA?
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.