Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How to access a Mac resource fork file from Windows NT

Posted on 1998-03-27
4
904 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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
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…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

807 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