• LPC NtCreatePort size arguments and also the DataInfoOffset field.

    From R.Wieser@21:1/5 to All on Sun Dec 29 18:26:41 2024
    Hello all,

    I'm trying to figure out how to use Local Procedure Calls (on XPsp3), and
    got /something/ running.

    But I've got questions:

    #1 : NtCreatePort has a 'MaxConnectionInfoLength' and a 'MaxMessageLength' field, which I do not quite understand. I can go upto 260 on the first one, and upto 328 on the second (gleaned from snippets I found on the web).

    The thing is that if I take the length of the PORT_MESSAGE record (24 bytes) and add 260 it does not add up to 328. IOW, there seems to be place for
    some other/more data, but have not come across anything mentioning it.
    Also, I seem to be able to append upto 304 bytes of data to the PORT_MESSAGE record without a problem. Whats going on ?

    #2 : The PORT_MESSAGE record has got a 'DataInfOffset' field which purpose I can't find anywhere (snippets from the web always set it to Zero). Is there someone who knows and is willing to explain ?

    Regards,
    Rudy Wieser

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)