wandan
(Getting the hang of it)
2002-12-02 06:35 PM
access dll function

Hello.

Is it possible to access a function within a dll without registering the dll.
Something like a createobjekt(xyz.dll)

Is there a way?

Regards
Danny


Kdyer
(KiX Supporter)
2002-12-02 06:37 PM
Re: access dll function

Danny,

Don't think so..

Usually when you register a DLL there are registry entries added that are needed for future use.

Kent


LonkeroAdministrator
(KiX Master Guru)
2002-12-02 06:37 PM
Re: access dll function

haven't seen.
well rundll32.exe could do that but you can't do much with it.


Sealeopard
(KiX Master)
2002-12-02 06:38 PM
Re: access dll function

Additionally, the DLL that you try to access must support the COM interface (which in turn requires the registration). You cannot access just any DLL.

wandan
(Getting the hang of it)
2002-12-02 06:49 PM
Re: access dll function

Hi

Thank you for your answer.
The Problem is, i whant to use a function within a dll.
But I donīt want to install this dll on all of our citrix servers...

Regards
Danny


Kdyer
(KiX Supporter)
2002-12-02 06:54 PM
Re: access dll function

What DLL?

Kent


LonkeroAdministrator
(KiX Master Guru)
2002-12-02 06:55 PM
Re: access dll function

what function?

Sealeopard
(KiX Master)
2002-12-02 07:12 PM
Re: access dll function

Does the DLL support COM?

LonkeroAdministrator
(KiX Master Guru)
2002-12-02 07:20 PM
Re: access dll function

quickie could be, don't install it, just load and unload [Smile]

dunno if you have ever used unix but on those machines there are parts called modules which can be loaded at the beginning of script if needed.

you could do the same by executing in your script:
regsvr32 kixforms.dll /i /n /s

if it can export it...
mm, not all dll's can be loaded with that anyway.
have to test.


Les
(KiX Master)
2002-12-02 09:51 PM
Re: access dll function

Danny had posted earlier looking for a way to determine the vesion of the Citrix client. I referred him to the WTSManager.dll but it has to be registered as it is COM. Danny has 40 terminal servers.

Richard Howarth however did post a CLI utility that could be run without the need to register.


Kdyer
(KiX Supporter)
2002-12-03 02:30 AM
Re: access dll function

Hmm..

What about?

code:
$CIT = "C:\Program Files\Citrix\ICA Client\PN.EXE"
IF EXIST($CIT)
$citrixfilevver = GETFILEVERSION($CIT,"FILEVERSION")
?$citrixfilevver
ENDIF



LonkeroAdministrator
(KiX Master Guru)
2002-12-03 02:31 AM
Re: access dll function

only problem is that it's a server that needs to do the check.

wandan
(Getting the hang of it)
2002-12-03 07:20 AM
Re: access dll function

Hello all.

Thank you for your good answers.
I fount the ctxcinfo.exe to do my client version check.

Works fine. Thank you.

Regards
Danny