B
BR
Hi,
I need to call a native windows method which has the following
signature
BOOL SomeMethod(PVOID* value);
value [out] - The original value.
I am calling this method using DllImport and am passing in an IntPtr.
Intptr val = IntPtr.Zero;
bool status = SomeMethod(val);
but this results in the method returning failure and GetLastError
gives me error code 1. (ERROR_INVALID_FUNCTION)
I suspect that this is because I am not passing in the correct data
type from the managed code.
What managed datatype should I use for a PVOID* ?
Thanks,
Roshan
I need to call a native windows method which has the following
signature
BOOL SomeMethod(PVOID* value);
value [out] - The original value.
I am calling this method using DllImport and am passing in an IntPtr.
Intptr val = IntPtr.Zero;
bool status = SomeMethod(val);
but this results in the method returning failure and GetLastError
gives me error code 1. (ERROR_INVALID_FUNCTION)
I suspect that this is because I am not passing in the correct data
type from the managed code.
What managed datatype should I use for a PVOID* ?
Thanks,
Roshan