Hi,

I am looking for a way to share the root directory (\) in the SMB/CIF
server. I am running Windows CE 5.0. All other shares I have created work, I
can access the contents of the other shares but not on \ .

This is the contents of my [HKLM\Services\SMBServer\]:
[HKEY_LOCAL_MACHINE\Services\SMBServer\Shares]
"UseAuthentication"=dword:00000001
[HKEY_LOCAL_MACHINE\Services\SMBServer\Shares\Images]
"Path"="\\FlashFS"
"Type"=dword:00000000
[HKEY_LOCAL_MACHINE\Services\SMBServer\Shares\root]
"UserList"="3vlig"
"Path"="\\"
"Type"=dword:00000000
[HKEY_LOCAL_MACHINE\Services\SMBServer\Shares\temp]
"Path"="\\Temp"
"Type"=dword:00000000
[HKEY_LOCAL_MACHINE\Services\SMBServer\Shares\windows]
"Path"="\\Windows"
"Type"=dword:00000000
"UserList"="3vlig"

This is the output from Debug in Platform Builder:

1043766 PID:a3d337ea TID:239a5002 0x83c3f414: Invalid handle: Set=7 Method=8
1043768 PID:a3d337ea TID:239a5002 0x83c3f414: Invalid handle: Set=7 Method=8
1043778 PID:a3d337ea TID:439a9392 SMBSRV: TRANACT --
ActiveConnection::NextFile failed!
1043792 PID:a3d337ea TID:239a5002 0x83c3f414: SMBSRV: Invalid char in path
\\desktop.ini
1043792 PID:a3d337ea TID:239a5002 SMBSRV-CRACKER: SMB_OpenX -- error
filename has invalid character!

Is there a way to avoid this problem? Apparently SMBServer does not like the
double slashes in the pathname.

Im wondering If it is possible to create a "link" in the filesystem (\Root
that points to \) and then I share \Root instead. Although I have yet to
discover if it is at all possible to do it this way ...

best regards,
/Christer Olofsson

RE: SMB/CIF sharing the root of Windows CE device? by Christer

Christer
Thu Jun 09 06:04:01 CDT 2005

I have continued my investigation and looked at the traffic going on between
an XP client and the Windows CE SMB/CIF server using Ethereal.

When sharing any other directory than the root, the SMB/CIF server respons
with all files in the directory in the Trans2 Response, FIND_FIRST2.
BUT, when browsing the \ directory the Trans2 Response, FIND_FIRST2 only
contains the files "." and "..".

This suggests to me there is a problem in the CE SMB/CIF Server.

Anyone else have suggestions?

/Christer

"Christer" wrote:

> Hi,
>
> I am looking for a way to share the root directory (\) in the SMB/CIF
> server. I am running Windows CE 5.0. All other shares I have created work, I
> can access the contents of the other shares but not on \ .
>
> This is the contents of my [HKLM\Services\SMBServer\]:
> [HKEY_LOCAL_MACHINE\Services\SMBServer\Shares]
> "UseAuthentication"=dword:00000001
> [HKEY_LOCAL_MACHINE\Services\SMBServer\Shares\Images]
> "Path"="\\FlashFS"
> "Type"=dword:00000000
> [HKEY_LOCAL_MACHINE\Services\SMBServer\Shares\root]
> "UserList"="3vlig"
> "Path"="\\"
> "Type"=dword:00000000
> [HKEY_LOCAL_MACHINE\Services\SMBServer\Shares\temp]
> "Path"="\\Temp"
> "Type"=dword:00000000
> [HKEY_LOCAL_MACHINE\Services\SMBServer\Shares\windows]
> "Path"="\\Windows"
> "Type"=dword:00000000
> "UserList"="3vlig"
>
> This is the output from Debug in Platform Builder:
>
> 1043766 PID:a3d337ea TID:239a5002 0x83c3f414: Invalid handle: Set=7 Method=8
> 1043768 PID:a3d337ea TID:239a5002 0x83c3f414: Invalid handle: Set=7 Method=8
> 1043778 PID:a3d337ea TID:439a9392 SMBSRV: TRANACT --
> ActiveConnection::NextFile failed!
> 1043792 PID:a3d337ea TID:239a5002 0x83c3f414: SMBSRV: Invalid char in path
> \\desktop.ini
> 1043792 PID:a3d337ea TID:239a5002 SMBSRV-CRACKER: SMB_OpenX -- error
> filename has invalid character!
>
> Is there a way to avoid this problem? Apparently SMBServer does not like the
> double slashes in the pathname.
>
> Im wondering If it is possible to create a "link" in the filesystem (\Root
> that points to \) and then I share \Root instead. Although I have yet to
> discover if it is at all possible to do it this way ...
>
> best regards,
> /Christer Olofsson