1. Re[2]: shfolder.dll

Thanks.
I am using it for getting special folder, such as windir, system dir,
program files dir, startmenu/programs dir, fonts dir etc.
Are there other method for getting those?

>> I just reinstalled Windows 98 first edition, and tried to run my EU program.
>> 
>> But I got an error, after tracing it is because I don't have
>> "shfolder.dll". I need it for function "SHGetFolderPathA" to get paths
>> of special folders.
>> 
>> Do you have shfolder.dll in your system directory? I already have it
>> in other dir but just want to survey.
>> 
>> How to make a substitute for "SHGetFolderPathA" function?

M> I have it \WINDOWS\System. Win98 SE. In shlobj.h, SHGetFolderPathA
M> is defined under
M>     #if (_WIN32_IE >= 0x0500)

M> this means it's only present when you have MSIE 5.0 or later.

M>     Martin

new topic     » topic index » view message » categorize

2. Re: Re[2]: shfolder.dll

The registry :

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell
Folders

    Martin

----- Original Message ----- 
From: <akusaya at gmx.net>
To: "EUforum" <EUforum at topica.com>
Subject: Re[2]: shfolder.dll


> 
> Thanks.
> I am using it for getting special folder, such as windir, system dir,
> program files dir, startmenu/programs dir, fonts dir etc.
> Are there other method for getting those?
> 
> >> I just reinstalled Windows 98 first edition, and tried to run my EU
> >> program.
> >> 
> >> But I got an error, after tracing it is because I don't have
> >> "shfolder.dll". I need it for function "SHGetFolderPathA" to get paths
> >> of special folders.
> >> 
> >> Do you have shfolder.dll in your system directory? I already have it
> >> in other dir but just want to survey.
> >> 
> >> How to make a substitute for "SHGetFolderPathA" function?
> 
> M> I have it \WINDOWS\System. Win98 SE. In shlobj.h, SHGetFolderPathA
> M> is defined under
> M>     #if (_WIN32_IE >= 0x0500)
> 
> M> this means it's only present when you have MSIE 5.0 or later.
> 
> M>     Martin
> 
> 
> 
>

new topic     » goto parent     » topic index » view message » categorize

3. Re[2]: shfolder.dll

Yeah, it's right. Thanks very much!

May I ask one time more, how if the Windows is set to
multi-user/profile mode:

1. HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion
   ProgramFilesDir = ???
2. HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell
Folders
   * = ???
3. HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User
Shell Folders
   * = ??? (because I see this key inside file shfolder.dll)

thanks!

j> Hi,

j> akusaya wrote:

>> Thanks, it's right, but where is the program files dir (usually
>> C:\Program files) ?
>> [...]

j> Hm.. I don't know. Looking for "C:\Program files" in the registry
j> wouldn't be a good idea, because there are many entrys related to it.
j> So I tried the following (using Win 98, 1st edition):

j> - making directory "c:\pipapo"
- regedit >> looking for "pipapo" -- not found, as expected
- tweakui >> My Computer > Special Folders:
j>   setting %Program Files% to "c:\pipapo" (+ holding my breath  smile
- regedit >> looking for pipapo -- found once,
j>     branch: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion
j>     entry : ProgramFilesDir = "C:\pipapo"

j> Unfortunately I'm not sure, if this finding can be generalized, but why
j> not? smile

j> Best regards,
j> Juergen


j> PS: Euphoria and this list are new to me. I wish to thank RDS very much
j>     for having created this both simple and powerful language, which is
j>     very elegant and flexible. At the moment, I'm beginning to gather
j>     some experience with it, and it seems to me, that Euphoria is the
j>     programming language, I always have been looking for. smile
j>     I am also very impressed by the "Euphoria community" and the
j>     archive, which e.g. make it much easier to write windows programs,
j>     let me use a parser generator (or try to understand how it works
j>     smile, let me deal with fuzzy sets, and.. and.. Thanks a lot!

new topic     » goto parent     » topic index » view message » categorize

4. Re: Re[2]: shfolder.dll

akusaya wrote:
> May I ask one time more, how if the Windows is set to
> multi-user/profile mode:
>
> 1. HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion
>    ProgramFilesDir = ???
> 2. HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell
> Folders
>    * = ???
> 3. HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User
> Shell
Folders
>    * = ??? (because I see this key inside file shfolder.dll)
>
> thanks!

I am not sure what are you asking for, but the HKEY_CURRENT_USER tree changes
according to the logged user/profile.

    Martin

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu