473,386 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Checking File and Print Sharing

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
Nov 21 '05 #1
5 2413
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\v netsup 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.

Nov 21 '05 #2
Hi Jeff,

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

Luke

Nov 21 '05 #3
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.

Nov 21 '05 #4
Your response doesn't help at all, YanHong.

- Jeff
"Yan-Hong Huang[MSFT]" <yh*****@online.microsoft.com> wrote in message
news:tH**************@cpmsftngxa10.phx.gbl...
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.

Nov 21 '05 #5
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.

Nov 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Tongu? Yumruk | last post by:
I have a little proposal about type checking in python. I'll be glad if you read and comment on it. Sorry for my bad english (I'm not a native English speaker) A Little Stricter Typing in Python...
6
by: varlagas | last post by:
We disabled the antivirus software but the problem persists. Any clues? Many thanks in advance! Panagiotis Varlagas ======================================================================= ...
6
by: Tom C. | last post by:
Hi I'm trying to create a web form that will print a MS Word doc from the web form. I'm using VB.net. This is the code example Dim WordApp As New Word.Applicati Private Sub...
13
by: George | last post by:
Hi, I am re-writing part of my application using C#. This application starts another process which execute a "legacy" program. This legacy program writes to a log file and before it ends, it...
1
by: halcyon943 | last post by:
have 4 folders that I watch and need to move files from to another location. Three constraints: -Finish time. Make sure the program stops transferring files at a specific time -Number of...
4
by: Michael Yanowitz | last post by:
Hello: If I have a long string (such as a Python file). I search for a sub-string in that string and find it. Is there a way to determine if that found sub-string is inside single-quotes or...
7
by: sprash | last post by:
Newbie question: I'm trying to determine if a file physically exists regardless of the permissions on it Using File.Exists() returns false if it physically exists but the process does not...
3
by: Nader | last post by:
Hello, I read some files name from a directory and then I put these name in a list. I will check whether it is empty or not, and I would do it with an exception. With if statement it is very...
1
by: scotter86 | last post by:
Hi everyone, I have kind of an odd question. What I'm trying to do is have a program run when I want to print something. A little background on my situation is, I'm sharing a little thermal...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.