File handle is a memory allocated for the given FILE_PTR from system memory pool. Theoretically, it is possible to get it by walking through kernel data. Unfortunately MFS does not provide this API to do that. You can save the fopen returned file handle into a global variable. I don't think it will be missed .:)