C# Get folder size GetFileSizeEx

J

Jason

Hello

I've got a C# app, and I need to get a folder size and I ran across a Win
API call that should accomplish this. GetFileSizeEx

The function has an out parm to a struct of typw LARGE_INTEGER. In C# how
do I refrence this type of a structure?

Thanks
 
A

Arne Vajhøj

Jason said:
I've got a C# app, and I need to get a folder size and I ran across a Win
API call that should accomplish this. GetFileSizeEx

The function has an out parm to a struct of typw LARGE_INTEGER. In C# how
do I refrence this type of a structure?

First attempt: long.

Second attempt: a struct with FieldOffset.

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top