Solved

How to access a Mac resource fork file from Windows NT

Posted on 1998-03-27
4
901 Views
Last Modified: 2008-02-01
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.
0
Comment
Question by:manuelf
  • 2
  • 2
4 Comments
 
LVL 1

Expert Comment

by:hustch
ID: 1257875
Where is the file located (NT-Server, Unix ...) ?
0
 

Author Comment

by:manuelf
ID: 1257876
The file is located in a NT-Server.
0
 
LVL 1

Accepted Solution

by:
hustch earned 100 total points
ID: 1257877
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
http://support.microsoft.com/support/kb/articles/Q101/3/53.asp)
This is why, you loose the resourceforks, when moving files with explorer.
0
 

Author Comment

by:manuelf
ID: 1257878
Thank you very much for your help. I am going to try what you propose.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now