1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: wntmsc.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
39 #include <sys\types.h>
43 #include <tools/svwin.h>
45 #pragma warning (push,1)
51 #include <tools/solar.h>
53 #include <tools/string.hxx>
55 //--------------------------------------------------------------------
57 #define FSYS_UNIX FALSE
59 #define DOS_DIRECT _A_SUBDIR
60 #define DOS_VOLUMEID 0x08
62 #define S_IFBLK 0x6000
64 #define setdrive(n,a) _chdrive(n)
65 #define GETDRIVE(n) (n = _getdrive())
67 #define dirent _WIN32_FIND_DATAA
68 #define d_name cFileName
69 #define d_type dwFileAttributes
71 #if defined (TCPP) || defined (tcpp)
75 #define _unlink unlink
76 #define _getcwd getcwd
77 #define _access access
82 _WIN32_FIND_DATAA aDirEnt
;
87 #define PATHDELIMITER ";"
88 #define DEFSTYLE FSYS_STYLE_NTFS
89 #define MKDIR( p ) mkdir( p )
90 #define CMP_LOWER(s) ( ByteString(s).ToLowerAscii() )
94 inline BOOL
DRIVE_EXISTS(char c
)
96 ByteString
aDriveRoot( c
);
98 return GetDriveType( aDriveRoot
.GetBuffer() ) > 1;
101 const char* TempDirImpl( char *pBuf
);
103 #define FSysFailOnErrorImpl()