From 86e8851bf37227b9f70f88e1788c7355422ee3b0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 25 Mar 2014 14:15:47 +0000 Subject: PathIsAbsolute/PathIsAbsoluteW published from the core git-svn-id: http://svn.miranda-ng.org/main/trunk@8737 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- include/delphi/m_core.inc | 4 ++++ include/m_core.h | 3 +++ 2 files changed, 7 insertions(+) (limited to 'include') diff --git a/include/delphi/m_core.inc b/include/delphi/m_core.inc index 5f7f54538d..71ca89150f 100644 --- a/include/delphi/m_core.inc +++ b/include/delphi/m_core.inc @@ -651,6 +651,8 @@ procedure CreatePathToFile(wszFilePath:PAnsiChar); stdcall; external CoreDLL name 'CreatePathToFile'; function CreateDirectoryTree(const szDir:PAnsiChar):int; stdcall; external CoreDLL name 'CreateDirectoryTree'; +function PathIsAbsolute(const pSrc:PAnsiChar):int; stdcall; + external CoreDLL name 'PathIsAbsolute'; function PathToAbsolute(const pSrc:PAnsiChar; pOut:PAnsiChar; base:PAnsiChar=nil):int; stdcall; external CoreDLL name 'PathToAbsolute'; function PathToRelative(const pSrc:PAnsiChar; pOut:PAnsiChar):int; stdcall; @@ -660,6 +662,8 @@ procedure CreatePathToFileW(wszFilePath:PWideChar); stdcall; external CoreDLL name 'CreatePathToFileW'; function CreateDirectoryTreeW(const szDir:PWideChar):int; stdcall; external CoreDLL name 'CreateDirectoryTreeW'; +function PathIsAbsoluteW(const pSrc:PWideChar):int; stdcall; + external CoreDLL name 'PathIsAbsoluteW'; function PathToAbsoluteW(const pSrc:PWideChar; pOut:PWideChar; base:PWideChar=nil):int; stdcall; external CoreDLL name 'PathToAbsoluteW'; function PathToRelativeW(const pSrc:PWideChar; pOut:PWideChar):int; stdcall; diff --git a/include/m_core.h b/include/m_core.h index 98231d041e..d30bed459e 100644 --- a/include/m_core.h +++ b/include/m_core.h @@ -582,10 +582,12 @@ MIR_CORE_DLL(HINSTANCE) GetInstByAddress(void* codePtr); MIR_CORE_DLL(void) CreatePathToFile(char* wszFilePath); MIR_CORE_DLL(int) CreateDirectoryTree(const char* szDir); MIR_CORE_DLL(int) PathToRelative(const char *pSrc, char *pOut); +MIR_CORE_DLL(int) PathIsAbsolute(const char *pSrc); MIR_CORE_DLL(void) CreatePathToFileW(WCHAR* wszFilePath); MIR_CORE_DLL(int) CreateDirectoryTreeW(const WCHAR* szDir); MIR_CORE_DLL(int) PathToRelativeW(const WCHAR *pSrc, WCHAR *pOut); +MIR_CORE_DLL(int) PathIsAbsoluteW(const WCHAR *pSrc); #if defined( __cplusplus ) MIR_CORE_DLL(int) PathToAbsolute(const char *pSrc, char *pOut, char* base=0); @@ -597,6 +599,7 @@ MIR_CORE_DLL(int) PathToRelativeW(const WCHAR *pSrc, WCHAR *pOut); #define CreatePathToFileT CreatePathToFileW #define CreateDirectoryTreeT CreateDirectoryTreeW +#define PathIsAbsoluteT PathIsAbsoluteW #define PathToAbsoluteT PathToAbsoluteW #define PathToRelativeT PathToRelativeW -- cgit v1.2.3