This is the mail archive of the cygwin-patches@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]

Re: thunk createDirectory and createFile calls


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.


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