O$10.22: GetEnvironmentVariableW

malkishtini at gmail.com malkishtini at gmail.com
Fri Aug 26 19:50:57 UTC 2022


Hi Greg,
You can use getenv('COMPUTERNAME') on Windows10/Studio 10.2.
I have not tested it on 10.22 yet.

HTH,
Mayada

-----Original Message-----
From: omnisdev-en <omnisdev-en-bounces at lists.omnis-dev.com> On Behalf Of
Grzegorz (Greg) Pasternak
Sent: Friday, August 26, 2022 3:39 PM
To: omnisdev-en at lists.omnis-dev.com
Subject: O$10.22: GetEnvironmentVariableW



The following code works on Windows 10 64bit in Omnis Studio 5.1 Register
DLL ('kernel32.dll','GetEnvironmentVariableW','JCC')
Call DLL
('kernel32.dll','GetEnvironmentVariableW','COMPUTERNAME',vComputerName)
Returns vError

but it does not work on Windows 10 64bit in Omnis Studio 10.22

Any suggestions why?

Grzegorz (Greg) Pasternak





_____________________________________________________________
Manage your list subscriptions at https://lists.omnis-dev.com Start a new
message -> mailto:omnisdev-en at lists.omnis-dev.com 



More information about the omnisdev-en mailing list