Hello,
Let me preface this post by saying I am in no way a PB developer. I have inherited several PB Classic applications that need some work in converting them to run on Windows 7 64bit.
Right now I am trying to get a user's network id using the following code:
FUNCTION long GetUserNameW(ref string UserName, ref ulong BufferLength) LIBRARY "ADVAPI32.DLL"
and then calling GetUserNameW with:
long ll_ret
ulong BufferLength = 100 // you may need to adjust this. see Note
is_network_id = Space(BufferLength)
ll_ret = GetUserNameW(is_network_id, BufferLength)
is_network_id = lower(is_network_id)
This works as expected when debugging, however, when I click run from the PB 12.5 classic IDE, it doesn't return the network ID.
Can someone point me a direction towards figuring this out?
Thanks,
Chris