Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

How to access a Mac resource fork file from Windows NT

Posted on 1998-03-27
4
Medium Priority
?
917 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 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

Independent Software Vendors: 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

Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
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…
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 create, access, and change arrays in the C programming language.
Suggested Courses

580 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