Salut,
mon problème est je n'arrive pas à récupérer le nom du pc avec le code suivant sous Windows 2000 (ça me renvoie "") :
char * ChercheNomPC()
{
static char Buffer;
int i = 0;
gethostname(&Buffer, sizeof(&Buffer));
return &Buffer;
}
Si vous avez la moindre idée du pourquoi, hésitez pas.
Je prends tout.
YOYO, @+.
YOYO 