Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get FSRef for a unicode path



On 08-05-22, at 08:24, Nick Rogers wrote:

1. How to get an FSRef for a unicode path?


	FSRef fsrf = {{0}};
	Boolean is_dir = false;
	char *path = "/Volumes/fw";
	err = FSPathMakeRef( (const UInt8 *)path, &fsrf, &is_dir );


2. I intend to use the following to create a resource fork:


	HFSUniStr255 u255;
	err = FSGetResourceForkName( &u255 );
	err = FSCreateResourceFork( &fsrf, u255.length, u255.unicode, 0 );


Philip Aker echo email@hidden@nl | tr a-z@. p-za-o.@

Sent from my SE/30

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >How to get FSRef for a unicode path (From: Nick Rogers <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.