blob: 821196eadce29eca44608c97bc61ce0e70a31f42 [file] [log] [blame]
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 INCLUDED_OSL_FILE_URL_H
#define INCLUDED_OSL_FILE_URL_H
#include "sal/types.h"
#include "rtl/ustring.h"
#include "osl/file.h"
#ifdef _MSC_VER
#pragma warning(push,1)
#endif
#define WINDOWS_LEAN_AND_MEAN
#include <windows.h>
#ifdef _MSC_VER
#pragma warning(pop)
#endif
#ifdef __cplusplus
extern "C" {
#endif
#define PATHTYPE_ERROR 0
#define PATHTYPE_RELATIVE 1
#define PATHTYPE_ABSOLUTE_UNC 2
#define PATHTYPE_ABSOLUTE_LOCAL 3
#define PATHTYPE_MASK_TYPE 0xFF
#define PATHTYPE_IS_VOLUME 0x0100
#define PATHTYPE_IS_SERVER 0x0200
#define PATHTYPE_IS_LONGPATH 0x0400
#define VALIDATEPATH_NORMAL 0x0000
#define VALIDATEPATH_ALLOW_WILDCARDS 0x0001
#define VALIDATEPATH_ALLOW_ELLIPSE 0x0002
#define VALIDATEPATH_ALLOW_RELATIVE 0x0004
#define VALIDATEPATH_ALLOW_UNC 0x0008
#define MAX_LONG_PATH 32767
DWORD IsValidFilePath (
rtl_uString * path,
LPCTSTR * lppError,
DWORD dwFlags,
rtl_uString ** corrected
);
DWORD GetCaseCorrectPathName (
LPCTSTR lpszShortPath, // file name
LPTSTR lpszLongPath, // path buffer
DWORD cchBuffer, // size of path buffer
BOOL bCheckExistence
);
oslFileError _osl_getSystemPathFromFileURL (
rtl_uString * strURL,
rtl_uString ** pustrPath,
sal_Bool bAllowRelative
);
oslFileError _osl_getFileURLFromSystemPath (
rtl_uString * strPath,
rtl_uString ** pstrURL
);
#ifdef __cplusplus
}
#endif
#endif /* INCLUDED_OSL_FILE_URL_H */