I have windows10 and WSL environment. Suppose I want to access a WSL file via windows API ,eg
HFILE WINAPI OpenFile(
_In_ LPCSTR lpFileName,
_Out_ LPOFSTRUCT lpReOpenBuff,
_In_ UINT uStyle
);
How can I access file in windows like these
OpenFile(L"/opt/file" ... )
instead of
OpenFile(L"\\\\wsl$\\Ubuntu\\opt\\file" ... )
Can we use API or Windows mklink/driver remap ways to made it?