Skip to content
⌘ NSIS Forum Archive

System::Call PathIsNetworkPath

5 posts

jammusi#

System::Call PathIsNetworkPath

Hi

I am have troubles calling to win32 shlwapi32::PathIsNetworkPath

Trying

System::Call 'shlwapi::PathIsNetworkPath(t $EXEPATH) .r1'
Resulting R1 to hold empty string

I also found this post with similar issue which suggested the following

System::Call 'shlwapi32::PathIsNetworkPath(t "C:\Users\Oren\Documents\NSIS") i .r0 ?e'
But in this case $0 holds the value error

Please advise

Tx

Oren
jammusi#
This works.

Can you please explain what is the problem with the two ways i have tried?

tx

Oren
Afrow UK#
For the first one you are 1. missing quotes around the path string and 2. missing a type for the return value (i).

The second one would have worked except shlwapi32.dll doesn't exist (at least not on my machine).

Stu