Jump to content

Recommended Posts

Posted

Hi,

 

1. To retrieve FireBird Folder (Server side) and others Special windows Folders (Common Application, program Files, system32, ...)

 

Can i use this classical function (uses shlObj)

In uniservermodule :

 

-------------------------------------------------

function GetSystemPath(Folder: Integer): string;

var

PIDL: PItemIDList;

Path: LPSTR;

AMalloc: IMalloc;

begin

Path := StrAlloc(MAX_PATH);

SHGetSpecialFolderLocation(Application.Handle, Folder, PIDL);

 

if SHGetPathFromIDList(PIDL, Path) then Result := Path;

 

SHGetMalloc(AMalloc);

AMalloc.Free(PIDL);

StrDispose(Path);

end;

 

 

Usage:

 

Showmessage(GetSystemPath(CSIDL_DESKTOPDIRECTORY));

----------------------------------------------------

 

 

2. Why should i use (server side) :

uniservermodule.startpath

Instead of

ExtractFilePath(Application.exeName)

 

What is the difference ?

 

 

3. To retrieve (client side) DeskTop directory, can i use

In MainModule :

GetSystemPath(CSIDL_DESKTOPDIRECTORY)) ?

 

Thx.

Posted

Instead of

ExtractFilePath(Application.exeName)

What is the difference ?

 

If you use ISAPI-DLL this could be another path (not dll path).

 

3. To retrieve (client side) DeskTop directory, can i use

In MainModule :

GetSystemPath(CSIDL_DESKTOPDIRECTORY)) ?

You cannot  get/access folders of the client (in a browser window).

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...