/** * WinPR: Windows Portable Runtime * File Functions * * Copyright 2015 Armin Novak * Copyright 2015 Thincast Technologies GmbH * Copyright 2016 David PHAM-VAN * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef WINPR_FILE_PRIV_H #define WINPR_FILE_PRIV_H #include #include #include #include #include #ifndef _WIN32 #include #include "../handle/handle.h" struct winpr_file { WINPR_HANDLE_DEF(); FILE* fp; char* lpFileName; DWORD dwOpenMode; DWORD dwShareMode; DWORD dwFlagsAndAttributes; LPSECURITY_ATTRIBUTES lpSecurityAttributes; DWORD dwCreationDisposition; HANDLE hTemplateFile; BOOL bLocked; }; typedef struct winpr_file WINPR_FILE; HANDLE_CREATOR *GetFileHandleCreator(void); UINT32 map_posix_err(int fs_errno); #endif /* _WIN32 */ #endif /* WINPR_FILE_PRIV_H */