RE: Disabling "File and Printer Sharing for Microsoft- Net works" for an adapter in Win2k

Disregard the below post. It does not correlate to DDK functions but to
functions in a sample that is under construction. Currently the sample is a
bit rough. I can send it to folks who have an urgent need for it and will
let everyone know if/when we it is cleaned up for wider distribution.

-----Original Message-----
From: Eric W Hanson [mailto:xxxxx@microsoft.com]
Sent: Thursday, February 08, 2001 3:15 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Disabling “File and Printer Sharing for Microsoft
Net works” for an adapter in Win2k

You can use the INetCfg API to uninstall any network component including
File and Print Sharing programmatically. Following are the steps:

Call HrGetINetCfg to get a handle to INetCfg with fGetWriteLock set to TRUE;
Call HrUninstallNetComponent with szComponentId = “ms_server” to uninstall
F&P Sharing.
Call HrReleaseINetCfg with fHasWriteLock = TRUE to release the INetCfg
handle.

The INetCfg APIs only work with Unicode strings. So, if your program is in
ANSI then, convert ANSI strings to Unicode before passing to an INetCfg API.

-----Original Message-----
From: Danilo Almeida [mailto:xxxxx@MIT.EDU]
Sent: Thursday, February 08, 2001 12:01 PM
To: NT Developers Interest List
Subject: [ntdev] Disabling “File and Printer Sharing for Microsoft
Networks” for an adapter in Win2k

In Windows 2000, how do I figure out how to programmatically disable “File
and Printer Sharing for Microsoft Networks” for a parituclar network adapter
(with a given connection name)?

  • Danilo

You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com