If it allows passing NIL/NULL to dwsize, translate it as a pointer to dword (PDWORD).If not, you can also translate it as VAR dwsize : dword;
I'll take a crack at it Code: Pascal [Select][+][-]Function Describe(Const lpSZRulteSet:PWChar; lpSzOut:PWChar; Var dwSize:DWord;):LongInt;Begin If dwSize = 0 Then Begin dwSize := SizeOfTheActualBufferNeeded; Result := OK_CONSTANT; Exit; End; if dwSize < SizeOfTheActualBufferNeeded Then begin Result := ERROR_CONSTANT; Exit; Edn; ///Otherwise; Result := OK_CONSTANT; dwSize := SizeOfTheActualBUfferNeeded; //DO the Code needed to write but to the lpSZOut buffer here; Sorry, Post collision The function should also be labeled as Stdcall and maybe Export..
how do i detect if the program passed a null pointer?