shlwapi::Path*

shlwapi::PathRemoveFileSpec()

In Ret Out
0
. 1
\ 0 \
c: 0 c:
c:\ 0 c:\
c:\DIR 1 c:\
c:\DIR\ 1 c:\DIR
c:\DIR\\ 1 c:\DIR\
c:\DIR\\\ 1 c:\DIR\\
c:\DIR\. 1 c:\DIR
\DIR 1 \
\DIR\ 1 \DIR
.\DIR 1 .
.\DIR\ 1 .\DIR
DIR 1
DIR\ 1 DIR
\DIR\file.txt 1 \DIR
.\DIR\file.txt 1 .\DIR
c:\DIR\file.txt 1 c:\DIR
\\ 0 \\
\\server 1 \\
\\server\share 1 \\server
\\server\share\DIR 1 \\server\share
\\server\share\DIR\ 1 \\server\share\DIR
\\server\share\DIR\file.txt 1 \\server\share\DIR
\\\ 1 \\
\\\server 1 \\
\\\server\share 1 \\\server
\\\server\share\DIR 1 \\\server\share
\\\server\share\DIR\ 1 \\\server\share\DIR
\\\server\share\DIR\file.txt 1 \\\server\share\DIR

shlwapi::PathGetDriveNumber()

In Ret Out
-1
. -1 .
\ -1 \
c: 2 c:
c:\ 2 c:\
c:\DIR 2 c:\DIR
c:\DIR\ 2 c:\DIR\
c:\DIR\\ 2 c:\DIR\\
c:\DIR\\\ 2 c:\DIR\\\
c:\DIR\. 2 c:\DIR\.
\DIR -1 \DIR
\DIR\ -1 \DIR\
.\DIR -1 .\DIR
.\DIR\ -1 .\DIR\
DIR -1 DIR
DIR\ -1 DIR\
\DIR\file.txt -1 \DIR\file.txt
.\DIR\file.txt -1 .\DIR\file.txt
c:\DIR\file.txt 2 c:\DIR\file.txt
\\ -1 \\
\\server -1 \\server
\\server\share -1 \\server\share
\\server\share\DIR -1 \\server\share\DIR
\\server\share\DIR\ -1 \\server\share\DIR\
\\server\share\DIR\file.txt -1 \\server\share\DIR\file.txt
\\\ -1 \\\
\\\server -1 \\\server
\\\server\share -1 \\\server\share
\\\server\share\DIR -1 \\\server\share\DIR
\\\server\share\DIR\ -1 \\\server\share\DIR\
\\\server\share\DIR\file.txt -1 \\\server\share\DIR\file.txt

shlwapi::PathIsRoot()

In Ret Out
0
. 0 .
\ 1 \
c: 0 c:
c:\ 1 c:\
c:\DIR 0 c:\DIR
c:\DIR\ 0 c:\DIR\
c:\DIR\\ 0 c:\DIR\\
c:\DIR\\\ 0 c:\DIR\\\
c:\DIR\. 0 c:\DIR\.
\DIR 0 \DIR
\DIR\ 0 \DIR\
.\DIR 0 .\DIR
.\DIR\ 0 .\DIR\
DIR 0 DIR
DIR\ 0 DIR\
\DIR\file.txt 0 \DIR\file.txt
.\DIR\file.txt 0 .\DIR\file.txt
c:\DIR\file.txt 0 c:\DIR\file.txt
\\ 1 \\
\\server 1 \\server
\\server\share 1 \\server\share
\\server\share\DIR 0 \\server\share\DIR
\\server\share\DIR\ 0 \\server\share\DIR\
\\server\share\DIR\file.txt 0 \\server\share\DIR\file.txt
\\\ 0 \\\
\\\server 1 \\\server
\\\server\share 0 \\\server\share
\\\server\share\DIR 0 \\\server\share\DIR
\\\server\share\DIR\ 0 \\\server\share\DIR\
\\\server\share\DIR\file.txt 0 \\\server\share\DIR\file.txt

shlwapi::PathIsUNC()

In Ret Out
0
. 0 .
\ 0 \
c: 0 c:
c:\ 0 c:\
c:\DIR 0 c:\DIR
c:\DIR\ 0 c:\DIR\
c:\DIR\\ 0 c:\DIR\\
c:\DIR\\\ 0 c:\DIR\\\
c:\DIR\. 0 c:\DIR\.
\DIR 0 \DIR
\DIR\ 0 \DIR\
.\DIR 0 .\DIR
.\DIR\ 0 .\DIR\
DIR 0 DIR
DIR\ 0 DIR\
\DIR\file.txt 0 \DIR\file.txt
.\DIR\file.txt 0 .\DIR\file.txt
c:\DIR\file.txt 0 c:\DIR\file.txt
\\ 1 \\
\\server 1 \\server
\\server\share 1 \\server\share
\\server\share\DIR 1 \\server\share\DIR
\\server\share\DIR\ 1 \\server\share\DIR\
\\server\share\DIR\file.txt 1 \\server\share\DIR\file.txt
\\\ 1 \\\
\\\server 1 \\\server
\\\server\share 1 \\\server\share
\\\server\share\DIR 1 \\\server\share\DIR
\\\server\share\DIR\ 1 \\\server\share\DIR\
\\\server\share\DIR\file.txt 1 \\\server\share\DIR\file.txt

shlwapi::PathIsUNCServer()

In Ret Out
0
. 0 .
\ 0 \
c: 0 c:
c:\ 0 c:\
c:\DIR 0 c:\DIR
c:\DIR\ 0 c:\DIR\
c:\DIR\\ 0 c:\DIR\\
c:\DIR\\\ 0 c:\DIR\\\
c:\DIR\. 0 c:\DIR\.
\DIR 0 \DIR
\DIR\ 0 \DIR\
.\DIR 0 .\DIR
.\DIR\ 0 .\DIR\
DIR 0 DIR
DIR\ 0 DIR\
\DIR\file.txt 0 \DIR\file.txt
.\DIR\file.txt 0 .\DIR\file.txt
c:\DIR\file.txt 0 c:\DIR\file.txt
\\ 1 \\
\\server 1 \\server
\\server\share 0 \\server\share
\\server\share\DIR 0 \\server\share\DIR
\\server\share\DIR\ 0 \\server\share\DIR\
\\server\share\DIR\file.txt 0 \\server\share\DIR\file.txt
\\\ 0 \\\
\\\server 0 \\\server
\\\server\share 0 \\\server\share
\\\server\share\DIR 0 \\\server\share\DIR
\\\server\share\DIR\ 0 \\\server\share\DIR\
\\\server\share\DIR\file.txt 0 \\\server\share\DIR\file.txt

shlwapi::PathIsUNCServerShare()

In Ret Out
0
. 0 .
\ 0 \
c: 0 c:
c:\ 0 c:\
c:\DIR 0 c:\DIR
c:\DIR\ 0 c:\DIR\
c:\DIR\\ 0 c:\DIR\\
c:\DIR\\\ 0 c:\DIR\\\
c:\DIR\. 0 c:\DIR\.
\DIR 0 \DIR
\DIR\ 0 \DIR\
.\DIR 0 .\DIR
.\DIR\ 0 .\DIR\
DIR 0 DIR
DIR\ 0 DIR\
\DIR\file.txt 0 \DIR\file.txt
.\DIR\file.txt 0 .\DIR\file.txt
c:\DIR\file.txt 0 c:\DIR\file.txt
\\ 0 \\
\\server 0 \\server
\\server\share 1 \\server\share
\\server\share\DIR 0 \\server\share\DIR
\\server\share\DIR\ 0 \\server\share\DIR\
\\server\share\DIR\file.txt 0 \\server\share\DIR\file.txt
\\\ 1 \\\
\\\server 1 \\\server
\\\server\share 0 \\\server\share
\\\server\share\DIR 0 \\\server\share\DIR
\\\server\share\DIR\ 0 \\\server\share\DIR\
\\\server\share\DIR\file.txt 0 \\\server\share\DIR\file.txt

shlwapi::PathIsNetworkPath()

In Ret Out
0
. 0 .
\ 0 \
c: 0 c:
c:\ 0 c:\
c:\DIR 0 c:\DIR
c:\DIR\ 0 c:\DIR\
c:\DIR\\ 0 c:\DIR\\
c:\DIR\\\ 0 c:\DIR\\\
c:\DIR\. 0 c:\DIR\.
\DIR 0 \DIR
\DIR\ 0 \DIR\
.\DIR 0 .\DIR
.\DIR\ 0 .\DIR\
DIR 0 DIR
DIR\ 0 DIR\
\DIR\file.txt 0 \DIR\file.txt
.\DIR\file.txt 0 .\DIR\file.txt
c:\DIR\file.txt 0 c:\DIR\file.txt
\\ 1 \\
\\server 1 \\server
\\server\share 1 \\server\share
\\server\share\DIR 1 \\server\share\DIR
\\server\share\DIR\ 1 \\server\share\DIR\
\\server\share\DIR\file.txt 1 \\server\share\DIR\file.txt
\\\ 1 \\\
\\\server 1 \\\server
\\\server\share 1 \\\server\share
\\\server\share\DIR 1 \\\server\share\DIR
\\\server\share\DIR\ 1 \\\server\share\DIR\
\\\server\share\DIR\file.txt 1 \\\server\share\DIR\file.txt

shlwapi::PathIsRelative()

In Ret Out
1
. 1 .
\ 0 \
c: 0 c:
c:\ 0 c:\
c:\DIR 0 c:\DIR
c:\DIR\ 0 c:\DIR\
c:\DIR\\ 0 c:\DIR\\
c:\DIR\\\ 0 c:\DIR\\\
c:\DIR\. 0 c:\DIR\.
\DIR 0 \DIR
\DIR\ 0 \DIR\
.\DIR 1 .\DIR
.\DIR\ 1 .\DIR\
DIR 1 DIR
DIR\ 1 DIR\
\DIR\file.txt 0 \DIR\file.txt
.\DIR\file.txt 1 .\DIR\file.txt
c:\DIR\file.txt 0 c:\DIR\file.txt
\\ 0 \\
\\server 0 \\server
\\server\share 0 \\server\share
\\server\share\DIR 0 \\server\share\DIR
\\server\share\DIR\ 0 \\server\share\DIR\
\\server\share\DIR\file.txt 0 \\server\share\DIR\file.txt
\\\ 0 \\\
\\\server 0 \\\server
\\\server\share 0 \\\server\share
\\\server\share\DIR 0 \\\server\share\DIR
\\\server\share\DIR\ 0 \\\server\share\DIR\
\\\server\share\DIR\file.txt 0 \\\server\share\DIR\file.txt

shlwapi::PathFindFileName()

In Ret Out
. . .
\ \ \
c: c: c:
c:\ c:\ c:\
c:\DIR DIR c:\DIR
c:\DIR\ DIR\ c:\DIR\
c:\DIR\\ DIR\\ c:\DIR\\
c:\DIR\\\ DIR\\\ c:\DIR\\\
c:\DIR\. . c:\DIR\.
\DIR DIR \DIR
\DIR\ DIR\ \DIR\
.\DIR DIR .\DIR
.\DIR\ DIR\ .\DIR\
DIR DIR DIR
DIR\ DIR\ DIR\
\DIR\file.txt file.txt \DIR\file.txt
.\DIR\file.txt file.txt .\DIR\file.txt
c:\DIR\file.txt file.txt c:\DIR\file.txt
\\ \\ \\
\\server server \\server
\\server\share share \\server\share
\\server\share\DIR DIR \\server\share\DIR
\\server\share\DIR\ DIR\ \\server\share\DIR\
\\server\share\DIR\file.txt file.txt \\server\share\DIR\file.txt
\\\ \\\ \\\
\\\server server \\\server
\\\server\share share \\\server\share
\\\server\share\DIR DIR \\\server\share\DIR
\\\server\share\DIR\ DIR\ \\\server\share\DIR\
\\\server\share\DIR\file.txt file.txt \\\server\share\DIR\file.txt

shlwapi::PathFindNextComponent()

In Ret Out
0
. .
\ \
c: c:
c:\ c:\
c:\DIR DIR c:\DIR
c:\DIR\ DIR\ c:\DIR\
c:\DIR\\ DIR\\ c:\DIR\\
c:\DIR\\\ DIR\\\ c:\DIR\\\
c:\DIR\. DIR\. c:\DIR\.
\DIR DIR \DIR
\DIR\ DIR\ \DIR\
.\DIR DIR .\DIR
.\DIR\ DIR\ .\DIR\
DIR DIR
DIR\ DIR\
\DIR\file.txt DIR\file.txt \DIR\file.txt
.\DIR\file.txt DIR\file.txt .\DIR\file.txt
c:\DIR\file.txt DIR\file.txt c:\DIR\file.txt
\\ \\
\\server server \\server
\\server\share server\share \\server\share
\\server\share\DIR server\share\DIR \\server\share\DIR
\\server\share\DIR\ server\share\DIR\ \\server\share\DIR\
\\server\share\DIR\file.txt server\share\DIR\file.txt \\server\share\DIR\file.txt
\\\ \ \\\
\\\server \server \\\server
\\\server\share \server\share \\\server\share
\\\server\share\DIR \server\share\DIR \\\server\share\DIR
\\\server\share\DIR\ \server\share\DIR\ \\\server\share\DIR\
\\\server\share\DIR\file.txt \server\share\DIR\file.txt \\\server\share\DIR\file.txt

shlwapi::PathSkipRoot()

In Ret Out
0
. 0 .
\ 0 \
c: 0 c:
c:\ c:\
c:\DIR DIR c:\DIR
c:\DIR\ DIR\ c:\DIR\
c:\DIR\\ DIR\\ c:\DIR\\
c:\DIR\\\ DIR\\\ c:\DIR\\\
c:\DIR\. DIR\. c:\DIR\.
\DIR 0 \DIR
\DIR\ 0 \DIR\
.\DIR 0 .\DIR
.\DIR\ 0 .\DIR\
DIR 0 DIR
DIR\ 0 DIR\
\DIR\file.txt 0 \DIR\file.txt
.\DIR\file.txt 0 .\DIR\file.txt
c:\DIR\file.txt DIR\file.txt c:\DIR\file.txt
\\ 0 \\
\\server 0 \\server
\\server\share 0 \\server\share
\\server\share\DIR DIR \\server\share\DIR
\\server\share\DIR\ DIR\ \\server\share\DIR\
\\server\share\DIR\file.txt DIR\file.txt \\server\share\DIR\file.txt
\\\ 0 \\\
\\\server 0 \\\server
\\\server\share share \\\server\share
\\\server\share\DIR share\DIR \\\server\share\DIR
\\\server\share\DIR\ share\DIR\ \\\server\share\DIR\
\\\server\share\DIR\file.txt share\DIR\file.txt \\\server\share\DIR\file.txt
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s