Re: Laufwerksbuchstaben und Sharename



Hallo Axel

> Wie bekomme ich am einfachsten in .net aus einem Laufwerksbuchstaben den
> dazugehörigen Sharenamen (bzw. Servernamen)
> also ich will z.B. aus F: die Info \\server\share ermitteln.


vermutlich zB PInvoke auf Win32 WNetGetUniversalName
http://www.codeproject.com/cs/internet/networkshares.asp
http://www.pinvoke.net/default.aspx/advapi32/WNetGetUniversalName.html
oder andere APIs, oder WMI:
http://groups.google.com/group/microsoft.public.dotnet.general/msg/bbd79d0a7e22f283
oder alte ActiveX (FSO) o.ä.,
oder Registry
http://groups.google.com/group/microsoft.public.de.german.entwickler.dotnet.vb/browse_frm/thread/1ffef0a24f40b7da/



--
Thomas Scheidegger - MVP .NET - 'NETMaster'
http://www.cetus-links.org/oo_dotnet.html - http://dnetmaster.net/


.



Relevant Pages

  • Re: API used by WMI
    ... anyone know what APIs are used by WMI to access this data? ... Is it simply reading this info from the registry or directly from the firmware? ...
    (microsoft.public.win32.programmer.wmi)
  • Re: COMM Port Descriptions
    ... which is a wrapper around the WMI COM APIs. ... Richard Grier, MVP ...
    (microsoft.public.vb.general.discussion)
  • Re: Functions in CE dlls
    ... It lists coredll.lib which means that to PInvoke the CreateFile API you'd ... We don't have an tables mapping DLLs -> APIs, ... windowing which would exclude the corresponding graphics & windowing APIs. ... FWIW, if you can copy the DLL to the desktop, you can run "dumpbin /exports ...
    (microsoft.public.windowsce.app.development)
  • PlaySound, pause etc
    ... If I call PlaySound through PInvoke, is there any way to pause it and resume ... are there any other APIs that would allow me to play a sound ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Is there any way to create DNS entries programatically?
    ... WMI or ADSI is the way to do it so far. ... installed on the dns server you want to manage. ... > I see there are a bunch of Dns* APIs in MSND Platform SDK documentaton. ...
    (microsoft.public.win2000.dns)