• C

How to access a Mac resource fork file from Windows NT

Does anybody know how can I access and/or modify a Macintosh resource fork file from Windows NT?

Is there any API that can give me access to the resource fork files like size, caption, etc.?

If you don't know the answer can you point me to where I could find it? I really need your help!!!

Thank you very much.
Who is Participating?
hustchConnect With a Mentor Commented:
Macintosh resources and file type information are stored in alternative streams under the NTFS file system.
Programmers can use BackupRead, BackupWrite and BackupSeek (plus normal read/write) functions to access alternative streams.

You can use the following (test-)program to investigate files with alternative streams (mainly Macintosh files): ShowStreams.zip in http://www.hautron.com/utils.

The stream used for Macintosh file information is :AFP_AfpInfo:$DATA, while the resources are stored in :AFP_Resource:$DATA
Example: To read the resources of a file called "d:\xxx\yyy.zzz" you just open the file "d:\xxx\yyy.zzz:AFP_Resource:$DATA".
Note, that this does not work when accessing a NT-Server from Windows 95 because it thinks it is an illegal filename.

You can find information about the structure of resource-forks
in the Think Reference from Symantec Corporation.

Microsoft does not fully implement the file stream handling in all its Windows NT system programs (see
This is why, you loose the resourceforks, when moving files with explorer.
Where is the file located (NT-Server, Unix ...) ?
manuelfAuthor Commented:
The file is located in a NT-Server.
manuelfAuthor Commented:
Thank you very much for your help. I am going to try what you propose.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.