PIAliasSuite.h

Go to the documentation of this file.
00001 // ADOBE SYSTEMS INCORPORATED
00002 // Copyright  2003 - 2005 Adobe Systems Incorporated
00003 // All Rights Reserved
00004 //
00005 // NOTICE:  Adobe permits you to use, modify, and distribute this 
00006 // file in accordance with the terms of the Adobe license agreement
00007 // accompanying it.  If you have received this file from a source
00008 // other than Adobe, then your use, modification, or distribution
00009 // of it requires the prior written permission of Adobe.
00010 //-------------------------------------------------------------------
00047 #pragma once
00048 
00049 #ifndef __PIAliasSuite__
00050 #define __PIAliasSuite__
00051 
00052 //-------------------------------------------------------------------------------
00053 //  Includes.
00054 //-------------------------------------------------------------------------------
00055 #include "PIGeneral.h"
00056 
00057 //-------------------------------------------------------------------------------
00058 //  C++ wrapper.
00059 //-------------------------------------------------------------------------------
00060 #ifdef __cplusplus
00061 extern "C" {
00062 #endif
00063 
00064 //-------------------------------------------------------------------------------
00065 //  UI Alias suite.
00066 //-------------------------------------------------------------------------------
00068 #define kPSAliasSuite               "Photoshop Alias Utility Suite"
00069 
00070 
00071 //-------------------------------------------------------------------------------
00072 //  
00073 //-------------------------------------------------------------------------------
00074 
00081 typedef SPAPI SPErr         (*MacNewAliasFromCStringProc) (const char *cStringPathToFile, AliasHandle *alias  );
00082 
00089 typedef SPAPI SPErr         (*MacNewAliasFromFSRefProc)( const void *fsRefToFile, AliasHandle *alias  );
00090     
00098 typedef SPAPI SPErr         (*MacNewAliasFromNameAndFSRefProc)( const void *cfStringFilename, const void *fsRefToParentDir, AliasHandle *alias );
00099     
00106 typedef SPAPI SPErr         (*WinNewAliasFromWidePathProc)( const uint16 *filePathAsUTF16, AliasHandle *alias );
00107 
00114 typedef SPAPI SPErr         (*WinNewAliasFromPIDLProc)( const void *pidlToFile, AliasHandle *alias );
00115 
00116 
00117 //-------------------------------------------------------------------------------
00118 //   Alias suite version 1.
00119 //-------------------------------------------------------------------------------
00120 
00122 #define kPSAliasSuiteVersion1       1
00123 
00125 typedef struct 
00126     {
00127         MacNewAliasFromCStringProc MacNewAliasFromCString;           
00128         MacNewAliasFromFSRefProc MacNewAliasFromFSRef;               
00129         MacNewAliasFromNameAndFSRefProc MacNewAliasFromNameAndFSRef; 
00130         WinNewAliasFromWidePathProc WinNewAliasFromWidePath;         
00131         WinNewAliasFromPIDLProc WinNewAliasFromPIDL;                 
00132     } PSAliasSuite;
00133 
00134 
00135 //-------------------------------------------------------------------------------
00136 //  C++ wrapper.
00137 //-------------------------------------------------------------------------------
00138 #ifdef __cplusplus
00139 }
00140 #endif
00141 
00143 #endif // __PIAliasSuite__
00144