Re: URGENT -> how to get in Forms information about NT user,...
Date: Sun, 13 Oct 2002 10:37:56 +0200
Message-ID: <jjaq9.157$5O5.11730_at_news.siol.net>
Hi!
In forms you can try:
[Quoted] [Quoted] -->maybe it is complicated but it works fine
-->first you must install "d2kwutil.dll"
ftp://oracle-ftp.oracle.com/dev_tools/patchsets/dev2k/Win95NT/d2kwutil/
D2KWUTIL.PLL is a comprehensive utility containing many of functions for the
[Quoted] Win32 environment that users ask for, which are not included in the Oracle
[Quoted] Developer Product set by default The utility itself consists simply of a
PL/SQL library (D2KWUTIL.PLL) and a Windows DLL (D2KWUT60.DLL).
The utility uses the ORA_FFI package to interact with it's DLL and then this
[Quoted] DLL calls the various Windows API functions and some internal code to carry
[Quoted] out the requested action.
[Quoted] in registry you must tell where "d2kwutil" is "HKEY_LOCAL_MACHINE\Software\Oracle\D2KWUTIL60_PATH" or use "win_api_preload.set_load_loc(directory where d2kwutil is);"
Then it is easy:
-for username "Win_Api_Environment.Get_Windows_Username;"
-for_directory "Win_Api_Environment.Get_Windows_Directory;"
... ... ...
all the information is in the help file...
Boris
"AR" <ar69ra_at_gmx.net> wrote in message
news:lHRp9.138$5O5.10779_at_news.siol.net...
> Hello!
>
>
> I was looking in Help of Oracle Developer, but didn't find what i wa
looking
> for.
>
> So can somebody please help me with next:
> I have Forms application and i have to get information about:
> -program_path -> location of the running application
> -machine -> name of machine
> -nt_user -> user logged on windows
>
> I think that should be retrieved with API functions, but how?
>
>
> tnx for advice
> AR
>
>
Received on Sun Oct 13 2002 - 10:37:56 CEST