Hi, I'm calling C++ function from a C# windows application. The DllImport declaration is at
http://www.pinvoke.net/default.aspx/ntdsapi/DsCrackNames.htmlONe of the function is decared as:
[DllImport("ntdsapi.dll", CharSet=CharSet.Auto, SetLastError = false)]
static public extern uint DsCrackNames(
IntPtr hDS,
DS_NAME_FLAGS flags,
DS_NAME_FORMAT formatOffered,
DS_NAME_FORMAT formatDesired,
uint cNames,
[MarshalAs(UnmanagedType.L
PArray, ArraySubType = UnmanagedType.LPWStr, SizeParamIndex = 4)]
string[] rpNames,
string[] rpNames,
out IntPtr ppResult // PDS_NAME_RESULT
);
1. How do I get the result returned in ppResult?
2. I tried testing calling this funciton and assign the function result to a unit variable but am not able to read its value in Debug. How can I tell if the function returns No_Error?
Thank you.
Start Free Trial