{"action":"created","issue":{"url":"https://api.github.com/repos/dokan-dev/dokany/issues/528","repository_url":"https://api.github.com/repos/dokan-dev/dokany","labels_url":"https://api.github.com/repos/dokan-dev/dokany/issues/528/labels{/name}","comments_url":"https://api.github.com/repos/dokan-dev/dokany/issues/528/comments","events_url":"https://api.github.com/repos/dokan-dev/dokany/issues/528/events","html_url":"https://github.com/dokan-dev/dokany/issues/528","id":235141911,"number":528,"title":"The window does not refresh the mounted volume by itself when run the mirror by service","user":{"login":"noairman","id":10110303,"avatar_url":"https://avatars3.githubusercontent.com/u/10110303?v=4","gravatar_id":"","url":"https://api.github.com/users/noairman","html_url":"https://github.com/noairman","followers_url":"https://api.github.com/users/noairman/followers","following_url":"https://api.github.com/users/noairman/following{/other_user}","gists_url":"https://api.github.com/users/noairman/gists{/gist_id}","starred_url":"https://api.github.com/users/noairman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noairman/subscriptions","organizations_url":"https://api.github.com/users/noairman/orgs","repos_url":"https://api.github.com/users/noairman/repos","events_url":"https://api.github.com/users/noairman/events{/privacy}","received_events_url":"https://api.github.com/users/noairman/received_events","type":"User","site_admin":false},"labels":[{"id":156128831,"url":"https://api.github.com/repos/dokan-dev/dokany/labels/Bug","name":"Bug","color":"fc2929","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":51,"created_at":"2017-06-12T07:08:29Z","updated_at":"2018-05-28T07:59:29Z","closed_at":null,"author_association":"NONE","body":"# Environment\r\n * Windows version: 10 or 7\r\n * Processor architecture: 64 bit\r\n * Dokany version: Release 1.0.3\r\n * Library type (Dokany/FUSE): dokany\r\n \r\n# Check List\r\n  - [x] I checked my issue [doesn't exist yet](https://github.com/dokan-dev/dokany/issues?utf8=%E2%9C%93&q=is%3Aissue)\r\n  - [x] My issue is valid with mirror default sample and not specific to my user-mode driver implementation\r\n  - [x] I can always reproduce the issue with the provided description below.\r\n  - [x] I have updated Dokany to the [latest version](https://github.com/dokan-dev/dokany/releases) and have reboot my computer after.\r\n  - [x] I tested one of the last [snapshot](https://github.com/dokan-dev/dokany/wiki/Build#user-snapshot) from appveyor CI\r\n\r\n# Description\r\nI add the mirror.exe path to a service(the HKLM\\SYSTEM\\CurrentControlSet\\Services registry tree) with the follwing value:\r\nStartType=0x2 (SERVICE_AUTO_START)\r\nServiceType=0x00000010 (SERVICE_WIN32_OWN_PROCESS) \r\nhttps://docs.microsoft.com/zh-cn/windows-hardware/drivers/install/inf-addservice-directive\r\n![reg content](https://user-images.githubusercontent.com/10110303/27022659-864be250-4f81-11e7-8bb4-0f1fdf70d5c2.jpg)\r\n\r\nIn that case ,I start the service and I can't find the M: volume until i refresh on the contextmenu or use the F5 key.And when I stop the service, unmounted it ,the M: volume is still there until refresh the window\r\nI change the StartType to 0x0 (SERVICE_BOOT_START) or 0x1 (SERVICE_SYSTEM_START) and\r\nServiceType to 0x00000020 (SERVICE_WIN32_SHARE_PROCESS) or 0x00000002 (SERVICE_FILE_SYSTEM_DRIVER),it is still the same.\r\n**I mount it with /o flag(mount manager), it is still the same**\r\n\r\nbut if we just run the mirror.exe in the cmd.exe,the window will show the M: volume by itself,and disappear by itself when stop the service.\r\n\r\nIs there any thing about the application compatibility – Session 0 Isolation\r\nhttps://blogs.technet.microsoft.com/askperf/2007/04/27/application-compatibility-session-0-isolation/\r\nAnd i do not know how can i locate the cause of the error.\r\n**But with the dokan 0.6 sys,I did the same thing,there is no issue**\r\n\r\n\r\nAnd i test the volume management functions(https://msdn.microsoft.com/en-us/library/windows/desktop/aa365730(v=vs.85).aspx) :\r\na.\r\nsome of the functions return false when mount without the /o flag,like the GetVolumePathName , GetVolumeInformationByHandleW or GetVolumeNameForVolumeMountPoint, and the last error is 87 ERROR_INVALID_PARAMETER.But the window can see it even if the api return false, and i don't know why\r\nb.\r\nwhen mount with the /o flag,the function SetVolumeMountPoint return false ,and the last error is 145 directory is not empty,but the VolumeMountPoint in M:，the directory is not empty )\r\n"},"comment":{"url":"https://api.github.com/repos/dokan-dev/dokany/issues/comments/392450916","html_url":"https://github.com/dokan-dev/dokany/issues/528#issuecomment-392450916","issue_url":"https://api.github.com/repos/dokan-dev/dokany/issues/528","id":392450916,"user":{"login":"naveen508","id":38241638,"avatar_url":"https://avatars3.githubusercontent.com/u/38241638?v=4","gravatar_id":"","url":"https://api.github.com/users/naveen508","html_url":"https://github.com/naveen508","followers_url":"https://api.github.com/users/naveen508/followers","following_url":"https://api.github.com/users/naveen508/following{/other_user}","gists_url":"https://api.github.com/users/naveen508/gists{/gist_id}","starred_url":"https://api.github.com/users/naveen508/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naveen508/subscriptions","organizations_url":"https://api.github.com/users/naveen508/orgs","repos_url":"https://api.github.com/users/naveen508/repos","events_url":"https://api.github.com/users/naveen508/events{/privacy}","received_events_url":"https://api.github.com/users/naveen508/received_events","type":"User","site_admin":false},"created_at":"2018-05-28T07:59:29Z","updated_at":"2018-05-28T07:59:29Z","author_association":"NONE","body":"Hi,\r\n\r\nDid you guys find any resolution for this issue?\r\n\r\nThanks"}}
{"actor":{"display_login":"naveen508"}}