Accessing Resource information programatically

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 
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
 
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!
 
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?
 
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.
 
Back
Top