source: trunk/dll/pathutil.h

Last change on this file was 1761, checked in by Steven Levine, 11 years ago

Implement IsAbsolutePath and modify SearchPathForFile to use

  • Property svn:eolstyle set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1
2/***********************************************************************
3
4 $Id: pathutil.h 1761 2014-03-21 23:29:52Z stevenhl $
5
6 Path handling utility functions
7
8 Copyright (c) 1993-98 M. Kimes
9 Copyright (c) 2001, 2009 Steven H. Levine
10
11 05 Jan 08 SHL Move from fm3dll.h to here
12 29 Feb 08 GKY Changes to enable user settable command line length
13 28 Jun 09 GKY Added AddBackslashToPath() to remove repeatative code.
14 23 Oct 10 GKY Add ForwardslashToBackslash function to streamline code
15 21 Mar 14 SHL Add IsAbsolutePath
16
17***********************************************************************/
18
19#if !defined(PATHUTIL_H)
20
21#define PATHUTIL_H
22
23#if !defined(OS2_INCLUDED)
24#include <os2.h>
25#endif
26
27PSZ AddBackslashToPath(PSZ pszPathName);
28
29PSZ BldFullPathName(PSZ pszFullPathName, PCSZ pszPathName, PCSZ pszFileName);
30PSZ BldQuotedFullPathName(PSZ pszFullPathName, PCSZ pszPathName, PCSZ pszFileName);
31PSZ BldQuotedFileName(PSZ pszQuotedFileName, PCSZ pszFileName);
32
33BOOL IsAbsolutePath(PCSZ pszPathName);
34PSZ ForwardslashToBackslash(PSZ pszPathName);
35
36PCSZ NormalizeCmdLine(PSZ pszWorkBuf, PSZ pszCmdLine_);
37
38#define MAXCOMLINESTRGDEFAULT (1024) /* used to build command line strings */
39#define CMDLNLNGTH_MIN (299)
40#define CMDLNLNGTH_MAX (32768)
41
42#ifdef DEFINE_GLOBALS
43#define DATADEF
44#else
45#define DATADEF extern
46#endif
47
48DATADEF ULONG MaxComLineStrg;
49
50#endif // PATHUTIL_H
Note: See TracBrowser for help on using the repository browser.