Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to access a Mac resource fork file from Windows NT

Posted on 1998-03-27
4
Medium Priority
?
911 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
[X]
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
  • 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 300 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand and use structures in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.

715 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