OK I now have this function (from MSDN):
Which I have externed like so:
According to MSDN pListOfExplicitEntries should be "A pointer to an array of EXPLICIT_ACCESS structures"
OK, well I have an EXPLICIT_ACCESS structure that I've made no problems. But how do I pass an ARRAY of them into that function?
If I pass a single one (which is all I want to pass in) into the function like this:
It returns error code 87 which means "The parameter is incorrect."
So it doesn't like a single one because it wants an array. Well I figured that Blitz Arrays are no doubt structred in a different way from C++ arrays, but I could be wrong so I tried this:
But I still get the same error code and now I am officially stuck and going half insane. Man I need a cup of tea.
Please help!
DWORD WINAPI SetEntriesInAcl( __in ULONG cCountOfExplicitEntries, __in_opt PEXPLICIT_ACCESS pListOfExplicitEntries, __in_opt PACL OldAcl, __out PACL* NewAcl );
Which I have externed like so:
Function SetEntriesInAclA(cCountOfExplicitEntries:Int,pListOfExplicitEntries:Byte Ptr,.. OldAcl: Byte Ptr, NewAcl: Byte Ptr)
According to MSDN pListOfExplicitEntries should be "A pointer to an array of EXPLICIT_ACCESS structures"
OK, well I have an EXPLICIT_ACCESS structure that I've made no problems. But how do I pass an ARRAY of them into that function?
If I pass a single one (which is all I want to pass in) into the function like this:
Local ea:TEXPLICIT_ACCESS = new TEXPLICIT_ACCESS SetEntriesInAcl(1,ea,null,MyACL)
It returns error code 87 which means "The parameter is incorrect."
So it doesn't like a single one because it wants an array. Well I figured that Blitz Arrays are no doubt structred in a different way from C++ arrays, but I could be wrong so I tried this:
Local eaArray:TEXPLICIT_ACCESS[1] Local ea:TEXPLICIT_ACCESS = eaArray[0] ea = New TEXPLICIT_ACCESS SetEntriesInAcl(1,eaArray,null,MyACL)
But I still get the same error code and now I am officially stuck and going half insane. Man I need a cup of tea.
Please help!