// Inicializa las funciones del VIM
FUNCTION LONG VIMInitialize () LIBRARY "VIM32.DLL"
// Termina las funciones del VIM
FUNCTION LONG VIMTerminate () LIBRARY "VIM32.DLL"
// propiedades de la sesion
FUNCTION LONG VIMGetDefaultSessionInfo( &
int sizePath, &
Ref String psPathSpec, &
int sizeName, &
Ref String psName ) LIBRARY "VIM32.DLL"
FUNCTION LONG VIMQueryCapability( &
Long selType, &
int sizeData, &
ref any pData ) LIBRARY "c:\notes\VIM32.DLL"
// abre una sesion
FUNCTION LONG VIMOpenSession( &
Ref String psPathSpec, &
Ref String psName, &
Ref String psPass, &
Long dwVersion, &
Long selCharSet, &
Ref long pSesion ) LIBRARY "c:\notes\VIM32.DLL"
// cierra la session
FUNCTION LONG VIMCloseSession( long psesion ) LIBRARY "VIM32.DLL"
// crea el mensaje
FUNCTION LONG VIMCreateMessage( &
long psesion, &
string psType, &
Ref Long pMensaje ) LIBRARY "VIM32.DLL"
// cierra el mensaje
FUNCTION LONG VIMCloseMessage (long pmsg) LIBRARY "VIM32.DLL"
// envia el mensaje
FUNCTION LONG VIMSendMessage( &
Long mensaje, &
long pCallbackParam, &
long callback ) LIBRARY "VIM32.DLL"
// adiciona un recipiente
FUNCTION LONG VIMSetMessageRecipient( &
Long mensaje, &
Long class, &
Ref s_vim_recipiente pRecip ) LIBRARY "VIM32.DLL"
// adiciona un attach o el cuerpo del mensaje
FUNCTION LONG VIMSetMessageItem( &
Long mensaje, &
Long selClass, &
String psType, &
Long selFlags, &
String psName, &
Ref s_vim_BuffFileDesc pDesc ) LIBRARY "VIM32.DLL"
// setea el subject, prioridad y otros atributos
FUNCTION LONG VIMSetMessageHeader ( &
LONG pmsg, &
LONG VIMSELSUBJECT, &
Int size, &
Ref string subject ) LIBRARY "VIM32.DLL"
// retorna el texto de error generado por el VIM
FUNCTION LONG VIMStatusText( long psesion, &
long pstatus, &
int wTextSize, &
Ref string pText, &
int wExtTextSize, &
Ref string pExtText ) LIBRARY "VIM32.DLL"
// abre el libro de direcciones
FUNCTION LONG VIMOpenAddressBook( long psesion, &
string psName, &
ref string pAddressBook ) LIBRARY "VIM32.DLL"