WinINet: function HttpOpenRequest parameter lplpszAcceptTypes lazarus / 34-Windows ---------------------------------------------------------------------- Lagavulin16 · 2012-12-04 11:23 One parameter of the function HttpOpenRequest is lplpszAcceptTypes (see wininet.pp). According to MSDN this parameter is a pointer to a null-terminated array of strings that indicates media types accepted by the client. How do I have to set this parameter in Lazarus if the client only accepts JPGs? 'jpg/*' or PChar('jpg/*') will be refused by the compiler because it's not LPPCSTR, off course. LPPCSTR(PChar('jpg/*')) will be compiled, but will raise an exception when executed. ---------------------------------------------------------------------- marcov · 2012-12-06 22:44 A null terminated array of strings (which are in them selves also nul terminated) means that a two item list is a pointer to something that looks like str1 #0 str2 #0 #0 Note that it effectively ends in two #0s. In summary, try LPPCSTR(PChar('jpg/*'#0#0)) in theory one #0 should do also, but just in case.