PC Review


Reply
Thread Tools Rate Thread

Checking File and Print Sharing

 
 
Jeff
Guest
Posts: n/a
 
      22nd Aug 2004
Hi -

I'm creating an installation program that will install a VB.NET program and
an instance of MSDE on an unknown desktop (commercial application). The
install will include the MSDE redistributable files (and it will launch the
MSDE Setup.exe to install MSDE).

I've read that "Except on Win 98 and Millennium, file and print sharing must
be active"

How can my install program ensure this (programmatically)? More
specifically:

Where (registry setting or elsewhere) do I check for these settings, and
what name-value pairs are valid?

Is this the correct approach?

Thanks for your help.

- Jeff


 
Reply With Quote
 
 
 
 
Peter Huang
Guest
Posts: n/a
 
      23rd Aug 2004
Hi Jeff,

I think there is no easy way to do it programmatically. You may try to If
you search "file and printer sharing" enable wmi in google groups, you can
find a lot of hits on this topic. From the link, we will find one tool
named Snetcfg can be used to get close to it.

I also searched in our internal database and found the following
information for you:
You can control file and printer sharing bysetting
hklm\system\currentcontrolset\services\class\vxd\vnetsup FileSharing - AND
- PrinterSharing.

One must first make sure that "VREDIR" and "VNETSUP" are installed. You can
do this with IPNEW. There is a Client ID string for vredir, you will need
to create a new one for Vnetsup. Set the string value of the registry
entry to "On" to allow the specified sharing and "Off" to disable the
specified sharing option.

You can install one tool named regmon from www.sysinternals.com to monitor
registry value's change.
For how to install "file and printer sharing", please refer to one DDK
sample IPNEW on the Win98 DDK. It can be used to do that.
In fact, this question is better asked in DDK group since this function on
Win9X is implemented in DDK.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

 
Reply With Quote
 
[MSFT]
Guest
Posts: n/a
 
      25th Aug 2004
Hi Jeff,

Thank you for the information. We will perform further research on the
issue and update you as soon as possible.

Luke

 
Reply With Quote
 
Yan-Hong Huang[MSFT]
Guest
Posts: n/a
 
      26th Aug 2004
Hi Jeff,

My colleague directed me to this post.

As I mentioned before, in order to accomplish this task, we need to go
through DDK way. For the time being, it is not possible to use VB or .NET
application to develop it. There is no way to use VB to accomplish it
directly.

For a possible workaround, you may develop it in C++ as a DLL and export
some functions. In VB, you can call functions from the DLL to do that.

Hope that helps.

Best regards,
Yanhong Huang
Microsoft Community Support

Get Secure! ¨C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
-http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.as
p&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.

 
Reply With Quote
 
Jeff
Guest
Posts: n/a
 
      26th Aug 2004
Your response doesn't help at all, YanHong.

- Jeff


"Yan-Hong Huang[MSFT]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi Jeff,
>
> My colleague directed me to this post.
>
> As I mentioned before, in order to accomplish this task, we need to go
> through DDK way. For the time being, it is not possible to use VB or .NET
> application to develop it. There is no way to use VB to accomplish it
> directly.
>
> For a possible workaround, you may develop it in C++ as a DLL and export
> some functions. In VB, you can call functions from the DLL to do that.
>
> Hope that helps.
>
> Best regards,
> Yanhong Huang
> Microsoft Community Support
>
> Get Secure! ¨C www.microsoft.com/security
> Register to Access MSDN Managed Newsgroups!
> -http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.

as
> p&SD=msdn
>
> This posting is provided "AS IS" with no warranties, and confers no

rights.
>



 
Reply With Quote
 
Yan-Hong Huang[MSFT]
Guest
Posts: n/a
 
      30th Aug 2004
Hi Jeff,

I am afraid I didn't mention it quite clearyly. In order to accomplish what
you need, the only way is DDK programming. So it can't be done in VB
programming directly.

I understand you are not familar with C++ programming. You can contact
Microsoft Product Support Service(PSS) on it if necessary.

Thanks very much for your understanding.

Best regards,
Yanhong Huang
Microsoft Community Support

Get Secure! ¨C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
-http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.as
p&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: file and print sharing Cari \(MS-MVP\) Windows XP Print / Fax 0 28th Dec 2006 02:32 AM
Disable File Sharing & Enable Print Sharing ElvisS Windows XP Networking 1 14th Nov 2005 03:36 PM
Re: file and print sharing Doug Knox MS-MVP Windows XP General 0 31st Aug 2005 03:21 PM
XP Home Network - print sharing is fine, but file sharing has disappeared Katy Pearce Windows XP Networking 0 9th Sep 2003 02:58 PM
print sharing but don't want file sharing jackolo Windows XP Networking 1 13th Aug 2003 09:35 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:18 PM.