Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Reading a Ulong from pointer

Avatar of Pvoers
Pvoers asked on
Visual Basic.NET
5 Comments1 Solution625 ViewsLast Modified:
I use wtsapi32.dll to retrieve different values of a terminalserver session.

The line of code: Dim sessionInfo As Boolean = WTSQuerySessionInformation(IntPtr.Zero.ToInt32, -1, WTS_INFO_CLASS.WTSClientHardwareId, Buffer, bytesReturned)

buffer returns a pointer to a ulong that represents a hardware ID of the client.

I'm trying to read a ulong from a pointer in vb.net 2005 with the marshal class but I only can read signed integers ReadInt64.

Is there a way to get this done so I can determen the hardware ID of client connecting to the terminal server?


Avatar of AlexFM

Our community of experts have been thoroughly vetted for their expertise and industry experience.

This problem has been solved!
Unlock 1 Answer and 5 Comments.
See Answers