tag:blogger.com,1999:blog-3228715591733432689.post9200275503784590637..comments2023-03-01T05:15:09.773-05:00Comments on Bear Naked Code: Connect to a UNC path with security credentialsAdrian Hayeshttp://www.blogger.com/profile/17084091939713264454noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-3228715591733432689.post-18040767480196086282017-11-28T12:22:32.969-05:002017-11-28T12:22:32.969-05:00You are my hero!You are my hero!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3228715591733432689.post-70130154572908110492014-01-27T16:47:41.516-05:002014-01-27T16:47:41.516-05:00Do you have an example of using a filestream withi...Do you have an example of using a filestream within the "Insert your code" block?<br /><br />I'm not quite sure how to use this correctly.<br /><br />Thanks a lot!KHnoreply@blogger.comtag:blogger.com,1999:blog-3228715591733432689.post-85735969879076865622011-11-03T18:17:08.927-04:002011-11-03T18:17:08.927-04:00Thank you! I'm glad it helped.
You could pro...Thank you! I'm glad it helped.<br /><br />You could probably use a NetUseGetInfo command (http://socuteurl.com/buddypuppydog) and pass it a Use_Info_2 structure (http://socuteurl.com/fishybunnytubby) with the connection specified. NetUseGetInfo should fill in the ui2_status with the connection status. <br /><br />Let me know how it goes.Adrian Hayeshttps://www.blogger.com/profile/17084091939713264454noreply@blogger.comtag:blogger.com,1999:blog-3228715591733432689.post-5965417851201012122011-11-03T16:06:43.575-04:002011-11-03T16:06:43.575-04:00Great post! I have this working. My only problem...Great post! I have this working. My only problem is that if there is a share that is currently accessed and I try to access again in my code, I get an error that it is already connected. Do you know of a way, in code, to see all current connections and force those close before attempting to connect?Britttdhttps://www.blogger.com/profile/10440000825155747549noreply@blogger.comtag:blogger.com,1999:blog-3228715591733432689.post-61131495847811871202010-09-07T02:25:21.709-04:002010-09-07T02:25:21.709-04:00Good to hear. Thanks!Good to hear. Thanks!Adrian Hayeshttps://www.blogger.com/profile/17084091939713264454noreply@blogger.comtag:blogger.com,1999:blog-3228715591733432689.post-91927996848595242242010-09-04T02:43:38.850-04:002010-09-04T02:43:38.850-04:00Thanks for this solution, i found it at codeprojec...Thanks for this solution, i found it at codeproject, it solved my problem to 100%Daniel Sirzhttp://blog.sirz.denoreply@blogger.com