C# Get folder size GetFileSizeEx

  • Thread starter Thread starter Jason
  • Start date Start date
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
 
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
 
Back
Top