Windows Vista Forums

How to resolve symbolic links in code?
  1. #1


    MueMeister Guest

    How to resolve symbolic links in code?

    Hi there,

    Short question: How can I resolve the real path of a destination
    including sympoic links?

    Scenario:
    1.) I install an application under C:\Prgogramma\myapp where
    c:\Programma is not a physical path. The shortcut created on the
    desktop also contains this *pseudo* path.



    2.) Now if I want to us ::LoadLibrary() with
    "C:\Programma\myApp\mylib.dll" the call fails because it really tries
    to load the DLL on this path (which does not exist). Same issue for
    GetModuleFileName().

    Do I have to 'translate' the path into a physical one via another
    function first?
    Any ideas?
    TIA
    Mue :-)

      My System SpecsSystem Spec

  2. #2


    Jimmy Brush Guest

    RE: How to resolve symbolic links in code?

    Hello,

    Are you referring to symbolic links or shell shortcuts? If you mean shell
    shortcuts, you will need to use the shell API to dereference them:

    http://msdn.microsoft.com/library/de...s/shortcut.asp

    If you actually mean symbolic links and junctions, they are decoded for you
    automatically by the operating system, and you don't have to do anything
    special in your program to work with them - they look and feel to your
    program as if they were normal folders.

    Here is more information on symbolic links / junctions:

    http://msdn.microsoft.com/library/de...olic_links.asp

    http://msdn.microsoft.com/library/de..._junctions.asp

    --

    - JB

      My System SpecsSystem Spec

How to resolve symbolic links in code? problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
symbolic link not working via share ? tonyb61 Server General 1 28 Feb 2010
Symbolic Link Brock Hensley Server General 1 06 Aug 2009
Junction points and symbolic links Dave Vista General 0 03 Nov 2007
Symbolic links can only be create in the console? Cat Vista General 4 12 Feb 2007
Symbolic Links Philip Vista General 2 12 Apr 2006