| Framework | Carbon/Carbon.h |
| Declared in | InternetConfig.h |
Internet Config, a Mac OS 8 and 9 API, supports centralized entry and management of Internet preferences for all of a user’s Internet applications. For example, email programs and Web browsers can obtain a user's name, email address, home page, incoming mail server, and similar preferences from one common place that is easily edited by the user via the Internet Config application.
Mac OS X applications should employ Launch Services and System Configuration for managing Internet preferences. In Mac OS X, Internet Config calls through to these newer APIs. Using them directly increases your application’s efficiency.
If you use Internet Config in Mac OS X, perhaps to maintain backward compatibility for your application with Mac OS 8 and 9, here are some ways to optimize performance.
Getting multiple preferences at once.
Your program may access several Internet Config preferences within a single operation. For example, an FTP program on startup might always get the kICFTPHost, kICFTPProxyHost, kICFTPProxyAccount, kICFTPProxyPassword, and kICFTPProxyUser preferences. Bracket such a sequence of ICGetPref calls with an ICBegin and ICEnd function pair for significantly faster performance.
Calling Internet Config less often.
Your application can cache Internet Config preference data and then watch for changes using one of the preference coherency strategies described in the developer’s online documentation:
http://www.quinn.echidna.id.au/Quinn/Config/Prog_Docs.html#PreferenceCoherency
Using preferences from underlying frameworks.
Starting with Mac OS X, Internet Config is no longer the final authority on Internet preferences. For example, Launch Services stores URL helper application settings, and System Configuration stores the various proxy settings. When called by an application, Internet Config must call through to the appropriate underlying framework. Call Launch Services and System Configuration directly to improve performance.
The Mac OS 8 and 9 implementation of Internet Config is in the public domain, and Carbon supports all of its commonly-used functions. Functions that are not compatible with preemptive threads are not supported, and Internet Config no longer supports multiple configuration files. This document contains information on replacement functions.
For more information on Internet Config see its developer’s web site:
http://www.quinn.echidna.id.au/Quinn/Config
These functions let you create, configure, and destroy connections to Internet Config, denoted by the ICInstance type. Although it is usual to create one connection when your program starts and destroy it when it terminates, you can create an arbitrary number of connections at any time.
These routines are not always required because the commonly used reading and writing calls perform this operation automatically. However, even in that case, these routines are useful if you are making repeated calls because they allow those calls to work faster.
You must call ICBegin before calling any of these routines.
We recommend that you do not provide a user interface for editing Internet Config preferences from within your application. In Mac OS X, simply provide a way for the user to open the Internet pane of System Preferences. The ICEditPreferences function provides support for this.
Internet Config’s high-level functions are suitable for applications that want to easily look up a file type and creator based on an extension, or vice versa. These functions are significantly slower than their lower level counterparts, especially if you call them repeatedly.
These functions are useful if you are doing multiple searches because they avoid the overhead of accessing the mappings database each time.
Internet Config’s low-level functions give you access to the primitive operations used to implement the other mapping functions.
ICGetCurrentProfile
ICSetCurrentProfile
ICCountProfiles
ICGetIndProfile
ICGetProfileName
ICSetProfileName
ICAddProfile
ICDeleteProfile
ICCSetPref
ICCAddMapEntry
ICCAddProfile
ICCBegin
ICCChooseConfig
ICCChooseNewConfig
ICCCountMapEntries
ICCCountPref
ICCCountProfiles
ICCCreateGURLEvent
ICCDefaultFileName
ICCDeleteMapEntry
ICCDeletePref
ICCDeleteProfile
ICCEditPreferences
ICCEnd
ICCFindConfigFile
ICCFindPrefHandle
ICCFindUserConfigFile
ICCGeneralFindConfigFile
ICCGetComponentInstance
ICCGetConfigName
ICCGetConfigReference
ICCGetCurrentProfile
ICCGetDefaultPref
ICCGetIndMapEntry
ICCGetIndPref
ICCGetIndProfile
ICCGetMapEntry
ICCGetMappingInterruptSafe
ICCGetPerm
ICCGetPref
ICCGetPrefHandle
ICCGetProfileName
ICCGetSeed
ICCGetSeedInterruptSafe
ICCGetVersion
ICChooseConfig
ICChooseNewConfig
ICCLaunchURL
ICCMapEntriesFilename
ICCMapEntriesTypeCreator
ICCMapFilename
ICCMapTypeCreator
ICCParseURL
ICCRefreshCaches
ICCRequiresInterruptSafe
ICCSendGURLEvent
ICCSetConfigReference
ICCSetCurrentProfile
ICCSetMapEntry
ICCSetPrefHandle
ICCSetProfileName
ICCSpecifyConfigFile
ICCStart
ICCStop
ICDefaultFileName
ICFindConfigFile
ICFindUserConfigFile
ICGeneralFindConfigFile
ICGetComponentInstance
ICGetConfigReference
ICGetMappingInterruptSafe
ICGetSeedInterruptSafe
ICRefreshCaches
ICRequiresInterruptSafe
ICSetConfigReference
ICSpecifyConfigFile
Adds an entry to the mappings database.
OSStatus ICAddMapEntry ( ICInstance inst, Handle entries, const ICMapEntry *entry );
A result code. See “Result Codes.”
InternetConfig.hCreates a new profile and returns its ID.
OSStatus ICAddProfile ( ICInstance inst, ICProfileID prototypeID, ICProfileID *newID );
A result code. See “Result Codes.”
InternetConfig.hPrepares Internet Config to read (and, optionally, to write) preferences.
OSStatus ICBegin ( ICInstance inst, ICPerm perm );
A result code. See “Result Codes.”
InternetConfig.hUnsupported
OSStatus ICCAddMapEntry ( ComponentInstance inst, Handle entries, ICMapEntry *entry );
Use ICAddMapEntry instead.
InternetConfig.hUnsupported
OSStatus ICCAddProfile ( ComponentInstance inst, ICProfileID prototypeID, ICProfileID *newID );
Use ICAddProfile instead.
InternetConfig.hUnsupported
OSStatus ICCBegin ( ComponentInstance inst, ICPerm perm );
Use ICBegin instead.
InternetConfig.hUnsupported
OSStatus ICCChooseConfig ( ComponentInstance inst );
Because Internet Config no longer supports multiple configuration files, this function is obsolete, and there is no replacement function.
InternetConfig.hUnsupported
OSStatus ICCChooseNewConfig ( ComponentInstance inst );
Because Internet Config no longer supports multiple configuration files, this function is obsolete, and there is no replacement function.
InternetConfig.hUnsupported
OSStatus ICCCountMapEntries ( ComponentInstance inst, Handle entries, SInt32 *count );
Use ICCountMapEntries instead.
InternetConfig.hUnsupported
OSStatus ICCCountPref ( ComponentInstance inst, SInt32 *count );
Use ICCountPref instead.
InternetConfig.hUnsupported
OSStatus ICCCountProfiles ( ComponentInstance inst, SInt32 *count );
Use ICCountProfiles instead.
InternetConfig.hUnsupported
OSStatus ICCCreateGURLEvent ( ComponentInstance inst, OSType helperCreator, Handle urlH, AppleEvent *theEvent );
Use ICCreateGURLEvent instead.
InternetConfig.hUnsupported
OSStatus ICCDefaultFileName ( ComponentInstance inst, Str63 name );
Functions related to finding different IC database files are obsolete. You can simply remove these calls from your code—there are no replacement functions.
InternetConfig.hUnsupported
OSStatus ICCDeleteMapEntry ( ComponentInstance inst, Handle entries, SInt32 pos );
Use ICDeleteMapEntry instead.
InternetConfig.hUnsupported
OSStatus ICCDeletePref ( ComponentInstance inst, ConstStr255Param key );
Use ICDeletePref instead.
InternetConfig.hUnsupported
OSStatus ICCDeleteProfile ( ComponentInstance inst, ICProfileID thisID );
Use ICDeleteProfile instead.
InternetConfig.hUnsupported
OSStatus ICCEditPreferences ( ComponentInstance inst, ConstStr255Param key );
Use ICEditPreferences instead.
InternetConfig.hUnsupported
OSStatus ICCEnd ( ComponentInstance inst );
Use ICEnd instead.
InternetConfig.hUnsupported
OSStatus ICCFindConfigFile ( ComponentInstance inst, SInt16 count, ICDirSpecArrayPtr folders );
Functions related to finding different IC database files are obsolete. You can simply remove these calls from your code—there are no replacement functions.
InternetConfig.hUnsupported
OSStatus ICCFindPrefHandle ( ComponentInstance inst, ConstStr255Param key, ICAttr *attr, Handle prefh );
Use ICFindPrefHandle instead.
InternetConfig.hUnsupported
OSStatus ICCFindUserConfigFile ( ComponentInstance inst, ICDirSpec *where );
Functions related to finding different IC database files are obsolete. You can simply remove these calls from your code—there are no replacement functions.
InternetConfig.hUnsupported
OSStatus ICCGeneralFindConfigFile ( ComponentInstance inst, Boolean searchPrefs, Boolean canCreate, SInt16 count, ICDirSpecArrayPtr folders );
Functions related to finding different IC database files are obsolete. You can simply remove these calls from your code—there are no replacement functions.
InternetConfig.hUnsupported
OSStatus ICCGetComponentInstance ( ComponentInstance inst, ComponentInstance *componentInst );
Because Internet Config is not component-based under Mac OS X, use ICGetVersion instead.
InternetConfig.hUnsupported
OSStatus ICCGetConfigName ( ComponentInstance inst, Boolean longname, Str255 name );
Use ICGetConfigName instead.
InternetConfig.hUnsupported
OSStatus ICCGetConfigReference ( ComponentInstance inst, ICConfigRefHandle ref );
Because Internet Config no longer supports multiple configuration files, this function is obsolete, and there is no replacement function.
InternetConfig.hUnsupported
OSStatus ICCGetCurrentProfile ( ComponentInstance inst, ICProfileID *currentID );
Use ICGetCurrentProfile instead.
InternetConfig.hUnsupported
OSStatus ICCGetDefaultPref ( ComponentInstance inst, ConstStr255Param key, Handle prefH );
Use ICGetDefaultPref instead.
InternetConfig.hUnsupported
OSStatus ICCGetIndMapEntry ( ComponentInstance inst, Handle entries, SInt32 index, SInt32 *pos, ICMapEntry *entry );
Use ICGetIndMapEntry instead.
InternetConfig.hUnsupported
OSStatus ICCGetIndPref ( ComponentInstance inst, SInt32 index, Str255 key );
Use ICGetIndPref instead.
InternetConfig.hUnsupported
OSStatus ICCGetIndProfile ( ComponentInstance inst, SInt32 index, ICProfileID *thisID );
Use ICGetIndProfile instead.
InternetConfig.hUnsupported
OSStatus ICCGetMapEntry ( ComponentInstance inst, Handle entries, SInt32 pos, ICMapEntry *entry );
Use ICGetMapEntry instead.
InternetConfig.hUnsupported
OSStatus ICCGetMappingInterruptSafe ( ComponentInstance inst, Ptr *mappingPref, SInt32 *mappingPrefSize );
ICCGetMappingInterruptSafe is not compatible with preemptive threads. If your application relies on this API, contact Apple Developer Technical Support.
InternetConfig.hUnsupported
OSStatus ICCGetPerm ( ComponentInstance inst, ICPerm *perm );
Use ICGetPerm instead.
InternetConfig.hUnsupported
OSStatus ICCGetPref ( ComponentInstance inst, ConstStr255Param key, ICAttr *attr, Ptr buf, SInt32 *size );
Use ICGetPref instead.
InternetConfig.hUnsupported
OSStatus ICCGetPrefHandle ( ComponentInstance inst, ConstStr255Param key, ICAttr *attr, Handle *prefh );
Use ICFindPrefHandle instead.
InternetConfig.hUnsupported
OSStatus ICCGetProfileName ( ComponentInstance inst, ICProfileID thisID, Str255 name );
Use ICGetProfileName instead.
InternetConfig.hUnsupported
OSStatus ICCGetSeed ( ComponentInstance inst, SInt32 *seed );
Use ICGetSeed instead.
InternetConfig.hUnsupported
OSStatus ICCGetSeedInterruptSafe ( ComponentInstance inst, SInt32 *seed );
ICCGetSeedInterruptSafe is not compatible with preemptive threads. If your application relies on this API, contact Apple Developer Technical Support.
InternetConfig.hUnsupported
OSStatus ICCGetVersion ( ComponentInstance inst, SInt32 whichVersion, UInt32 *version );
Use ICGetVersion instead.
InternetConfig.hUnsupported
OSStatus ICChooseConfig ( ICInstance inst );
Because Internet Config no longer supports multiple configuration files, this function is obsolete, and there is no replacement function.
InternetConfig.hUnsupported
OSStatus ICChooseNewConfig ( ICInstance inst );
Because Internet Config no longer supports multiple configuration files, this function is obsolete, and there is no replacement function.
InternetConfig.hUnsupported
OSStatus ICCLaunchURL ( ComponentInstance inst, ConstStr255Param hint, Ptr data, SInt32 len, SInt32 *selStart, SInt32 *selEnd );
Use ICLaunchURL instead.
InternetConfig.hUnsupported
OSStatus ICCMapEntriesFilename ( ComponentInstance inst, Handle entries, ConstStr255Param filename, ICMapEntry *entry );
Use ICMapEntriesFilename instead.
InternetConfig.hUnsupported
OSStatus ICCMapEntriesTypeCreator ( ComponentInstance inst, Handle entries, OSType fType, OSType fCreator, ConstStr255Param filename, ICMapEntry *entry );
Use ICMapEntriesTypeCreator instead.
InternetConfig.hUnsupported
OSStatus ICCMapFilename ( ComponentInstance inst, ConstStr255Param filename, ICMapEntry *entry );
Use ICMapFilename instead.
InternetConfig.hUnsupported
OSStatus ICCMapTypeCreator ( ComponentInstance inst, OSType fType, OSType fCreator, ConstStr255Param filename, ICMapEntry *entry );
Use ICMapTypeCreator instead.
InternetConfig.hCounts the number of entries in the mappings database preference provided.
OSStatus ICCountMapEntries ( ICInstance inst, Handle entries, long *count );
A result code. See “Result Codes.”
InternetConfig.hReturns the total number of preferences available.
OSStatus ICCountPref ( ICInstance inst, long *count );
A result code. See “Result Codes.”
InternetConfig.hReturns the number of available profiles.
OSStatus ICCountProfiles ( ICInstance inst, long *count );
A result code. See “Result Codes.”
InternetConfig.hUnsupported
OSStatus ICCParseURL ( ComponentInstance inst, ConstStr255Param hint, Ptr data, SInt32 len, SInt32 *selStart, SInt32 *selEnd, Handle url );
Use ICParseURL instead.
InternetConfig.hCreates a GURL Apple event, targetted at the application with the specified creator code
OSStatus ICCreateGURLEvent ( ICInstance inst, OSType helperCreator, Handle urlH, AppleEvent *theEvent );
A result code. See “Result Codes.”
InternetConfig.hUnsupported
OSStatus ICCRefreshCaches ( ComponentInstance inst );
This function is obsolete, because there is no supported way to modify the Internet Config database without going through the Internet Config API. There is no replacement function.
InternetConfig.hUnsupported
OSStatus ICCRequiresInterruptSafe ( ComponentInstance inst );
This function is not compatible with preemptive threads. There is no replacement.
InternetConfig.hUnsupported
OSStatus ICCSendGURLEvent ( ComponentInstance inst, AppleEvent *theEvent );
Use ICSendGURLEvent instead.
InternetConfig.hUnsupported
OSStatus ICCSetConfigReference ( ComponentInstance inst, ICConfigRefHandle ref, SInt32 flags );
Because Internet Config no longer supports multiple configuration files, this function is obsolete, and there is no replacement function.
InternetConfig.hUnsupported
OSStatus ICCSetCurrentProfile ( ComponentInstance inst, ICProfileID newID );
Use ICSetCurrentProfile instead.
InternetConfig.hUnsupported
OSStatus ICCSetMapEntry ( ComponentInstance inst, Handle entries, SInt32 pos, ICMapEntry *entry );
Use ICSetMapEntryICSetMapEntry instead.
InternetConfig.hUnsupported
OSStatus ICCSetPref ( ComponentInstance inst, ConstStr255Param key, ICAttr attr, Ptr buf, SInt32 size );
Use ICSetPref instead.
InternetConfig.hUnsupported
OSStatus ICCSetPrefHandle ( ComponentInstance inst, ConstStr255Param key, ICAttr attr, Handle prefh );
Use ICSetPrefHandle instead.
InternetConfig.hUnsupported
OSStatus ICCSetProfileName ( ComponentInstance inst, ICProfileID thisID, ConstStr255Param name );
Use ICSetProfileName instead.
InternetConfig.hUnsupported
OSStatus ICCSpecifyConfigFile ( ComponentInstance inst, FSSpec *config );
Functions related to finding different IC database files are obsolete. You can simply remove these calls from your code—there are no replacement functions.
InternetConfig.hUnsupported
OSStatus ICCStart ( ComponentInstance *inst, OSType creator );
Use ICStart instead.
InternetConfig.hUnsupported
OSStatus ICCStop ( ComponentInstance inst );
Use ICStop instead.
InternetConfig.hUnsupported
OSStatus ICDefaultFileName ( ICInstance inst, Str63 name );
Functions related to finding different IC database files are obsolete. You can simply remove these calls from your code—there are no replacement functions.
InternetConfig.hDeletes an entry in the specified Mapping preference.
OSStatus ICDeleteMapEntry ( ICInstance inst, Handle entries, long pos );
A result code. See “Result Codes.”
InternetConfig.hDeletes the preference for the specified key.
OSStatus ICDeletePref ( ICInstance inst, ConstStr255Param key );
A result code. See “Result Codes.”
InternetConfig.hDeletes the profile that has the specified ID.
OSStatus ICDeleteProfile ( ICInstance inst, ICProfileID thisID );
A result code. See “Result Codes.”
InternetConfig.hOpens the Internet pane of System Preferences.
OSStatus ICEditPreferences ( ICInstance inst, ConstStr255Param key );
A result code. See “Result Codes.”
This function launches the Internet preference control appropriate to the operating system version. In Mac OS X, it opens the Internet pane of System Preferences. In Mac OS 8 and 9 wiith Carbon, it launches the Internet control panel. On earlier systems, it launches Internet Config.
InternetConfig.hTells Internet Config that you have finished accessing preference information.
OSStatus ICEnd ( ICInstance inst );
A result code. See “Result Codes.”
InternetConfig.hUnsupported
OSStatus ICFindConfigFile ( ICInstance inst, SInt16 count, ICDirSpecArrayPtr folders );
Functions related to finding different IC database files are obsolete. You can simply remove these calls from your code—there are no replacement functions.
InternetConfig.hGets a preference’s data, like ICGetPref, but returns the data in a handle.
OSStatus ICFindPrefHandle ( ICInstance inst, ConstStr255Param key, ICAttr *attr, Handle prefh );
A result code. See “Result Codes.”
InternetConfig.hUnsupported
OSStatus ICFindUserConfigFile ( ICInstance inst, ICDirSpec *where );
Functions related to finding different IC database files are obsolete. You can simply remove these calls from your code—there are no replacement functions.
InternetConfig.hUnsupported
OSStatus ICGeneralFindConfigFile ( ICInstance inst, Boolean searchPrefs, Boolean canCreate, SInt16 count, ICDirSpecArrayPtr folders );
Functions related to finding different IC database files are obsolete. You can simply remove these calls from your code—there are no replacement functions.
InternetConfig.hUnsupported
OSStatus ICGetComponentInstance ( ICInstance inst, ComponentInstance *componentInst );
Because Internet Config is not component-based under X, use ICGetVersion instead of ICGetComponentInstance.
InternetConfig.hReturns a displayable string that represents the instance’s current configuration.
OSStatus ICGetConfigName ( ICInstance inst, Boolean longname, Str255 name );
A result code. See “Result Codes.”
InternetConfig.hUnsupported
OSStatus ICGetConfigReference ( ICInstance inst, ICConfigRefHandle ref );
Because Internet Config no longer supports multiple configuration files, this function is obsolete, and there is no replacement function.
InternetConfig.hReturns the profile ID of the current profile.
OSStatus ICGetCurrentProfile ( ICInstance inst, ICProfileID *currentID );
A result code. See “Result Codes.”
InternetConfig.hGets the default value for the preference associated with the specified key.
OSStatus ICGetDefaultPref ( ICInstance inst, ConstStr255Param key, Handle prefH );
A result code. See “Result Codes.”
InternetConfig.hReturns the mappings database entry for a specified index .
OSStatus ICGetIndMapEntry ( ICInstance inst, Handle entries, long index, long *pos, ICMapEntry *entry );
A result code. See “Result Codes.”
InternetConfig.hReturns the key associated with the preference at the specified index.
OSStatus ICGetIndPref ( ICInstance inst, long index, Str255 key );
A result code. See “Result Codes.”
InternetConfig.hReturns the ID of the profile at the specified index.
OSStatus ICGetIndProfile ( ICInstance inst, long index, ICProfileID *thisID );
A result code. See “Result Codes.”
InternetConfig.hReturns a mappings database entry based on its position in the Mapping preference.
OSStatus ICGetMapEntry ( ICInstance inst, Handle entries, long pos, ICMapEntry *entry );
A result code. See “Result Codes.”
InternetConfig.hUnsupported
OSStatus ICGetMappingInterruptSafe ( ICInstance inst, Ptr *mappingPref, SInt32 *mappingPrefSize );
Because ICGetMappingInterruptSafe is not compatible with preemptive threads, it has been removed from Carbon.
InternetConfig.hReturns the current permissions for this instance, i.e. the permission value you used when you called ICBegin , or returns ioNoPerm if you haven’t call ICBegin.
OSStatus ICGetPerm ( ICInstance inst, ICPerm *perm );
A result code. See “Result Codes.”
InternetConfig.hGiven a preference’s key, gets the preference’s data and places it into a buffer that you supply.
OSStatus ICGetPref ( ICInstance inst, ConstStr255Param key, ICAttr *attr, void *buf, long *size );
A result code. See “Result Codes.”
InternetConfig.hDeprecated. While this function works in Mac OS X, you should use ICFindPrefHandle instead.
OSStatus ICGetPrefHandle ( ICInstance inst, ConstStr255Param key, ICAttr *attr, Handle *prefh );
A result code. See “Result Codes.”
InternetConfig.hReturns the name of the profile that has the specified ID.
OSStatus ICGetProfileName ( ICInstance inst, ICProfileID thisID, Str255 name );
A result code. See “Result Codes.”
InternetConfig.hReturns the seed for the current preferences set.
OSStatus ICGetSeed ( ICInstance inst, long *seed );
A result code. See “Result Codes.”
InternetConfig.hUnsupported
OSStatus ICGetSeedInterruptSafe ( ICInstance inst, SInt32 *seed );
Because ICGetSeedInterruptSafe is not compatible with preemptive threads, it has been removed from Carbon.
InternetConfig.hReturns the version of Internet Config installed on the system.
OSStatus ICGetVersion ( ICInstance inst, long whichVersion, UInt32 *version );
A result code. See “Result Codes.”
For the range of versions, refer to “Version Constants.”
InternetConfig.hParses a URL out of the specified text and feeds it to the appropriate helper application.
OSStatus ICLaunchURL ( ICInstance inst, ConstStr255Param hint, const void *data, long len, long *selStart, long *selEnd );
A result code. See “Result Codes.”
InternetConfig.hGiven a filename, returns the most appropriate ICMapEntry based on the filename extension—without the overhead of a mappings database access.
OSStatus ICMapEntriesFilename ( ICInstance inst, Handle entries, ConstStr255Param filename, ICMapEntry *entry );
A result code. See “Result Codes.”
InternetConfig.hGiven a file type and creator (and optionally a filename), returns the most appropriate ICMapEntry—without the overhead of a mappings database access.
OSStatus ICMapEntriesTypeCreator ( ICInstance inst, Handle entries, OSType fType, OSType fCreator, ConstStr255Param filename, ICMapEntry *entry );
A result code. See “Result Codes.”
InternetConfig.hGiven a filename, returns the most appropriate ICMapEntry based on the filename extension.
OSStatus ICMapFilename ( ICInstance inst, ConstStr255Param filename, ICMapEntry *entry );
A result code. See “Result Codes.”
InternetConfig.hGiven a file type and creator (and optionally a filename), returns the most appropriate ICMapEntry.
OSStatus ICMapTypeCreator ( ICInstance inst, OSType fType, OSType fCreator, ConstStr255Param filename, ICMapEntry *entry );
A result code. See “Result Codes.”
InternetConfig.hParses a URL out of the specified text and returns it to the calling program.
OSStatus ICParseURL ( ICInstance inst, ConstStr255Param hint, const void *data, long len, long *selStart, long *selEnd, Handle url );
A result code. See “Result Codes.”
InternetConfig.hUnsupported
OSStatus ICRefreshCaches ( ICInstance inst );
This function ICRefreshCaches is obsolete. There is no supported way to modify the Internet Config database without going through the Internet Config API. There is no replacement function.
InternetConfig.hUnsupported
OSStatus ICRequiresInterruptSafe ( ICInstance inst );
Because ICRequiresInterruptSafe is not compatible with preemptive threads, it has been removed from Carbon.
InternetConfig.hSends a specified Apple Event to the target application.
OSStatus ICSendGURLEvent ( ICInstance inst, AppleEvent *theEvent );
A result code. See “Result Codes.”
InternetConfig.hUnsupported
OSStatus ICSetConfigReference ( ICInstance inst, ICConfigRefHandle ref, SInt32 flags );
Because Internet Config no longer supports multiple configuration files, this function is obsolete, and there is no replacement function.
InternetConfig.hSets the current profile to a specified profile ID.
OSStatus ICSetCurrentProfile ( ICInstance inst, ICProfileID newID );
A result code. See “Result Codes.”
InternetConfig.hSets an entry in a specified Mapping preference.
OSStatus ICSetMapEntry ( ICInstance inst, Handle entries, long pos, const ICMapEntry *entry );
A result code. See “Result Codes.”
InternetConfig.hSets a preference given its key, attributes, and a buffer containing the preference data.
OSStatus ICSetPref ( ICInstance inst, ConstStr255Param key, ICAttr attr, const void *buf, long size );
A result code. See “Result Codes.”
InternetConfig.hSets a preference, like ICSetPref, but takes its input as a handle.
OSStatus ICSetPrefHandle ( ICInstance inst, ConstStr255Param key, ICAttr attr, Handle prefh );
A result code. See “Result Codes.”
InternetConfig.hSets the name of the profile that has the specified ID.
OSStatus ICSetProfileName ( ICInstance inst, ICProfileID thisID, ConstStr255Param name );
A result code. See “Result Codes.”
InternetConfig.hUnsupported
OSStatus ICSpecifyConfigFile ( ICInstance inst, FSSpec *config );
Functions related to finding different IC database files are obsolete. You can simply remove these calls from your code—there are no replacement functions.
InternetConfig.hCall this routine to start using Internet Config—typically at application initialization time—passing it your program’s creator code.
OSStatus ICStart ( ICInstance *inst, OSType signature );
A result code. See “Result Codes.”
InternetConfig.hCall this when your application is done using Internet Config, passing it the instance you got from ICStart .
OSStatus ICStop ( ICInstance inst );
A result code. See “Result Codes.”
InternetConfig.hA fixed length record used to specify an application.
struct ICAppSpec {
OSType fCreator;
Str63 name;
};
typedef struct ICAppSpec ICAppSpec;
typedef ICAppSpec * ICAppSpecPtr;
typedef ICAppSpecPtr * ICAppSpecHandle;
The program using this specification is expected to look up the location of the application in the desktop database. The name is provided to display to the user, and should not affect the search.
InternetConfig.hRepresents a list of application specifications.
struct ICAppSpecList {
short numberOfItems;
ICAppSpec appSpecs[1];
};
typedef struct ICAppSpecList ICAppSpecList;
typedef ICAppSpecList * ICAppSpecListPtr;
typedef ICAppSpecListPtr * ICAppSpecListHandle;
InternetConfig.hSpecifies a mapping from MacRoman encoding (kTextEncodingMacRoman) to Mac Net ASCII (kTextEncodingMacRomanLatin1) and vice versa.
struct ICCharTable {
unsigned char netToMac[256];
unsigned char macToNet[256];
};
typedef struct ICCharTable ICCharTable;
typedef ICCharTable * ICCharTablePtr;
typedef ICCharTablePtr * ICCharTableHandle;
InternetConfig.hStores a permanent reference to an Internet Config configuration.
struct ICConfigRef {
OSType manufacturer;
};
typedef struct ICConfigRef ICConfigRef;
typedef ICConfigRef * ICConfigRefPtr;
typedef ICConfigRefPtr * ICConfigRefHandle;
The ICConfigRef type varies in length and only the first four bytes, representing the manufacturer field, has a public meaning. For more information see the IC Internals Documentation.
InternetConfig.hHolds the vRefNum and dirID of a directory.
struct ICDirSpec {
short vRefNum;
long dirID;
};
typedef struct ICDirSpec ICDirSpec;
typedef ICDirSpec ICDirSpecArray[4];
typedef ICDirSpecArray * ICDirSpecArrayPtr;
An array of ICDirSpec records is supplied to the pre-Carbon-only function ICFindConfigFile to specify the search path. This array is defined to contain just 4 elements, but is in fact arbitrarily extensible.
InternetConfig.hUsed for all error results from Internet Config.
typedef long ICError;
ICError uses a long integer because Internet Config makes calls to Component Manager, which uses long integers for error codes.
This data type is available only if you define OLDROUTINENAMES.
InternetConfig.hDefines the format of a key.
struct ICFileInfo {
OSType fType;
OSType fCreator;
Str63 name;
};
typedef struct ICFileInfo ICFileInfo;
typedef ICFileInfo * ICFileInfoPtr;
typedef ICFileInfoPtr * ICFileInfoHandle;
This data type defines the format of a key. That key data type has previouisly been removed from the header file. ICFileInfo is deprecated and will also be removed, but for the moment, it is available if you define OLDROUTINENAMES.
InternetConfig.hA variable length data structure used to specify a file or folder.
struct ICFileSpec {
Str31 volName;
long volCreationDate;
FSSpec fss;
AliasRecord alias;
};
typedef struct ICFileSpec ICFileSpec;
typedef ICFileSpec * ICFileSpecPtr;
typedef ICFileSpecPtr * ICFileSpecHandle;
ICFileSpec contains both an alias and a ‘poor man’s alias.’ All modern applications can use the real alias and ignore the poor man’s alias. The latter was included so that programs running under System 6 could specify file positions using vol_name and vol_creation_date for the volume, fss.parID for the directory on the volume, and fss.name for the file in the directory.
InternetConfig.hA fixed length record used to specify a font, size and face.
struct ICFontRecord {
short size;
Style face;
char pad;
Str255 font;
};
typedef struct ICFontRecord ICFontRecord;
typedef ICFontRecord * ICFontRecordPtr;
typedef ICFontRecordPtr * ICFontRecordHandle;
InternetConfig.hAn opaque type used to hold a reference to a session with Internet Config.
typedef struct OpaqueICInstance * ICInstance;
Applications can create IC instances by calling ICStart, use them with any of the API routines, and destroy them by calling ICStop .
An ICInstance is a pointer, so you can use the system nil value to denote an invalid instance. Do not pass an ICInstance between processes. Also, do not pass an ICInstance between instruction set architectures, i.e. from PowerPC to 68K or vice versa.
InternetConfig.hSpecifies an Internet Config map entry.
struct ICMapEntry {
short totalLength;
ICFixedLength fixedLength;
short version;
OSType fileType;
OSType fileCreator;
OSType postCreator;
ICMapEntryFlags flags;
Str255 extension;
Str255 creatorAppName;
Str255 postAppName;
Str255 MIMEType;
Str255 entryName;
};
typedef struct ICMapEntry ICMapEntry;
typedef ICMapEntry * ICMapEntryPtr;
typedef ICMapEntryPtr * ICMapEntryHandle;
totalLengthThe length of the map entry, in bytes, from beginning of the record. This includes the fixed length, the length of the packed Pascal strings at the end of the entry, and the length of the user data that follow those strings.
fixedLengthThe length of the fixed part of the map entry, in bytes, from beginning of the record.
versionThe version number of the map entry. The only version currently defined is 0.
fileTypeThe four-character file type for the map entry.
fileCreatorThe four-character creator code for the map entry.
postCreatorThe creator code for the post-processing application for the map entry. Applications should consult this field only if the ICmap_post_bit is set in the flags field, but even if that bit is not set, applications can determine the post-processing application by looking at this field. If no post processing application has even been set, this field’s value will be 0.
flagsFlags associated with this map entry. For flag definitions, see “Map Constants,” “Map Entry Flags,” and “Map Entry Masks.”
extensionThe filename extension for this map entry.
creatorAppNameThe name of the creator application identified by the fileCreator field. You can use this field to display the application name even if the application is not installed.
postAppNameThe name of the post-processing application identified by the postCreator field. You can use this field to display the post-processing application’s name even if the that application is not installed. See the post_creator field description for details as to when this field is valid.
MIMETypeThe MIME type for the map entry, for example, “application/zip”.
entryNameThe user-visible name for the map entry.
The value of the Mappings preference is not an array, so you cannot index it directly. It is instead a packed array of ICMapEntry types, with each entry packed to remove the empty space at the end of the strings. Entries can start on an odd address and entries can contain user data . We strongly recommend that you access this data structure using the routines described in this section. These routines return an unpacked ICMapEntry, which is a lot easier to deal with.
Each ICMapEntry data type provides a filename extension, a MIME type, and a file type and creator. The database of ICMapEntry types is not normalised; that is, there can be multiple entries with the same creator, file type, MIME type, filename extension, and so on. In general, each application determines how these entries are used in a particular circumstance, although IC does define some policies by way of its high level mapping routines.
InternetConfig.hSpecifies an Internet Config TCP service entry.
struct ICServiceEntry {
Str255 name;
short port;
ICServiceEntryFlags flags;
};
typedef struct ICServiceEntry ICServiceEntry;
typedef ICServiceEntry * ICServiceEntryPtr;
typedef ICServiceEntryPtr * ICServiceEntryHandle;
nameThe name for the TCP service entry.
portThe port for the TCP service entry.
flagsFor descriptions of the flags, see “Services Constants,” “Services Bits,” and “Services Masks.”
InternetConfig.hSpecifies the mapping between TCP service names and their ports.
struct ICServices {
short count;
ICServiceEntry services[1];
};
typedef struct ICServices ICServices;
typedef ICServices * ICServicesPtr;
typedef ICServicesPtr * ICServicesHandle;
countservicesAn unbounded array of ICServiceEntryrecords.
InternetConfig.htypedef ComponentInstance internetConfigurationComponent;
This data type is obsolete. Use the data type ICInstance instead.
InternetConfig.h
enum {
kInternetEventClass = 'GURL',
kAEGetURL = 'GURL',
kAEFetchURL = 'FURL',
keyAEAttaching = 'Atch'
};
These are old names, mapped to newer names for backward compatibility, available only if you define OLDROUTINENAMES.
enum {
ICattr_no_change = (unsigned long) (kICAttrNoChange),
ICattr_locked_bit = kICAttrLockedBit,
ICattr_locked_mask = kICAttrLockedMask,
ICattr_volatile_bit = kICAttrVolatileBit,
ICattr_volatile_mask = kICAttrVolatileMask,
icNoUserInteraction_bit = kICNoUserInteractionBit,
icNoUserInteraction_mask = kICNoUserInteractionMask,
ICfiletype = kICFileType,
ICcreator = kICCreator
};
Define the component type, subtype, and manufacturer of the Internet Config component.
enum {
kICComponentType = 'PREF',
kICComponentSubType = 'ICAp',
kICComponentManufacturer = 'JPQE'
};
enum {
internetConfigurationComponentType = 'PREF',
internetConfigurationComponentSubType = 'ICAp',
internetConfigurationComponentInterfaceVersion0 = 0x00000000,
internetConfigurationComponentInterfaceVersion1 = 0x00010000,
internetConfigurationComponentInterfaceVersion2 = 0x00020000,
internetConfigurationComponentInterfaceVersion3 = 0x00030000,
internetConfigurationComponentInterfaceVersion = internetConfigurationComponentInterfaceVersion3
};
These constants are deprecated. Please use Component Interface Version and Component Identifiers instead.
Define the possible version numbers returned by the Internet Config component.
enum {
kICComponentInterfaceVersion0 = 0x00000000,
kICComponentInterfaceVersion1 = 0x00010000,
kICComponentInterfaceVersion2 = 0x00020000,
kICComponentInterfaceVersion3 = 0x00030000,
kICComponentInterfaceVersion4 = 0x00040000,
kICComponentInterfaceVersion = kICComponentInterfaceVersion4
};
kICComponentInterfaceVersion0Internet Config versions greater than or equal to 1.0.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICComponentInterfaceVersion1Internet Config versions greater than or equal to 1.1.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICComponentInterfaceVersion2Internet Config versions greater than or equal to 1.2.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICComponentInterfaceVersion3Internet Config versions greater than or equal to 2.0.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICComponentInterfaceVersion4Internet Config versions greater than or equal to 2.5.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICComponentInterfaceVersionThe current version number is 4.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
These constants define the possible version numbers returned by the Internet Config component in response to a ICGetVersion call. The constants define only the high word of the version number, which is the version of the programming interface. The low word of the version number is the implementation version, which changes with each bug fix release of Internet Config.
Represent component selectors for each Internet Config function.
enum {
kICCStart = 0,
kICCStop = 1,
kICCGetVersion = 50,
kICCFindConfigFile = 2,
kICCFindUserConfigFile = 14,
kICCGeneralFindConfigFile = 30,
kICCChooseConfig = 33,
kICCChooseNewConfig = 34,
kICCGetConfigName = 35,
kICCGetConfigReference = 31,
kICCSetConfigReference = 32,
kICCSpecifyConfigFile = 3,
kICCRefreshCaches = 47,
kICCGetSeed = 4,
kICCGetPerm = 13,
kICCDefaultFileName = 11,
kICCBegin = 5,
kICCGetPref = 6,
kICCSetPref = 7,
kICCFindPrefHandle = 36,
kICCGetPrefHandle = 26,
kICCSetPrefHandle = 27,
kICCCountPref = 8,
kICCGetIndPref = 9,
kICCDeletePref = 12,
kICCEnd = 10,
kICCGetDefaultPref = 49,
kICCEditPreferences = 15,
kICCLaunchURL = 17,
kICCParseURL = 16,
kICCCreateGURLEvent = 51,
kICCSendGURLEvent = 52,
kICCMapFilename = 24,
kICCMapTypeCreator = 25,
kICCMapEntriesFilename = 28,
kICCMapEntriesTypeCreator = 29,
kICCCountMapEntries = 18,
kICCGetIndMapEntry = 19,
kICCGetMapEntry = 20,
kICCSetMapEntry = 21,
kICCDeleteMapEntry = 22,
kICCAddMapEntry = 23,
kICCGetCurrentProfile = 37,
kICCSetCurrentProfile = 38,
kICCCountProfiles = 39,
kICCGetIndProfile = 40,
kICCGetProfileName = 41,
kICCSetProfileName = 42,
kICCAddProfile = 43,
kICCDeleteProfile = 44,
kICCRequiresInterruptSafe = 45,
kICCGetMappingInterruptSafe = 46,
kICCGetSeedInterruptSafe = 48,
kICCFirstSelector = kICCStart,
kICCLastSelector = 52
};
These constants are component selectors for each Internet Config fuction. You can use these values as parameters to the Component Manager’s ComponentFunctionImplemented function. These are also useful for authors of override components.
enum {
kICCStartProcInfo = 1008,
kICCStopProcInfo = 240,
kICCGetVersionProcInfo = 4080,
kICCFindConfigFileProcInfo = 3824,
kICCFindUserConfigFileProcInfo = 1008,
kICCGeneralFindConfigFileProcInfo = 58864,
kICCChooseConfigProcInfo = 240,
kICCChooseNewConfigProcInfo = 240,
kICCGetConfigNameProcInfo = 3568,
kICCGetConfigReferenceProcInfo = 1008,
kICCSetConfigReferenceProcInfo = 4080,
kICCSpecifyConfigFileProcInfo = 1008,
kICCRefreshCachesProcInfo = 240,
kICCGetSeedProcInfo = 1008,
kICCGetPermProcInfo = 1008,
kICCDefaultFileNameProcInfo = 1008,
kICCGetComponentInstanceProcInfo = 1008,
kICCBeginProcInfo = 496,
kICCGetPrefProcInfo = 65520,
kICCSetPrefProcInfo = 65520,
kICCFindPrefHandleProcInfo = 16368,
kICCGetPrefHandleProcInfo = 16368,
kICCSetPrefHandleProcInfo = 16368,
kICCCountPrefProcInfo = 1008,
kICCGetIndPrefProcInfo = 4080,
kICCDeletePrefProcInfo = 1008,
kICCEndProcInfo = 240,
kICCGetDefaultPrefProcInfo = 4080,
kICCEditPreferencesProcInfo = 1008,
kICCLaunchURLProcInfo = 262128,
kICCParseURLProcInfo = 1048560,
kICCCreateGURLEventProcInfo = 16368,
kICCSendGURLEventProcInfo = 1008,
kICCMapFilenameProcInfo = 4080,
kICCMapTypeCreatorProcInfo = 65520,
kICCMapEntriesFilenameProcInfo = 16368,
kICCMapEntriesTypeCreatorProcInfo = 262128,
kICCCountMapEntriesProcInfo = 4080,
kICCGetIndMapEntryProcInfo = 65520,
kICCGetMapEntryProcInfo = 16368,
kICCSetMapEntryProcInfo = 16368,
kICCDeleteMapEntryProcInfo = 4080,
kICCAddMapEntryProcInfo = 4080,
kICCGetCurrentProfileProcInfo = 1008,
kICCSetCurrentProfileProcInfo = 1008,
kICCCountProfilesProcInfo = 1008,
kICCGetIndProfileProcInfo = 4080,
kICCGetProfileNameProcInfo = 4080,
kICCSetProfileNameProcInfo = 4080,
kICCAddProfileProcInfo = 4080,
kICCDeleteProfileProcInfo = 1008,
kICCRequiresInterruptSafeProcInfo = 240,
kICCGetMappingInterruptSafeProcInfo = 4080,
kICCGetSeedInterruptSafeProcInfo = 1008
};
Specify AppleEvent details for Internet Config preference requests.
enum {
kICEditPreferenceEventClass = 'ICAp',
kICEditPreferenceEvent = 'ICAp',
keyICEditPreferenceDestination = 'dest'
};
These constants specify details of the AppleEvent that the ICEditPreferences function sends to the Internet Config application to request it to open the edit window for a specific preference. Consult the Internet Config terminology resource ('aete') for the meaning of these constants.
enum {
kICFileSpecHeaderSize = sizeof(ICFileSpec) - sizeof(AliasRecord)
};
enum {
ICfile_spec_header_size = kICFileSpecHeaderSize
};
This constant is available only if you define OLDROUTINENAMES.
Define the file type and creator code for the Internet preferences file.
enum {
kICFileType = 'ICAp',
kICCreator = 'ICAp'
};
kICFileTypeThe Finder file type for the Internet preferences file.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICCreatorThe Finder creator code for the Internet preferences file.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
#define kICReservedKey "\pkICReservedKey" #define kICArchieAll "\pArchieAll" #define kICArchiePreferred "\pArchiePreferred" #define kICCharacterSet "\pCharacterSet" #define kICDocumentFont "\pDocumentFont" #define kICDownloadFolder "\pDownloadFolder" #define kICEmail "\pEmail" #define kICFTPHost "\pFTPHost" #define kICFTPProxyAccount "\pFTPProxyAccount" #define kICFTPProxyHost "\pFTPProxyHost" #define kICFTPProxyPassword "\pFTPProxyPassword" #define kICFTPProxyUser "\pFTPProxyUser" #define kICFingerHost "\pFingerHost" #define kICGopherHost "\pGopherHost" #define kICGopherProxy "\pGopherProxy" #define kICHTTPProxyHost "\pHTTPProxyHost" #define kICHelper "\pHelper•" #define kICHelperDesc "\pHelperDesc•" #define kICHelperList "\pHelperList•" #define kICIRCHost "\pIRCHost" #define kICInfoMacAll "\pInfoMacAll" #define kICInfoMacPreferred "\pInfoMacPreferred" #define kICLDAPSearchbase "\pLDAPSearchbase" #define kICLDAPServer "\pLDAPServer" #define kICListFont "\pListFont" #define kICMacSearchHost "\pMacSearchHost" #define kICMailAccount "\pMailAccount" #define kICMailHeaders "\pMailHeaders" #define kICMailPassword "\pMailPassword" #define kICMapping "\pMapping" #define kICNNTPHost "\pNNTPHost" #define kICNTPHost "\pNTPHost" #define kICNewMailDialog "\pNewMailDialog" #define kICNewMailFlashIcon "\pNewMailFlashIcon" #define kICNewMailPlaySound "\pNewMailPlaySound" #define kICNewMailSoundName "\pNewMailSoundName" #define kICNewsAuthPassword "\pNewsAuthPassword" #define kICNewsAuthUsername "\pNewsAuthUsername" #define kICNewsHeaders "\pNewsHeaders" #define kICNoProxyDomains "\pNoProxyDomains" #define kICOrganization "\pOrganization" #define kICPhHost "\pPhHost" #define kICPlan "\pPlan" #define kICPrinterFont "\pPrinterFont" #define kICQuotingString "\pQuotingString" #define kICRealName "\pRealName" #define kICRTSPProxyHost "\pRTSPProxyHost" #define kICSMTPHost "\pSMTPHost" #define kICScreenFont "\pScreenFont" #define kICServices "\pServices" #define kICSignature "\pSignature" #define kICSnailMailAddress "\pSnailMailAddress" #define kICSocksHost "\pSocksHost" #define kICTelnetHost "\pTelnetHost" #define kICUMichAll "\pUMichAll" #define kICUMichPreferred "\pUMichPreferred" #define kICUseFTPProxy "\pUseFTPProxy" #define kICUseGopherProxy "\pUseGopherProxy" #define kICUseHTTPProxy "\pUseHTTPProxy" #define kICUsePassiveFTP "\pUsePassiveFTP" #define kICUseRTSPProxy "\pUseRTSPProxy" #define kICUseSocks "\pUseSocks" #define kICWAISGateway "\pWAISGateway" #define kICWWWHomePage "\pWWWHomePage" #define kICWebBackgroundColour "\pWebBackgroundColour" #define kICWebReadColor "\p646F6777•WebReadColor" #define kICWebSearchPagePrefs "\pWebSearchPagePrefs" #define kICWebTextColor "\pWebTextColor" #define kICWebUnderlineLinks "\p646F6777•WebUnderlineLinks" #define kICWebUnreadColor "\p646F6777•WebUnreadColor" #define kICWhoisHost "\pWhoisHost"
kICReservedKeyReserved for use by Internet Config.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICArchieAllFormatted string list of Archie servers.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICArchiePreferredFormatted string naming the preferred Archie server.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICCharacterSetFor conversion between kTextEncodingMacRoman (“Mac”) and kTextEncodingMacRomanLatin1 (“Net”). Deprecated. Use the Text Encoding Conversion manager and Unicode instead.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICDocumentFontFont to use for proportional text.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICDownloadFolderLocation in the file system for newly downloaded files.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICEmailReturn address for the user.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICFTPHostDefault FTP server.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICFTPProxyAccountSecond-level FTP proxy authorization. Read-only in Mac OS X; use System Configuration to set this value.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICFTPProxyHostDefault FTP proxy server. Read-only in Mac OS X; use System Configuration to set this value.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICFTPProxyPasswordPassword (scrambled) for FTP proxy user. Read-only in Mac OS X; use System Configuration to set this value.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICFTPProxyUserFirst-level FTP proxy authorization. Read-only in Mac OS X; use System Configuration to set this value.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICFingerHostDefault finger-protocol server.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICGopherHostDefault gopher-protocol server.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICGopherProxyRead-only in Mac OS X; use System Configuration to set this value.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICHTTPProxyHostDefault HTTP proxy server. Read-only in Mac OS X; use System Configuration to set this value.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICHelperHelpers for URL schemes.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICHelperDescDescriptions for URL schemes.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICHelperListCommon helpers for URL schemes.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICIRCHostInternet Relay Chat server.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICInfoMacAllFormatted list of Info-Mac servers.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICInfoMacPreferredFormatted string containing preferred Info-Mac server.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICLDAPSearchbaseDefault LDAP search base.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICLDAPServerDefault LDAP server.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICListFontFont used for lists, such as news article lists.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICMacSearchHostHost for MacSearch queries.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICMailAccountAccount from which to fetch email.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICMailHeadersAdditional headers for email messages.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICMailPasswordPassword (scrambled) for the default mail account.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICMappingFile-type mapping.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICNNTPHostDefault NNTP server.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICNTPHostDefault NTP (Network Time Protocol) server.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICNewMailDialogBoolean value indicating whether to display a new email dialog.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICNewMailFlashIconBoolean value indicating whether to flash a new email icon.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICNewMailPlaySoundBoolean value indicating whether to play a new email sound.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICNewMailSoundNameThe name of the preferred new email sound.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICNewsAuthPasswordPassword (scrambled) for authorized news account.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICNewsAuthUsernameUser name for authorized news account.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICNewsHeadersAdditional headers for news messages.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICNoProxyDomainsList of domains not to be proxied.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICOrganizationString for the X-Organization MIME header.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICPhHostDefault Ph protocol server.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICPlanDefault response for finger servers.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICPrinterFontFont used to print the monospaced text displayed on screen (see kICScreenFont).
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICQuotingStringA short string used to indicate quoting in email and news replies.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICRealNameReal name of user.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICRTSPProxyHostDefault RTSP proxy server. Read-only in Mac OS X; use System Configuration to set this value.
Available in Mac OS X v10.1 and later.
Declared in InternetConfig.h.
kICSMTPHostDefault SMTP host.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICScreenFontFont for monospaced text.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICServicesTCP and IP port-to-name mapping.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICSignatureBlock of text to append to outgoing news and email messages.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICSnailMailAddressPreferred postal mail address.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICSocksHostDefault SOCKS host. (The host.domain format allows ":port" and " port")
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICTelnetHostDefault Telnet host.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICUMichAllFormatted list of UMich servers.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICUMichPreferredFormatted string containing preferred UMich server.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICUseFTPProxyBoolean value indicating whether to use an FTP proxy. Read-only in Mac OS X; use System Configuration to set this value.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICUseGopherProxyBoolean value indicating whether to use a Gopher proxy. Read-only in Mac OS X; use System Configuration to set this value.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICUseHTTPProxyBoolean value indicating whether to use an HTTP proxy. Read-only in Mac OS X; use System Configuration to set this value.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICUsePassiveFTPBoolean value indicating whether to use the PASV command for FTP transfers.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICUseRTSPProxyBoolean value indicating whether to use an RTSP proxy. Read-only in Mac OS X; use System Configuration to set this value.
Available in Mac OS X v10.1 and later.
Declared in InternetConfig.h.
kICUseSocksBoolean value indicating whether to use SOCKS.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICWAISGatewayAvailable in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICWWWHomePageUser’s default Web home page.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICWebBackgroundColourBackground color for Web pages.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICWebReadColorColor for Web links that have been visited.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICWebSearchPagePrefsURL for the default search engine page.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICWebTextColorColor for normal text on Web pages.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICWebUnderlineLinksBoolean value indicating whether to underline Web links.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICWebUnreadColorColor for Web links that have not been visited.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICWhoisHostDefault whois server.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
enum {
ICmap_binary_bit = kICMapBinaryBit,
ICmap_binary_mask = kICMapBinaryMask,
ICmap_resource_fork_bit = kICMapResourceForkBit,
ICmap_resource_fork_mask = kICMapResourceForkMask,
ICmap_data_fork_bit = kICMapDataForkBit,
ICmap_data_fork_mask = kICMapDataForkMask,
ICmap_post_bit = kICMapPostBit,
ICmap_post_mask = kICMapPostMask,
ICmap_not_incoming_bit = kICMapNotIncomingBit,
ICmap_not_incoming_mask = kICMapNotIncomingMask,
ICmap_not_outgoing_bit = kICMapNotOutgoingBit,
ICmap_not_outgoing_mask = kICMapNotOutgoingMask,
ICmap_fixed_length = kICMapFixedLength
};
For descriptions of these constants, see “Map Entry Flags” and “Map Entry Masks.” These constants are available only if you define OLDROUTINENAMES.
typedef long ICMapEntryFlags;
enum {
kICMapBinaryBit = 0,
kICMapResourceForkBit = 1,
kICMapDataForkBit = 2,
kICMapPostBit = 3,
kICMapNotIncomingBit = 4,
kICMapNotOutgoingBit = 5
};
kICMapBinaryBitWhen this bit is set, indicates the file should be transferred in binary as opposed to text mode.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICMapResourceForkBitWhen this bit is set, indicates the resource fork of the file is significant.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICMapDataForkBitWhen this bit is set, indicates the data fork of the file is significant.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICMapPostBitWhen this bit is set, indicates post process using post fields.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICMapNotIncomingBitWhen this bit is set, indicates to ignore this mapping for incoming files.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICMapNotOutgoingBitWhen this bit is set, indicates to ignore this mapping for outgoing files.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
enum {
kICMapBinaryMask = 0x00000001,
kICMapResourceForkMask = 0x00000002,
kICMapDataForkMask = 0x00000004,
kICMapPostMask = 0x00000008,
kICMapNotIncomingMask = 0x00000010,
kICMapNotOutgoingMask = 0x00000020
};
kICMapBinaryMaskIndicates the file should be transferred in binary as opposed to text mode.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICMapResourceForkMaskIndicates the resource fork of the file is significant.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICMapDataForkMaskIndicates the data fork of the file is significant.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICMapPostMaskIndicates to post process using post fields.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICMapNotIncomingMaskIndicates to ignore this mapping for incoming files.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICMapNotOutgoingMaskIndicates to ignore this mapping for outgoing files.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
typedef short ICFixedLength;
enum {
kICMapFixedLength = 22
};
kICMapFixedLengthUse in the fixedLength field of a structure ICMapEntry.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
enum {
ICservices_tcp_bit = kICServicesTCPBit,
ICservices_tcp_mask = kICServicesTCPMask,
ICservices_udp_bit = kICServicesUDPBit,
ICservices_udp_mask = kICServicesUDPMask
};
These constants are available only if you define OLDROUTINENAMES.
The ICPerm type is used to specify whether you wish to access the preferences as read-only or read/write.
typedef UInt8 ICPerm;
enum {
icNoPerm = 0,
icReadOnlyPerm = 1,
icReadWritePerm = 2
};
typedef UInt32 ICAttr;
enum {
kICAttrLockedBit = 0,
kICAttrVolatileBit = 1
};
enum {
kICAttrNoChange = 0xFFFFFFFF,
kICAttrLockedMask = 0x00000001,
kICAttrVolatileMask = 0x00000002
};
kICAttrLockedBitIf the locked bit is set, any attempt to set the preference will result in an error.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICAttrVolatileBitIf the volatile bit is set, you should not cache the value of this preference because it is subject to non-seed changing changes.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICAttrNoChangeUsed when you call ICSetPref and do not want to mess around with attributes. You can supply this value and IC will not change the attribute of the preference.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICAttrLockedMaskAvailable in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICAttrVolatileMaskAvailable in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
The ICAttr type is simply a longint containing flags that describe the attributes of a key and its data.
enum {
kICAttrNoChange = 0xFFFFFFFF,
kICAttrLockedMask = 0x00000001,
kICAttrVolatileMask = 0x00000002
};
The ICProfileID type is an opaque reference to a particular profile.
typedef long ICProfileID; typedef ICProfileID * ICProfileIDPtr; enum { kICNilProfileID = 0 };
kICNilProfileIDUse to denote no profile.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
typedef short ICServiceEntryFlags;
enum {
kICServicesTCPBit = 0,
kICServicesUDPBit = 1
};
kICServicesTCPBitWhen this bit is set, indicates the service is TCP.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICServicesUDPBitWhen this bit is set, indicates the service is UDP.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
Both these bits may be set to indicate the service is both TCP and UDP.
enum {
kICServicesTCPMask = 0x00000001,
kICServicesUDPMask = 0x00000002
};
kICServicesTCPMaskIndicates the service is TCP.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
kICServicesUDPMaskIndicates the service is UDP.
Available in Mac OS X v10.0 and later.
Declared in InternetConfig.h.
Both these bits may be set to indicate the service is both TCP and UDP.
enum {
kICNoUserInteractionBit = 0
};
enum {
kICNoUserInteractionMask = 0x00000001
};
enum {
kICComponentVersion = 0,
kICNumVersion = 1
};
The most common result codes returned by Internet Config are listed in the table below.
Last updated: 2003-05-01