I haven’t used the call you stated,
but here is an idea or two. I see that you have passed Buffer as
a pointer to a pointer to a char. Buffer is a pointer to a char.
If you want the types to match pass in address of Buffer, or to
be really explicit &&Buffer[0]. If NetFileEnum really uses pointer
to a pointer to a char then it would use the first 4 bytes of Buffer
to use as an address for the data. That of course could be bad.
Also, dw is just passed in as a NULL. Should it be a NULL.
If you want the function to give dw a value, the call there
would probably also be a pointer to a pointer so &dw would be
the right way to get data into dw. I have not looked up
the function that you are calling however, so I’m just
writing down common type problems.
Zach
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Girish Kulkarni
Sent: Tuesday, October 03, 2000 8:12 PM
To: NT Developers Interest List
Subject: [ntdev] NetFileEnum
Hi !
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@gigaton.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)