--- In [email protected], Rob Kennedy <[EMAIL PROTECTED]> wrote: > > ianhinson wrote: > > --- In [email protected], Rob Kennedy <rkennedy@> wrote: > >> Of course, any function that receives a pointer to a buffer should > >> also receive a number indicating the size of that buffer. > > > > Generally, I'd agree. But in the case of Windows.GetModuleFileName > > there is no buffer length parameter, so the wrapper function also has > > to trust that the programmer has allocated a big enough buffer. > > We're clearly not looking at the same functions. > > Maybe you're thinking of GetTempPath or ShGetFolderPath?
No, I got confused with GetModuleHandle and had a memory lapse. Sorry 'bout that.

