We help IT Professionals succeed at work.

What is Visual C# equivalent of HANDLE data type?

rangers99
rangers99 asked
on
Medium Priority
1,591 Views
Last Modified: 2012-05-07
Hi

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"?
Comment
Watch Question

Senior Software Engineer (Avast)
CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Jaime OlivaresSoftware Architect
CERTIFIED EXPERT
Top Expert 2008

Commented:
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.
Dirk HaestProject manager
CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.