Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is A User a Member of a Group?
Message
 
À
08/12/2003 13:29:05
Spencer Redfield
Managed Healthcare Northwest, Inc.
Portland, Oregon, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00856438
Message ID:
00856952
Vues:
19
Hi Spence,

I already added an example
Obtaining names of local and global groups for the current user (WinNT/XP/2K)
at http://www.news2news.com/vfp/?example=431
take a look.

(1)
MAX_PREFERRED_LENGTH is defined as -1

This and other constants are available online at
http://www.news2news.com/vfp/w32constants.php

(2)
In this particular example LPBYTE* bufptr is declared as INTEGER @.
Note that the buffer is allocated by the API function, and must be freed in the end -- NetApiBufferFree is used.

I hope that the code is self-explanatory enough. Otherwise ask questions :)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform