Hitachi

JP1 Version 12 JP1/IT Desktop Management 2 Distribution Function Administration Guide


AIT_SetProfileString

Organization of this page

Description

Creates or changes a key value in an INI file section.

Format

bool AIT_SetProfileString  (
  string strIniFileName,     // INI filename
  string strSectionName,     // Section name
  string strKeyName,         // Key name
  string strValue            // Value
);

Parameters

strIniFileName (input)

Specify an INI filename.

strSectionName (input)

Specify an INI file section name.

strKeyName (input)

Specify a key name belonging to a section name.

strValue (input)

Specify a key value you want to set.

Return values

The return value is true if the function was executed normally, and false if not. If the function has returned false, you can use AIT_GetLastError to acquire an extended error code. The following gives the error codes that AIT_GetLastError might return:

Extended error number

Error code

2

ERROR_FILE_NOT_FOUND

3

ERROR_PATH_NOT_FOUND

5

ERROR_ACCESS_DENIED

8

ERROR_NOT_ENOUGH_MEMORY

14

ERROR_OUTOFMEMORY

15

ERROR_INVALID_DRIVE

21

ERROR_NOT_READY

23

ERROR_CRC

53

ERROR_BAD_NETPATH

67

ERROR_BAD_NET_NAME

87

ERROR_INVALID_PARAMETER

112

ERROR_DISK_FULL

123

ERROR_INVALID_NAME

148

ERROR_PATH_BUSY

1005

ERROR_UNRECOGNIZED_VOLUME