Version: |
9.0.1 |
Description: |
Set the current preset to be used from a presets configuration file. |
Declaration: |
|
C/C++ |
extern "C" int WINAPI VCGetCurrentPreset(short* iError, short iConfigFile, char* szPresetName); |
Delphi |
function VCGetCurrentPreset(var iError: SmallInt; iConfigFile: SmallInt; szPresetName: PChar): LongInt; stdcall; |
ActiveX/COM |
Function GetCurrentPreset(ByVal iConfigFile As Integer, ByVal szPresetName As String) As Long |
Parameters: |
iConfigFile - an index to the presets file type: |
Return Value: |
the number of characters in the current preset name |
iError Code: |
0 - Success |
Notes: |
VCSetCurrentPreset sets the current preset to be used from a presets configuration file. To determine the size of the buffer required, call VCGetCurrentPreset with the szPresetName parameter set to NULL. See VCAddPreset for discussion of how presets are used. |
See Also: |
VCGetPresetValue, VCEnumPresets, VCAddPreset, VCDeletePreset, VCCopyPreset |