Looks like the record is not allocated. Call
new() (and later
dispose())
Something like:
var
pConnectionParameters : Pndu_WLAN_CONNECTION_PARAMETERS;
begin
// just to show the logic.
New(pConnectionParameters);
pConnectionParameters^.dwFlags := 0;
// and somewhere later.
Dispose(pConnectionParameters);
end.
Alternatively you can declare the var as the T version instead of the P version. That also gives you an accessible record and does not need new/dispose.
If the record already exists use the code by 440bx (our posts crossed)