Hi, David -
It appears that you and Ed are doubling up on this question (which really isn't necessary, by the way), so I will repeat this response in the other thread.
I've never called this WinAPI function before, but in looking at the Windows documentation, it looks like it can be called with null arguments, and this affects how the function is called from PB. Therefore, I have a couple of questions:
1. Are you wanting to run this function on the local server (where the app is running) or on a remote (non-local) server?
2. Are you wanting only the names of the groups (the GROUP_USER_INFO_0 structure) or the names and attribute flags (the GROUP_USER_INFO_1 structure)?
I'm willing to try and figure out how to get the information into a PB app once I hear back from you, but please know that I have a limited amount of free time at home in the evening in which to tackle this, as my employer understandably does not want to pay me for working on other people's problems. Once I hear back from either/both of you, I'll see what I can come up with.
Best regards, John
Apologies for the late response, as I have driving to another state to attend a wedding.
Both structures are internal, local object structures defined and contained within the non-visual object (the “os_” prefix is Hungarian notation for “object structure”).
If you are not familiar with the mechanics on how to view an object structure in the Painter, just Edit Source and you’ll see their definitions near the top of the source code. Both structures are very simple, but the member data types must be as I have coded them for them to work in 64-bit (PowerServer).