Apple Network Setup manual Installing and Removing a Notification Callback, OTCfgInstallNotifier

Models: Network Setup

1 184
Download 184 pages 5.56 Kb
Page 94
Image 94
Installing and Removing a Notification Callback

C H A P T E R 3

Network Setup Reference

key

On input, a pointer to a Pascal string containing the encryption

 

key. Usually the encryption key is a user name.

data

On input, a pointer to an array of bytes containing data that was

 

previously encrypted by OTCfgEncrypt (page 93). On output,

 

data contains the decrypted data.

dataLen

On input, a value of type SInt16 that specifies the length of data.

function result The length in bytes of the decrypted data.

DISCUSSION

The OTCfgDecrypt function decrypts the contents of the data parameter using the key specified by the key parameter.

Note

The OTCCfgDecrypt function is available in Network Setup version 1.1 and later.

Installing and Removing a Notification Callback

You can use the following functions to install and remove a notification callback:

OTCfgInstallNotifier (page 94) installs a notification callback.

OTCfgRemoveNotifier (page 96) removes a notification callback.

OTCfgInstallNotifier

Installs a notification callback.

OSStatus OTCfgInstallNotifier (CfgDatabaseRef dbRef.

CfgEntityClass theClass,

CfgEntityType theType,

OTNotifyProcPtr notifier,

void* contextPtr);

94Network Setup Functions

Page 94
Image 94
Apple Network Setup manual Installing and Removing a Notification Callback, OTCfgInstallNotifier