A Windows Vista forum. Vista Banter

Welcome to Vista Banter.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to ask questions and reply to others posts, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

Go Back   Home » Vista Banter forum » Microsoft Windows Vista » Windows Vista File Management
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Windows Vista File Management Issues or questions in relation to Vista's file management. (microsoft.public.windows.vista.file_management)

How to resolve symbolic links in code?



 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old December 5th 06, 02:29 PM posted to microsoft.public.windows.vista.file_management
Muemeister
external usenet poster
 
Posts: 18
Default 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 :-)
  #2 (permalink)  
Old December 6th 06, 01:25 AM posted to microsoft.public.windows.vista.file_management
Jimmy Brush
external usenet poster
 
Posts: 827
Default 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
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:17 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.Search Engine Optimization by vBSEO 3.0.0 RC6
Copyright ©2004-2024 Vista Banter.
The comments are property of their posters.