.NETGURU
NetShareGetInfo API Call
Messages   Related Types
This message was discovered on microsoft.public.dotnet.languages.vb.upgrade.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
Post a new message to this list...

Ralph Mallamace
Hi All,

I've posted this to various other VB newsgroups and haven't got any
responses, so I hope there are some intelligent people here who
actually have an idea in this area.

I've been trying to get the API NetShareGetInfo running in VB.NET.
Does anyone have any working examples of getting this to work?

I am using the following declaration which I don't even know if it is
correct, but I also need an example of how to use this call this as
well as I have tried Strings, Char Arrays, everything I can think of
but there is always errors.

Declare Auto Function NetShareGetInfo Lib "NETAPI32" ( _
ByRef ServerName As String, _
ByRef NetName As String, _
ByVal Level As Integer, _
ByRef Buffer As IntPtr _
) As Integer

Thanks in advance!
Reply to this message...
 
    
Patrick Steele [MVP] (VIP)
In article <Click here to reveal e-mail address>,
Click here to reveal e-mail address says...
[Original message clipped]

Try http://www.pinvoke.net

--
Patrick Steele
Microsoft .NET MVP
http://weblogs.asp.net/psteele
Reply to this message...
 
    
Ralph Mallamace
Hi Patrick,

I've already looked at http://www.pinvoke.net and no one seems to update
these API's with decent examples. I finally worked out how to do a
NetShareGetInfo API call in VB.NET myself from looking at VB 6 code and
various other API calls and finally stumbled across a solution that
seems to work. Its probably not the best solution, buts its a solution
that seems to work - and since I just updated pinvoke with it its
probably the only one available for VB.NET on the internet at the
moment.

Cheers

Ralph

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Reply to this message...
 
 
System.IntPtr




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification