My first clue would be the cast on the 5th parameter. If you’re having to
cast a char* to a char**, something is wrong. I’m not familiar with this
call, but I would be willing to bet that the function allocates the buffer
and returns a pointer to it in the 5th argument. Therefore, you variable
should be a char* Buffer and passed as &Buffer.
Just my guess,
Greg
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Girish Kulkarni
Sent: Tuesday, October 03, 2000 7:12 PM
To: NT Developers Interest List
Subject: [ntdev] NetFileEnumHi !
i have the following code segment …
i am not getting proper values in the Buffer.
any ideas what i am missing?char Buffer[1000];
DWORD read,total;
DWORD *dw = NULL ;NetFileEnum(NULL,NULL,NULL,3,(unsigned char
**)Buffer,MAX_PREFERRED_LENGTH,&read,&total,dw);regards
-girish
You are currently subscribed to ntdev as: xxxxx@pdq.net
To unsubscribe send a blank email to $subst(‘Email.Unsub’)