jammusi
13th March 2011 16:31 UTC
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
errorPlease advise
Tx
Oren
Afrow UK
13th March 2011 16:38 UTC
System::Call `Shlwapi::PathIsNetworkPath(t "$EXEPATH") i.r1`
Stu
jammusi
13th March 2011 18:31 UTC
This works.
Can you please explain what is the problem with the two ways i have tried?
tx
Oren
Afrow UK
13th March 2011 19:05 UTC
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
jammusi
13th March 2011 21:46 UTC
Thanks a lot mate
:up: