What kind of permissions do you want to check?
It is possible to check the access rigths to specific files by comparing the SIDs (Security ID's) in the access token with the ones in the DACL (Discetionary Access Control List) in the files security descriptor. If this is what you want, I can post some sample code when I'm home (in about 3 hours). I wrote a program that can do this some month ago.