Why smbmrx does't work with Virtual pc

Hi All,

I’m studying redirector with IFS kit sample package "smbmrx ". What I did is to use Virtual pc to run two guest OS: one is Win2k, and the other is Win2003 server, and successful to load and start smbmrx on Win2003 server. But when I use net cmd to access the share folder on Win2k, it never fall into CIFS (smbmrx mini driver). :frowning:
Other provider is used to access the folder.

Then I use Windbg and found that net provider(smbmrxnp.dll) always complains that
lpNetResource->dwType(value=0) is not RESOURCETYPE_DISK(1) in NPAddConnection(), then just return WN_BAD_NETNAME. How can I solve this problem. It seems that virtual PC’s harddisk drive is not DISK type???

Thanks a lot!
Best regards,
Leon Weng

PS: my host OS is XP, and networking of win2k & 03 server are using local only with virtual PC.

Type 0 would be:

#define RESOURCETYPE_ANY 0x00000000

So did you try modifying it to convert ANY to DISK and see if it works?

Tony

Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com

Hi Tony,

Thanks for your reply!

Yes, I manually try with DISK type. It can send IOCTL_SMBMRX_ADDCONN to miniport driver. But
miniport driver fail with ZwCreateFile. Today I have found the reason about the failure of ZwCreateFile: original mrxsmb should be disabled.

Best regards,
LW