Indigo Rose Software

Professional Software Development Tools

 
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 28
  1. #1
    Join Date
    May 2006
    Posts
    5,380

    FreeDLL: GetFolderLocations

    ok, ok, i know what you all going to say.....use "Shell.GetFolder"

    but heres the deal, shell.getfolder dose not get all the system folders, so heres a dll that dose,


    heres a list of the number values for each folder in vista and xp
    Code:
    Vista
    0 C:\Users\Username\Desktop\
    2 C:\Users\Username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\
    5 C:\Users\Username\Documents\
    6 C:\Users\Username\Favorites\
    7 C:\Users\Username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\
    8 C:\Users\Username\AppData\Roaming\Microsoft\Windows\Recent\
    9 C:\Users\Username\AppData\Roaming\Microsoft\Windows\SendTo\
    11 C:\Users\Username\AppData\Roaming\Microsoft\Windows\Start Menu\
    13 C:\Users\Username\Music\
    14 C:\Users\Username\Videos\
    16 C:\Users\Username\Desktop\
    19 C:\Users\Username\AppData\Roaming\Microsoft\Windows\Network Shortcuts\
    20 C:\Windows\Fonts\
    21 C:\Users\Username\AppData\Roaming\Microsoft\Windows\Templates\
    22 C:\ProgramData\Microsoft\Windows\Start Menu\
    23 C:\ProgramData\Microsoft\Windows\Start Menu\Programs\
    24 C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\
    25 C:\Users\Public\Desktop\
    26 C:\Users\Username\AppData\Roaming\
    27 C:\Users\Username\AppData\Roaming\Microsoft\Windows\Printer Shortcuts\
    28 C:\Users\Username\AppData\Local\
    29 C:\Users\Username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\
    30 C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\
    31 C:\Users\Username\Favorites\
    32 C:\Users\Username\AppData\Local\Microsoft\Windows\Temporary Internet Files\
    33 C:\Users\Username\AppData\Roaming\Microsoft\Windows\Cookies\
    34 C:\Users\Username\AppData\Local\Microsoft\Windows\History\
    35 C:\ProgramData\
    36 C:\Windows\
    37 C:\Windows\System32\
    38 C:\Program Files\
    39 C:\Users\Username\Pictures\
    40 C:\Users\Username\
    41 C:\Windows\System32\
    42 C:\Program Files\
    43 C:\Program Files\Common Files\
    44 C:\Program Files\Common Files\
    45 C:\ProgramData\Microsoft\Windows\Templates\
    46 C:\Users\Public\Documents\
    47 C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\
    48 C:\Users\Username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Administrative Tools\
    53 C:\Users\Public\Music\
    54 C:\Users\Public\Pictures\
    55 C:\Users\Public\Videos\
    56 C:\Windows\Resources\
    59 C:\Users\Username\AppData\Local\Microsoft\Windows\Burn\Burn\
    
    
    
     XP
    0 C:\Documents And Settings\Username\Desktop\ 
    2 C:\Documents And Settings\Username\start Menu\Programs\ 
    5 C:\Documents And Settings\Username\My Documents\ 
    6 C:\Documents And Settings\Username\Favorites\ 
    7 C:\Documents And Settings\Username\start Menu\Programs\Startup\ 
    8 C:\Documents And Settings\Username\Recent\ 
    9 C:\Documents And Settings\Username\SendTo\ 
    11 C:\Documents And Settings\Username\start Menu\ 
    13 C:\Documents And Settings\Username\My Documents\My Music\ 
    16 C:\Documents And Settings\Username\Desktop\ 
    19 C:\Documents And Settings\Username\NetHood\ 
    20 C:\WINDOWS\Fonts\ 
    21 C:\Documents And Settings\Username\Templates\ 
    22 C:\Documents And Settings\All Users\start Menu\ 
    23 C:\Documents And Settings\All Users\start Menu\Programs\ 
    24 C:\Documents And Settings\All Users\start Menu\Programs\Startup\ 
    25 C:\Documents And Settings\All Users\Desktop\ 
    26 C:\Documents And Settings\Username\Application Data\ 
    27 C:\Documents And Settings\Username\PrintHood\ 
    28 C:\Documents And Settings\Username\Local Settings\Application Data\ 
    31 C:\Documents And Settings\All Users\Favorites\ 
    32 C:\Documents And Settings\Username\Local Settings\Temporary Internet Files\ 
    33 C:\Documents And Settings\Username\Cookies\ 
    34 C:\Documents And Settings\Username\Local Settings\History\ 
    35 C:\Documents And Settings\All Users\Application Data\ 
    36 C:\WINDOWS\ 
    37 C:\WINDOWS\system32\ 
    38 C:\Program Files\ 
    39 C:\Documents And Settings\Username\My Documents\My Pictures\ 
    40 C:\Documents And Settings\Username\ 
    41 C:\WINDOWS\system32\ 
    43 C:\Program Files\Common Files\ 
    45 C:\Documents And Settings\All Users\Templates\ 
    46 C:\Documents And Settings\All Users\Documents\ 
    47 C:\Documents And Settings\All Users\start Menu\Programs\Administrative Tools\ 
    53 C:\Documents And Settings\All Users\Documents\My Music\ 
    54 C:\Documents And Settings\All Users\Documents\My Pictures\ 
    56 C:\WINDOWS\Resources\ 
    59 C:\Documents And Settings\Username\Local Settings\Application Data\Microsoft\CD Burning\

    Example:
    Code:
    result = DLL.CallFunction("AutoPlay\\Docs\\GetSpecialFolderLocation.dll", "GetSpecialFolderLocation", 59, DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL);
    would return
    Code:
    XP: C:\Documents And Settings\Username\Local Settings\Application Data\Microsoft\CD Burning\
    Vista: C:\Users\Username\AppData\Local\Microsoft\Windows\Burn\Burn\
    This dose work on 98 but i dont have it installed to get the exact codes (if someone with 98 installed could run the example, save the contents of the debug window and send it to me i will add the codes to the list)


    Heres the apz
    Last edited by RizlaUK; 02-01-2009 at 11:35 AM.
    Open your eyes to Narcissism, Don't let her destroy your life!!

  2. #2
    Join Date
    Oct 2006
    Location
    London, UK
    Posts
    351
    Thank you so much, just what i need!

  3. #3
    Join Date
    May 2006
    Posts
    5,380
    no problem MZ
    Open your eyes to Narcissism, Don't let her destroy your life!!

  4. #4
    Join Date
    Oct 2007
    Posts
    15
    Thank you very much
    it's right what i needed
    thanks again

  5. #5
    Join Date
    Aug 2004
    Posts
    11
    Again - Thanks alot, just spent 2 hours trying to do this, then found this. Thank you VERY much

  6. #6
    Join Date
    Aug 2006
    Posts
    355
    Hi

    this is XP 64 bits and VISTA 64 bits compatible?

    thx

  7. #7
    Join Date
    May 2006
    Posts
    5,380
    dunno, i dont have a 64 bit system to try, try it and find out
    Open your eyes to Narcissism, Don't let her destroy your life!!

  8. #8
    Join Date
    May 2006
    Posts
    5,380
    dose AMS even run on 64 bit systems?
    Open your eyes to Narcissism, Don't let her destroy your life!!

  9. #9
    Join Date
    Oct 2007
    Location
    Gensokyo
    Posts
    1,324
    Quote Originally Posted by RizlaUK View Post
    dose AMS even run on 64 bit systems?
    Yes, But runs as x86.

  10. #10
    Join Date
    Aug 2006
    Posts
    355
    No, sorry, I express evil

    (I do not know English)

    Queria know if it detects routes 64-bit systems?

    I'm not sure, but I think there are new variables in 64-bit systems.

    Thank you, a greeting

  11. #11
    Join Date
    May 2006
    Posts
    5,380
    that dll uses "SHGetSpecialFolderLocation" and "SHGetPathFromIDList" API which both appear to present on 64 bit so i would say yes, but it would still need testing
    Open your eyes to Narcissism, Don't let her destroy your life!!

  12. #12
    Join Date
    Aug 2006
    Posts
    355
    Hi

    for example, this new variables:

    %ProgramFilesFolder64%, %CommonFilesFolder64%, %System32(64)%, etc

    thx

  13. #13
    Join Date
    May 2006
    Posts
    5,380
    but im not useing session variables, im useing API

    sol, i dont have 64 bit system so i cant test so im not doing anything to the dll

    have you tested it on 64 bit system yet ??
    Open your eyes to Narcissism, Don't let her destroy your life!!

  14. #14
    Join Date
    Oct 2002
    Location
    RealFake, RF
    Posts
    403
    I've been running into folder access problems with a major client. Basicly, my app runs another exe in the user's temp folder. But in random cases, it fails to launch the app without warning. Now through all of the troubleshooting, I've narrowed it down to a permissions issue. My question is this...

    1) I'm thinking about getting a certificate to eliminate any question from the OS (knowing that this won't neccessarily fix anything other than an annoying unknown author popup on Vista). But since the exe I'm launching is background, might this fix the strange no-execuation situation?

    2) I'm thinking of moving the temp folder from _TempFolder to their all-users shared documents folder. I'm thinking that this might allow me to have more movement without setting off any flags (for this client, I need as little user interaction as possible). Do you think that moving the folder will make a difference?

    3) Should I be using the all-users shared documents folder as a temp folder or is this against protocol? I other words, if this would be considered a breach of some standardized coding rule or ethic, then which fodler could I use universally across most OS's that would grant me behind the scenes manuverability?



    I'm using your GetFolderLocations (specifically folder #46 - the all users documents folder). Is it okay to use and temporarily store info here or am I going to get pummelted by the online community for some shameful act?

    Its really a Windows directory protocol question. Help with the other facets of this question is greatly appreciated as well!

    Thanks, crew!
    "White-colla-AMS-gangsta."

  15. #15
    Join Date
    Oct 2006
    Posts
    345
    hi buddy

    i find myself in need of the ability to inject a file into the users "Quick Launch" folder.

    initially, this needs to be a shortcut, and for the current user only.

    eventually, i need to expand this to all users, and inject possibly a .scf file.

    i know from testing, the quick launch folder is profile specific, and does not have an "all users" equivalent running parallel, like the destop does.

    is it possible to use your DLL to return initially the current users QuickLaunch folder, and then later use it to return ALL of them on the system ?


    ps, just to be awkward, i need this to be compatible on ALL versions of windows, from 98 through to vista 64bit.

    all help appreciated


    one, last question, aimed at anyone and everyone.... from a user account with admin rights, can i write to the quick launch folders for all users, or am i going to run into a permissions issue ?

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts