What does cfetched=0 mean?

Hi,

while(pEnum->Next(1, &pPin, 0) == S_OK)

what does the 0 for the cfetched argument mean

What is the difference if write it like the below

ULONG cfetched;
while(pEnum->Next(1, &pPin, &cfetched) == S_OK)



Answer this question

What does cfetched=0 mean?

  • Wolfsvein

    absolutely no difference....

  • Darrell Davis

    Thanks. But it would not make any difference if i write cfetched instead of 0. is this correct
  • BobH

    pcFetched is useful only when you are getting more than one object at the same time (cPins>1). In this case it returns the actual number of Pins obtained :

    pcFetched

    [out] Pointer to a variable that receives the number of pins retrieved. Can be NULL if cPins is 1.



  • What does cfetched=0 mean?