Accessing Resource information programatically

G

Guest

Hi,

I have Macintosh files stored on a Windows 2000 Server machine using Services for Macintosh. I need to develop an application running on Windows which can extract resource fork information such as File type, creator, Finder attributes, etc. Could you point me to any documentation explaining how the Mac resource fork is stored and how I can access this information programmatically?
 
R

Rod Dorman

I have Macintosh files stored on a Windows 2000 Server machine using
Services for Macintosh. I need to develop an application running on
Windows which can extract resource fork information such as File type,
creator, Finder attributes, etc. Could you point me to any documentation
explaining how the Mac resource fork is stored and how I can access this
information programmatically?

INFO: Accessing the Macintosh Resource Fork
http://support.microsoft.com/support/kb/articles/Q106/6/63.asp
 
P

Patrick Peccatte

In
Den42 said:
Hi,

I have Macintosh files stored on a Windows 2000 Server machine using
Services for Macintosh. I need to develop an application running on
Windows which can extract resource fork information such as File
type, creator, Finder attributes, etc. Could you point me to any
documentation explaining how the Mac resource fork is stored and how
I can access this information programmatically?

David Foster had a page explaining shortly the stuff, but it seems out:
http://www.panix.com/~dfoster/prog/SFMInfo.txt
You can find a discussion on topic here (dated 1997!):
http://tinyurl.com/s8es

Attn Pierre Duhem:
Obawbhe Cvreer
Gbhwbhef svqèyr à y'vagétengvba Znp/Jva...
Vy snhg dhr wr ceraar pbagnpg nirp ibhf nvyyrhef dhr fhe Hfrarg, gbhg qr zêzr!
 
G

Guest

Thanks for the information folks.

Now I need to get at the filename. If there are any characters not allowed on Windows, but allowed on the Mac these show up as ? characters when using FindNextFile. Tried looking in the AfpInfo stream. Does anybody know where else to look or how I can ge the correct character codes?
 
P

Pierre Duhem

Thanks for the information folks.

Now I need to get at the filename. If there are any characters not
allowed on Windows, but allowed on the Mac these show up as ? characters
when using FindNextFile. Tried looking in the AfpInfo stream. Does
anybody know where else to look or how I can ge the correct character
codes?

It is explained at length in the documentation on SFM in the MSDN CDs.
Basically, they use the 0xFExx range to store the Macintosh specific
characters. You should use Unicode-aware functions.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top