- C++/(Windows)파일 처리 . . . . 75 matches
<span style="color: rgb(138, 138, 138); font-family: dotum; font-size: 12px; line-height: 15px;">원본 : </span><a href="http://greenmaru.com/4" style="margin: 0px; padding: 0px; border: 0px; line-height: 15px; font-family: 돋움, Dotum, AppleGothic, sans-serif; text-decoration: underline; color: rgb(138, 138, 138); font-size: 12px;">http://greenmaru.com/4</a>
<p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 15px; font-family: 돋움, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); font-size: 12px;"><strong style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">참고:</strong> <a href="http://msdn.microsoft.com/en-us/library/bb773559(VS.85).aspx" target="_blank" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3; text-decoration: underline; color: rgb(138, 138, 138);"><font color="#888888" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">http://msdn.microsoft.com/en-us/library/bb773559(VS.85).aspx</font></a></p><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 15px; font-family: 돋움, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); font-size: 12px;">폴더 및 파일 경로 조작에 필요한 API 정리.</p><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 15px; font-family: 돋움, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); font-size: 12px;">이런 API들이 있는걸 모르고 몇개는 필요할때 만들어서 쓰기도 했었는데-_-..
아무래도,간단하게 직접 구현한 함수들 보다는 더 꼼꼼하게 만들어져 있다. (적어도 내가 만든 것들 보다는;;)</p><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 15px; font-family: 돋움, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); font-size: 12px;">A부터 Z까지 직접 만들어서 써야 만족하는 변태-_-가 아니라면 참고해보자.
굵게(Bold)처리한 함수들은 자주 쓰일법한 녀석들이다.</p><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 15px; font-family: 돋움, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); font-size: 12px;">사용하기 위해서는 shlwapi.h를 include하고 shlwapi.lib를 링크해야 한다.</p><p id="more4_0" class="moreless_top" style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 18px; border: 0px; line-height: 15px; font-family: 돋움, Dotum, AppleGothic, sans-serif; text-decoration: underline; background-image: url(http://ts.daumcdn.net/custom/blog/29/294052/skin/images/iconLess.gif); color: rgb(138, 138, 138); font-size: 12px; background-position: 0% 0%; background-repeat: no-repeat no-repeat;"><span style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3; cursor: pointer;"></span></p><div id="content4_0" class="moreless_content" style="margin: 10px 0px; padding: 0px; border: 0px; line-height: 15px; font-family: 돋움, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); font-size: 12px;"><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><strong style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;"><font color="#0000ff" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">LPTSTR PathAddBackslash( LPTSTR <i style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">lpszPath </i>);</font></strong></p><blockquote dir="ltr" style="margin: 5px 0px 5px 5px; padding: 0px 0px 0px 16px; border: 0px; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; background-image: url(http://ts.daumcdn.net/custom/blog/29/294052/skin/images/iconBlockquote.gif); background-position: initial initial; background-repeat: no-repeat no-repeat;"><p dir="ltr" style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">Adds a backslash to the end of a string to create the correct syntax for a path. If the source path already has a trailing backslash, no backslash will be added.</font>
lpszPath는 MAX_PATH크기(또는 그 이상)이라야 하며, lpszPath에 '\'를 더 붙일 수 없다면 NULL이 반환된다.</p></blockquote><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#0000ff" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">BOOL PathAddExtension( LPTSTR <i style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">pszPath</i>, LPCTSTR <i style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">pszExtension </i>);</font></p><blockquote dir="ltr" style="margin: 5px 0px 5px 5px; padding: 0px 0px 0px 16px; border: 0px; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; background-image: url(http://ts.daumcdn.net/custom/blog/29/294052/skin/images/iconBlockquote.gif); background-position: initial initial; background-repeat: no-repeat no-repeat;"><p dir="ltr" style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">Adds a file extension to a path string.</font></p><p dir="ltr" style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;">파일 경로(pszPath)의 맨 뒤에 지정된 확장자를 붙여준다.
pszExtension이 NULL이라면 기본적으로 ".exe"가 붙는다.</p></blockquote><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><strong style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;"><font color="#0000ff" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">BOOL PathAppend( LPTSTR <i style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">pszPath</i>, LPCTSTR <i style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">pszMore </i>);</font></strong></p><blockquote dir="ltr" style="margin: 5px 0px 5px 5px; padding: 0px 0px 0px 16px; border: 0px; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; background-image: url(http://ts.daumcdn.net/custom/blog/29/294052/skin/images/iconBlockquote.gif); background-position: initial initial; background-repeat: no-repeat no-repeat;"><p dir="ltr" style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">Appends one path to the end of another.</font></p><p dir="ltr" style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;">두개의 경로 문자열 결합. pszPath에 pszMore를 붙여준다. 필요하다면 '\' 문자를 사용해 결합한다.</p></blockquote><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#0000ff" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">LPTSTR PathBuildRoot( LPTSTR <i style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">szRoot</i>, int <i style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">iDrive </i>);</font></p><blockquote dir="ltr" style="margin: 5px 0px 5px 5px; padding: 0px 0px 0px 16px; border: 0px; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; background-image: url(http://ts.daumcdn.net/custom/blog/29/294052/skin/images/iconBlockquote.gif); background-position: initial initial; background-repeat: no-repeat no-repeat;"><p dir="ltr" style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">Creates a root path from a given drive number.</font></p><p dir="ltr" style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;">드라이브 식별 번호(iDrive)를 문자열 형(szRoot)으로 변환해 준다. 0 = a:\ 뭐 이런식이다.</p></blockquote><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#0000ff" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">BOOL PathCanonicalize( LPTSTR <i style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">lpszDst</i>, LPCTSTR <i style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">lpszSrc </i>);</font></p><blockquote dir="ltr" style="margin: 5px 0px 5px 5px; padding: 0px 0px 0px 16px; border: 0px; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; background-image: url(http://ts.daumcdn.net/custom/blog/29/294052/skin/images/iconBlockquote.gif); background-position: initial initial; background-repeat: no-repeat no-repeat;"><p dir="ltr" style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">Canonicalizes a path.</font></p><p dir="ltr" style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;">경로에 상대경로 지정문자 ( "./", "../")가 포함되어 있다면 이를 적절하게 처리해준다. lpszsrc="c:\\a\\b\\..\\c" temp_src="c:\\a\\b\\..\\c"라면 lpszDst = "c:\\a\\c"가 된다.</p></blockquote><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#0000ff" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;"><strong style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">LPTSTR PathCombine( LPTSTR <em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">lpszDest</em>, LPCTSTR <em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">lpszDir</em>, LPCTSTR <em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">lpszFile</em> );</strong></font></p><blockquote dir="ltr" style="margin: 5px 0px 5px 5px; padding: 0px 0px 0px 16px; border: 0px; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; background-image: url(http://ts.daumcdn.net/custom/blog/29/294052/skin/images/iconBlockquote.gif); background-position: initial initial; background-repeat: no-repeat no-repeat;"><p dir="ltr" style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">Concatenates two strings that represent properly formed paths into one path; also concatenates any relative path elements.</font></p><p dir="ltr" style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;">폴더 경로 + 파일경로로 구성해준다. lpszDest = lpszDir + lpszFile.
적절한 함수로군-ㅅ-ㅋㅋ</p></blockquote><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#0000ff" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">int PathCommonPrefix( LPCTSTR <em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">pszFile1</em>, LPCTSTR <em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">pszFile2</em>, LPTSTR <em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">pszPath</em> );</font></p><blockquote dir="ltr" style="margin: 5px 0px 5px 5px; padding: 0px 0px 0px 16px; border: 0px; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; background-image: url(http://ts.daumcdn.net/custom/blog/29/294052/skin/images/iconBlockquote.gif); background-position: initial initial; background-repeat: no-repeat no-repeat;"><p dir="ltr" style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">Compares two paths to determine if they share a common prefix. A prefix is one of these types: "C:\\", ".", "..", "..\\".</font></p><p dir="ltr" style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;">두 경로 pszFile1과 pszFile2에서 어디까지가 공통된 경로인지 조사하고, pszPath에 공통된 부분을 담아준다.
공통된 부분이 없다면 pszPath는 NULL로 설정된다.</p></blockquote><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#0000ff" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">BOOL PathCompactPath( HDC <em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">hDC</em>, LPTSTR <em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">lpszPath</em>, UINT <em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">dx</em> );</font></p><blockquote dir="ltr" style="margin: 5px 0px 5px 5px; padding: 0px 0px 0px 16px; border: 0px; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; background-image: url(http://ts.daumcdn.net/custom/blog/29/294052/skin/images/iconBlockquote.gif); background-position: initial initial; background-repeat: no-repeat no-repeat;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;"></font><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">Truncates a file path to fit within a given pixel width by replacing path components with ellipses.</font></p><p dir="ltr" style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;">lpszPath에 포함된 경로 문자열을 dx pixel 크기에 출력하기 적절하게 잘라준다.
C:\p...\sample.txt</p></blockquote><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#0000ff" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">BOOL PathCompactPathEx( LPTSTR <em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">pszOut</em>, LPCTSTR <em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">pszSrc</em>, UINT <em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">cchMax</em>, DWORD <em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">dwFlags </em>);</font></p><blockquote dir="ltr" style="margin: 5px 0px 5px 5px; padding: 0px 0px 0px 16px; border: 0px; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; background-image: url(http://ts.daumcdn.net/custom/blog/29/294052/skin/images/iconBlockquote.gif); background-position: initial initial; background-repeat: no-repeat no-repeat;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;"></font><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">Truncates a path to fit within a certain number of characters by replacing path components with ellipses.</font></p><p dir="ltr" style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;">PathCompactPath와 유사하다. 다만, pixel단위가 아니라 최대 cchMax만큼 잘라낸다.</p></blockquote><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#0000ff" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">HRESULT PathCreateFromUrl( LPCTSTR <em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">pszUrl</em>, LPTSTR <em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">pszPath</em>, LPDWORD <em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">pcchPath</em>, DWORD dwReserved );</font></p><blockquote dir="ltr" style="margin: 5px 0px 5px 5px; padding: 0px 0px 0px 16px; border: 0px; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; background-image: url(http://ts.daumcdn.net/custom/blog/29/294052/skin/images/iconBlockquote.gif); background-position: initial initial; background-repeat: no-repeat no-repeat;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;"></font><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">Converts a file URL to a Microsoft MS-DOS path.</font></p><p dir="ltr" style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;">URL형태로 구성된 경로를 Windows 경로 형식으로 변환해 준다. file:///c:/test.txt = c:\test.txt.
또, 실제 URL(Web)이 아니라 Local File Url이라야 한다.</p></blockquote><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#0000ff" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;"><strong style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">BOOL PathFileExists( LPCTSTR <em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">pszPath</em> );</strong></font></p><blockquote dir="ltr" style="margin: 5px 0px 5px 5px; padding: 0px 0px 0px 16px; border: 0px; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; background-image: url(http://ts.daumcdn.net/custom/blog/29/294052/skin/images/iconBlockquote.gif); background-position: initial initial; background-repeat: no-repeat no-repeat;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;"></font><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">Determines whether a path to a file system object such as a file or directory is valid.</font></p><p dir="ltr" style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;">제시된 경로의 파일/폴더가 실제로 <font id="altools-findtxt" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3; background-color: rgb(255, 255, 0); font-size: 14px; font-weight: bold;">존재</font>하는지 검사한다.</p></blockquote><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#0000ff" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;"><strong style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">LPTSTR PathFindExtension( LPCTSTR <em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">pPath</em> );</strong></font></p><blockquote dir="ltr" style="margin: 5px 0px 5px 5px; padding: 0px 0px 0px 16px; border: 0px; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; background-image: url(http://ts.daumcdn.net/custom/blog/29/294052/skin/images/iconBlockquote.gif); background-position: initial initial; background-repeat: no-repeat no-repeat;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;"></font><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">Searches a path for an extension.</font></p><p dir="ltr" style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;">파일 경로에서 확장자를 찾아준다. (pPath에서 확장자가 시작되는 위치를 반환).</p></blockquote><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#0000ff" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;"><strong style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">LPTSTR PathFindFileName( LPCTSTR <em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">pPath</em> );</strong></font></p><blockquote dir="ltr" style="margin: 5px 0px 5px 5px; padding: 0px 0px 0px 16px; border: 0px; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; background-image: url(http://ts.daumcdn.net/custom/blog/29/294052/skin/images/iconBlockquote.gif); background-position: initial initial; background-repeat: no-repeat no-repeat;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;"></font><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">Searches a path for a file name.</font></p><p dir="ltr" style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;">파일 경로에서 파일 이름을 찾아준다. (pPath에서 이름이 시작되는 위치를 반환).</p></blockquote><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#0000ff" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">LPTSTR PathFindNextComponent( LPCTSTR <em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">pszPath</em> );</font></p><blockquote dir="ltr" style="margin: 5px 0px 5px 5px; padding: 0px 0px 0px 16px; border: 0px; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; background-image: url(http://ts.daumcdn.net/custom/blog/29/294052/skin/images/iconBlockquote.gif); background-position: initial initial; background-repeat: no-repeat no-repeat;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;"></font><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">Parses a path for the next path component.</font></p><p dir="ltr" style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;">다음 위치의 경로를 찾아준다. 어떤 경로에 대해 순자접근이 필요하다면 사용해볼 법 하다.
PathFindNextComponent( "windows\system32") = system32</p></blockquote><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#0000ff" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">BOOL PathFindOnPath( LPTSTR <em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">pszFile</em>, LPCTSTR *<em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">ppszOtherDirs</em> );</font></p><blockquote dir="ltr" style="margin: 5px 0px 5px 5px; padding: 0px 0px 0px 16px; border: 0px; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; background-image: url(http://ts.daumcdn.net/custom/blog/29/294052/skin/images/iconBlockquote.gif); background-position: initial initial; background-repeat: no-repeat no-repeat;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;"></font><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">Searches for a file.</font></p><p dir="ltr" style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;">파일을 검색한다. 만약 검색에 성공하면 pszFile에는 해당 파일의 전체 경로가 담겨져서 반환된다.
<span id="callbacknestfunnismcom381187" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3; width: 1px; height: 1px; float: right;"></span>주의: 여러개의 파일이 존재 하더라도, 첫번째로 검색된 파일의 경로만 반환한다.</p></blockquote><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#0000ff" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">LPCTSTR PathFindSuffixArray( LPCTSTR <em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">pszPath</em>, const LPCTSTR *<em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">apszSuffix</em>, int <em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">iArraySize</em> );</font></p><blockquote dir="ltr" style="margin: 5px 0px 5px 5px; padding: 0px 0px 0px 16px; border: 0px; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; background-image: url(http://ts.daumcdn.net/custom/blog/29/294052/skin/images/iconBlockquote.gif); background-position: initial initial; background-repeat: no-repeat no-repeat;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;"></font><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">Determines whether a given file name has one of a list of suffixes.</font></p><p dir="ltr" style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;">PathFindOnPath와 유사하다. 다만, apszSuffix를 통해 검색할 경로를 여러개 지정할 수 있다. (기본경로 검색은 하지 않는다.)
주의: 대소문자를 구분한다.</p></blockquote><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#0000ff" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">LPTSTR PathGetArgs( LPCTSTR <em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">pszPath</em> );</font></p><blockquote dir="ltr" style="margin: 5px 0px 5px 5px; padding: 0px 0px 0px 16px; border: 0px; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; background-image: url(http://ts.daumcdn.net/custom/blog/29/294052/skin/images/iconBlockquote.gif); background-position: initial initial; background-repeat: no-repeat no-repeat;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;"></font><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">Finds the command line arguments within a given path.</font></p><p dir="ltr" style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;">경로에 포함된 매개변수(argv)를 찾아준다.
PathGetArgs("c:\test.exe temp.txt /x") = "temp.txt /x"</p></blockquote><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#0000ff" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;"><strong style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">UINT PathGetCharType( TUCHAR <em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">ch</em> );</strong></font></p><blockquote dir="ltr" style="margin: 5px 0px 5px 5px; padding: 0px 0px 0px 16px; border: 0px; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; background-image: url(http://ts.daumcdn.net/custom/blog/29/294052/skin/images/iconBlockquote.gif); background-position: initial initial; background-repeat: no-repeat no-repeat;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;"></font><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">Determines the type of character in relation to a path.</font></p><p dir="ltr" style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;">문자가 경로 문자열에 사용되면 어떤 의미인지 알려준다. 경로에 포함될 수 있는 문자인가? 경로 구분자('\')인가? 등등..
이 함수를 이용해서 경로에 사용할 수 있는 문자열인지를 검사할 수 있다.</p></blockquote><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#0000ff" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">int PathGetDriveNumber( LPCTSTR <em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">lpsz</em> );</font></p><blockquote dir="ltr" style="margin: 5px 0px 5px 5px; padding: 0px 0px 0px 16px; border: 0px; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; background-image: url(http://ts.daumcdn.net/custom/blog/29/294052/skin/images/iconBlockquote.gif); background-position: initial initial; background-repeat: no-repeat no-repeat;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;"></font><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">Searches a path for a drive letter within the range of 'A' to 'Z' and returns the corresponding drive number.</font></p><p dir="ltr" style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;">제시된 경로에 포함된 드라이브 문자(c:\) 의 식별 번호를 반환한다.</p></blockquote><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#0000ff" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">BOOL PathIsContentType( LPCTSTR <em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">pszPath</em>, LPCTSTR <em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">pszContentType</em> );</font></p><blockquote dir="ltr" style="margin: 5px 0px 5px 5px; padding: 0px 0px 0px 16px; border: 0px; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; background-image: url(http://ts.daumcdn.net/custom/blog/29/294052/skin/images/iconBlockquote.gif); background-position: initial initial; background-repeat: no-repeat no-repeat;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;"></font><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">Determines if a file's registered content type matches the specified content type. This function obtains the content type for the specified file type and compares that string with the pszContentType. The comparison is not case-sensitive.</font></p><p dir="ltr" style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;">제시된 파일경로가(확장자만 넘겨줘도 된다;) 등록된 contents type과 일치하는지 검사한다.
PathIsContentType( "c:\temp.txt", "text/plain" ) = TRUE</p></blockquote><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#0000ff" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;"><strong style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">BOOL PathIsDirectory( LPCTSTR <em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">pszPath</em> );</strong></font></p><blockquote dir="ltr" style="margin: 5px 0px 5px 5px; padding: 0px 0px 0px 16px; border: 0px; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; background-image: url(http://ts.daumcdn.net/custom/blog/29/294052/skin/images/iconBlockquote.gif); background-position: initial initial; background-repeat: no-repeat no-repeat;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;"></font><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">Verifies that a path is a valid directory.</font></p><p dir="ltr" style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;">실제로 존재하는 폴더인지 확인한다.</p></blockquote><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#0000ff" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">BOOL PathIsDirectoryEmpty( LPCTSTR <em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">pszPath</em> );</font></p><blockquote dir="ltr" style="margin: 5px 0px 5px 5px; padding: 0px 0px 0px 16px; border: 0px; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; background-image: url(http://ts.daumcdn.net/custom/blog/29/294052/skin/images/iconBlockquote.gif); background-position: initial initial; background-repeat: no-repeat no-repeat;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;"></font><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">Determines whether a specified path is an empty directory.</font></p><p dir="ltr" style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;">비어있는(안에 파일이나 서브 폴더가 없는) 폴더인지 확인한다.</p></blockquote><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#0000ff" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">BOOL PathIsFileSpec( LPCTSTR <em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">lpszPath</em> );</font></p><blockquote dir="ltr" style="margin: 5px 0px 5px 5px; padding: 0px 0px 0px 16px; border: 0px; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; background-image: url(http://ts.daumcdn.net/custom/blog/29/294052/skin/images/iconBlockquote.gif); background-position: initial initial; background-repeat: no-repeat no-repeat;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;"></font><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">Searches a path for any path-delimiting characters (for example, ':' or '\' ). If there are no path-delimiting characters present, the path is considered to be a File Spec path.</font></p><p dir="ltr" style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;">제시된 경로가 파일명만으로 구성되어 있는지 조사한다.
주의: 파일명으로 사용할 수 없는 문자(/, :, * 등)가 들어있는가? 를 검사하는 함수가 아니다!!</p></blockquote><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#0000ff" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">BOOL PathIsHTMLFile( LPCTSTR <em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">pszFile</em> );</font></p><blockquote dir="ltr" style="margin: 5px 0px 5px 5px; padding: 0px 0px 0px 16px; border: 0px; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; background-image: url(http://ts.daumcdn.net/custom/blog/29/294052/skin/images/iconBlockquote.gif); background-position: initial initial; background-repeat: no-repeat no-repeat;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;"></font><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">Determines if a file is an HTML file. The determination is made based on the content type that is registered for the file's extension.</font></p><p dir="ltr" style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;">제시된 경로의 확장자가 HTML 유형인가를 검사한다.
한마디로, 레지스트리에 등록된 content type이 text/html이라면 TRUE. (.htm, .html, .xhtml ...)</p></blockquote><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#0000ff" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">BOOL PathIsLFNFileSpec( LPCTSTR <em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">pszName</em> );</font></p><blockquote dir="ltr" style="margin: 5px 0px 5px 5px; padding: 0px 0px 0px 16px; border: 0px; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; background-image: url(http://ts.daumcdn.net/custom/blog/29/294052/skin/images/iconBlockquote.gif); background-position: initial initial; background-repeat: no-repeat no-repeat;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;"></font><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">Determines whether a file name is in long format.</font></p><p dir="ltr" style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;">제시된 경로가 Long File Name spec에 적합한지 검사한다. (아마 쓸 일은 거의 없을듯 싶다 -_-;)</p></blockquote><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#0000ff" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">BOOL PathIsNetworkPath( LPCTSTR <em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">pszPath</em> );</font></p><blockquote dir="ltr" style="margin: 5px 0px 5px 5px; padding: 0px 0px 0px 16px; border: 0px; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; background-image: url(http://ts.daumcdn.net/custom/blog/29/294052/skin/images/iconBlockquote.gif); background-position: initial initial; background-repeat: no-repeat no-repeat;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;"></font><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">Determines whether a path string represents a network resource.</font></p><p dir="ltr" style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;">경로가 네트워크 경로라면 TRUE. 단, 실제로 존재하는 네트워크 경로인가는 다른 얘기다!</p></blockquote><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#0000ff" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">BOOL PathIsPrefix( IN LPCTSTR <em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">pszPrefix</em>, IN LPCTSTR <em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">pszPath</em> );</font></p><blockquote dir="ltr" style="margin: 5px 0px 5px 5px; padding: 0px 0px 0px 16px; border: 0px; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; background-image: url(http://ts.daumcdn.net/custom/blog/29/294052/skin/images/iconBlockquote.gif); background-position: initial initial; background-repeat: no-repeat no-repeat;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;"></font><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">Searches a path to determine if it contains a valid prefix of the type passed by pszPrefix. A prefix is one of these types: "C:\\", ".", "..", "..\\".</font></p><p dir="ltr" style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;">경로가 pszPrefix로 시작되는가를 검사한다. 같은 드라이브에 있는 파일인지 검사할때 유용하다.</p></blockquote><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#0000ff" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">BOOL PathIsRelative( LPCTSTR <em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">lpszPath</em> );</font></p><blockquote dir="ltr" style="margin: 5px 0px 5px 5px; padding: 0px 0px 0px 16px; border: 0px; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; background-image: url(http://ts.daumcdn.net/custom/blog/29/294052/skin/images/iconBlockquote.gif); background-position: initial initial; background-repeat: no-repeat no-repeat;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;"></font><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">Searches a path and determines if it is relative.</font></p><p dir="ltr" style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;">경로가 상대경로인지 검사한다.
PathIsRelative("temp.txt") = TRUE</p></blockquote><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#0000ff" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">BOOL PathIsRoot( LPCTSTR <em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">pPath</em> );</font></p><blockquote dir="ltr" style="margin: 5px 0px 5px 5px; padding: 0px 0px 0px 16px; border: 0px; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; background-image: url(http://ts.daumcdn.net/custom/blog/29/294052/skin/images/iconBlockquote.gif); background-position: initial initial; background-repeat: no-repeat no-repeat;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;"></font><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">Parses a path to determine if it is a directory root.</font></p><p dir="ltr" style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;">경로가 루트 폴더(드라이브 바로 밑)인지 검사한다.
PathIsRoot("c:\windows") = FALSE</p></blockquote><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#0000ff" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;"><strong style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">BOOL PathIsSameRoot( LPCTSTR <em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">pszPath1</em>, LPCTSTR <em style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">pszPath2</em> );</strong></font></p><blockquote dir="ltr" style="margin: 5px 0px 5px 5px; padding: 0px 0px 0px 16px; border: 0px; line-height: 1.3; font-family: 돋움, Dotum, AppleGothic, sans-serif; background-image: url(http://ts.daumcdn.net/custom/blog/29/294052/skin/images/iconBlockquote.gif); background-position: initial initial; background-repeat: no-repeat no-repeat;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;"></font><p style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;"><font color="#808080" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.3;">Compares two paths to determine if they have a common root component.</font></p><p dir="ltr" style="margin-right: 0px; margin-left: 0px; padding-right: 0px; padding-left: 0px; border: 0px; line-height: 1.3;">pszPath1과 pszPath2가 같은 드라이브(루트폴더)에 있는지 검사한다. - 텍스트 에디터에서 Dot과 Mark의 의미 . . . . 43 matches
#keywords Text Editor, Caret, Dot, Mark, Bias, Selection, PositionAffinity
Dot과 Mark는 텍스트 에디터나 워드 프로세서에서 캐럿(Caret)의 위치와 텍스트 선택 영역(Selection)을 표현하는 데 사용되는 용어이다.
=== Dot과 Mark의 의미 ===
* '''Dot (닷)''': 현재 캐럿의 위치를 나타낸다. 텍스트 선택 중에는 선택 영역에서 움직이는 끝점(Active End)이 된다. 일반적으로 문자 자체가 아니라 문자와 문자 사이의 위치를 가리킨다.
Dot과 Mark가 같으면 선택 영역이 없는 상태이고, 서로 다르면 두 위치 사이의 텍스트가 선택된 상태이다.
==== Dot과 Mark의 위치 표현 ====
Dot = 2
Mark Dot
Dot = 4
Dot Mark
Dot = 1
Dot과 Mark의 대소 관계에 따라 선택 영역을 계산할 수 있다.
int selectionStart = std::min(dot, mark);
int selectionEnd = std::max(dot, mark);
bool hasSelection = (dot != mark);
bool isForwardSelection = (dot > mark);
bool isBackwardSelection = (dot < mark);
단순히 SelectionStart와 SelectionEnd만 저장할 경우 선택 영역의 방향성이 손실된다. Dot과 Mark를 각각 저장하면 선택 영역의 방향성과 현재 캐럿의 위치를 모두 유지할 수 있다.
Dot과 Mark만으로는 화면에 표시되는 캐럿의 위치를 항상 유일하게 결정할 수 있는 것은 아니다.
=== Dot, Mark, Bias를 이용한 캐럿의 구현 === - FrontPage . . . . 4 matches
href="/moniwiki/wiki.php/텍스트%20에디터에서%20Dot과%20Mark의%20의미">
src="/images/frontpage/featured/dot-and-mark.jpg"
alt="텍스트 편집기의 Dot과 Mark"
<h3>텍스트 에디터에서 Dot과 Mark의 의미</h3>
Dot, Mark, Bias의 개념을 살펴봅니다.</p> - TechDocs . . . . 2 matches
- [텍스트 에디터에서 Dot과 Mark의 의미](텍스트%20에디터에서%20Dot과%20Mark의%20의미) - C++/(MFC)워커 스레드와 이벤트를 이용한 동기화 . . . . 1 match
if (!(finder.IsDots() || finder.IsCompressed() || - C++/네트워크 연결 확인 . . . . 1 match
0x10<o:p></o:p></font></span></p></td><td valign="top" width="60%" style="font-size: 9pt;"><p class="MsoNormal" align="left" style="margin: 7.2pt 0cm 3.6pt; padding-right: 0px; padding-left: 0px; line-height: 1.5;"><span lang="EN-US" style="font-size: 8.5pt;"><font face="맑은 고딕">Local system has RAS installed.<o:p></o:p></font></span></p></td></tr></tbody></table><p class="MsoNormal" style="margin: 0cm 0cm 0pt; padding-right: 0px; padding-left: 0px; line-height: 1.5; color: rgb(102, 102, 102); font-family: 'Lucida Grande', Tahoma, Arial, Helvetica, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);"><span lang="EN-US"><o:p><font size="2" face="맑은 고딕"> </font></o:p></span></p><div class="autosourcing-stub-extra" style="position: absolute; opacity: 0; line-height: 1.5;"><p style="margin: 11px 0px 7px; padding-right: 0px; padding-left: 0px; line-height: 1.5; font-size: 12px; font-family: Dotum;"><font size="2" face="맑은 고딕"><strong style="padding: 0px 7px 0px 0px;">[출처]</strong> <a href="http://blog.naver.com/goldenkingll/70095836356" target="_blank">mfc [api] 현재 네트워크 연결 상태 확인 소스</a><span style="padding: 0px 7px 0px 5px;">|</span><strong style="padding: 0px 7px 0px 0px;">작성자</strong> <a href="http://blog.naver.com/goldenkingll" target="_blank">겨울봄비</a></font></p></div><p></p></div> - ComplexScripts . . . . 1 match
.〯: A historical tone mark (Bangjeom) called the Hangul Double Dot Tone Mark (U+302F), used to indicate a rising tone. - omr1/3/001 . . . . 1 match
내적, Inner Product, Dot Product
You can also click here to search title.