Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to run a program from the same process where the VFS is running #3

Open
Karandra opened this issue Nov 12, 2018 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Karandra
Copy link
Owner

Karandra commented Nov 12, 2018

The problem

It's not possible to run any program from in the same process where the VFS is running. It doesn't matter what kind of process creation is used (CreateProcess, ShellExecute, etc). An attempt to do so causes VFS unmounting. In case of CreateProcess the functions fails with ERROR_INVALID_PARAMETER.

Environment

  • Version: any version.
  • Operation system: Windows 7 x64 (should occur on any system)

Details

This is somehow related to security functions KxVFSBase::OnGetFileSecurity and KxVFSBase::OnSetFileSecurity. If they are implemented as in Dokany mirror sample it's not possible to run any process at all no matter in which process it's created. If these functions returns STATUS_NOT_IMPLEMENTED then process creation is possible, but only from another process.

Related issue in Dokany repository: dokan-dev/dokany#650

Workaround

Use proxy process to run VFS and some kind of interprocess communication (IPC) to control VFS.

@Karandra Karandra added the bug Something isn't working label Nov 12, 2018
@Karandra Karandra self-assigned this Nov 12, 2018
@Karandra Karandra changed the title Impossible to run a a program from the same process where the VFS is running Impossible to run a program from the same process where the VFS is running Nov 16, 2018
@Karandra
Copy link
Owner Author

Karandra commented Jan 2, 2019

It seems that latest update (starting with bb32fff) solved this issue at least in test console program that builds in debug mode. I'm still unable to run any program in Kortex Mod Manager using same run parameters. Maybe some deadlock happens?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant