By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,900 Members | 1,368 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,900 IT Pros & Developers. It's quick & easy.

"advanced"? interop

P: n/a
how to interop this

NTSTATUS IoGetDeviceObjectPointer
IN PUNICODE_STRING ObjectName
IN ACCESS_MASK DesiredAccess
OUT PFILE_OBJECT *FileObject
OUT PDEVICE_OBJECT *DeviceObjec
)

the problem is PFILE_OBJECT* and PDEVICE_OBJECT*. I don't want to declare them in C# because I'm not going to use them other than passing them into other functions (plus they are both semi opaque). I tried to use IntPtr, but keep getting NullReferenceException.
Nov 15 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Daniel,
I tried to use IntPtr, but keep getting NullReferenceException.


Passed by value? If so, try making it an out parameter.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.