What is Visual C# equivalent of HANDLE data type?


Im developing a Windows application using Visual C# and Visual Studio 2008. For part of the project I need to convert some code written in C/C++.  eg

HANDLE  idiot;

How would I define "idiot" in my visual C# code ie. what data type is equivalent to "HANDLE"?
Who is Participating?
evilrixConnect With a Mentor Senior Software Engineer (Avast)Commented:
Jaime OlivaresSoftware ArchitectCommented:
HANDLE is used by a lot of WinAPI functions, I think you have to focus on the function itself, instead of handle.
For every function you will find application examples of C# Interop.
DhaestConnect With a Mentor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.