Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NetUserGetGroups and NetUserGetLocalGroups erratic
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00602643
Message ID:
00603919
Views:
30
Thanks! It was the trailing nulls that did it, i.e.,

cUser = STRCONV(cUser,5)+CHR(0)+CHR(0)

Incidentally, I changed the length to -1 (MAX_PREFERRED_LENGTH) so the API would decide how long the buffer should be.

Neil
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform