开发者

How to refresh explorer after mounting to show mounted drive in VC++?

开发者 https://www.devze.com 2023-02-04 23:14 出处:网络
I am using driver code for mounting FTP Drives with NPAddConnection3 now the problem is when i mount the driv开发者_运维问答e it gets mounted but i need to kill explorer and restart manually to see th

I am using driver code for mounting FTP Drives with NPAddConnection3 now the problem is when i mount the driv开发者_运维问答e it gets mounted but i need to kill explorer and restart manually to see the mounted drive .

How to solve this problem ? How i can get see mounted drive without killing the explorer ? Thanks in Advance.


You should call SHChangeNotify - depending on how you register your driver pick SHCNE_ADDDRIVE, SHCNE_NETSHARE etc.

Docs here on MSDN:

http://msdn.microsoft.com/en-us/library/bb762118(VS.85).aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号