I am trying to use the InternetSetCookiefunction of wininet.dll to set a cookie for the following file: "c:\Test\Structure.htm."

The code used os blnDone = InternetSetCookie(sPath. sName, sInfo). where sPath = the file name, sName = The name of the cookie (here it is "IDName") and sInfo = the value of the cookie ("2" in this instance).

When I test this little script, I always get blnDone returning False which means a cookie was never created. Why?