home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / pgrdll / pagerdll.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-06-27  |  4.8 KB  |  119 lines

  1. /**********************************************************************/
  2. #define DllAccess extern "C"  __declspec( dllimport )
  3.                                
  4.  
  5. #define COM_ERROR           (-101)
  6. #define MEMORY_ERROR        (-102)
  7. #define COM_OPEN            (-103)
  8. #define COM_CLOSE           (-104)
  9. #define INVALID_COMPORT     (-105)
  10. #define INVALID_PHONENO     (-106)
  11. #define STRING_TOOLONG      (-107)
  12. #define STRLEN_ERR          (-108) 
  13. #define BAUDRATE_ERR        (-109)
  14. #define PROTOCOLTYPE_ERR    (-110)
  15. #define MSG_ERR             (-111)
  16. #define BLOCKSIZE_ERR       (-112)
  17. #define FILENAME_ERR        (-113)
  18. #define PARAMREQUIRED_ERR   (-114)
  19. #define CONNECT_ERR         (-115)
  20. #define IDRECEIVE_ERR       (-116)
  21. #define INVALID_DELAY       (-117)
  22.  
  23.  
  24. /**********************************************************************/
  25. //Pager Functions
  26.  
  27. /*
  28. float GetDllVersion(
  29. Returns the version number of the Dll.
  30. */
  31. DllAccess float _stdcall GetDllVersion();
  32.  
  33. /*
  34. short int WriteToLogFile(
  35. char On, 1 to enable writing to the log file "event.log" . Be default events are logged.
  36.          0 to disable writing to the log file. 
  37. */
  38. DllAccess short int _stdcall WriteToLogFile(char EnableLogging);
  39.  
  40.  
  41. /*
  42.  SendNumericPage is used to send digital data to a Numeric Pager
  43.  SendNumericPage(
  44.   short int ComPort, // Serial Communication port number of your modem.
  45.   char* PagerNo, //Phone number of your Pager.
  46.   char* PinNo,  // Enter a Pin number if you have one otherwise enter NULL.
  47.   char *message, // Enter your message. Limit is 250 characters.
  48.   short int PDelay //Enter the time in seconds to wait after dialing the number.
  49.   char PulseDial //0 for Tone Dial and 1 for Pulse Dial.
  50.  );
  51. */
  52. DllAccess short int _stdcall SendNumericPage(short int ComPort, char* PagerNo,
  53. char* PinNo, char* message, short int PDelay, char PulseDial);
  54.  
  55. /*
  56.  SendAlphaPage is used to send text data to an alphanumeric Pager
  57.  SendAlphaPage(
  58.   short int comport, // Serial Communication port number of your modem.
  59.   char* PagerNumber, //Phone number of your Pager.
  60.   char* PagerAccessNumber,  // Enter the Pin number of your Pager.
  61.   char* message, // Enter your message. Limit is 250 characters.
  62.   char PulseDial //0 for Tone Dial and 1 for Pulse Dial.
  63.  );
  64. */
  65. DllAccess short int _stdcall SendAlphaPage(short int comport, char* PagerNumber,
  66.  char* PagerAccessNumber, char* message, char PulseDial);
  67.  
  68.  
  69.  
  70. /*
  71.  SendAlphaPageAdvanced is used to send text data to an alphanumeric Pager and differs 
  72.  from SendAlphaPage by offering more options to the user. 
  73.  SendAlphaPage(
  74.   short int comport, // Serial Communication port number of your modem.
  75.   short int baudRate, // The baudrate at which the alphanumeric protocols work is
  76.                       usually 1200.
  77.   char* PagerNumber, //Phone number of your Pager.
  78.   char* PagerAccessNumber,  // The Pin number of your Pager.
  79.   char TypeOfProtocol, There are 2 protocols used in the Dll. Value of TypeOfProtocol should be 0
  80.                     for Manual Entry protocol and 1 for Automatic Entry protocol.
  81.   char* fileName // If the message exceeds 250 characters then you should use a text file containing
  82.                     the message.
  83.   char *message, // Enter your message. Limit is 250 characters. If you are using this parameter then 
  84.                  enter NULL for filename.
  85.   short int blockSize // Enter the max limit of characters your alphanumeric pager can accept. 
  86.                      If the message is bigger than the blockSize then the message is broken at
  87.                      word boundaries and multiple pages are sent.
  88.   char PulseDial //0 for Tone Dial and 1 for Pulse Dial.
  89.  );
  90. */
  91. DllAccess short int _stdcall SendAlphaPageAdvanced(short int comport, short int baudRate, char* PagerNumber,
  92.  char* PagerAccessNumber, char TypeOfProtocol, char* fileName, char* message,
  93.  short int blockSize, char PulseDial);
  94.  
  95.  
  96.  
  97.  
  98. /*
  99.  SendAlphaPageByEmail(
  100.   char* hostName, // Name of the mail server.
  101.   char* senderAddr, // Email address of the sender.
  102.   char* RecipientAddr, // Email address of the recipient.
  103.   char* MsgID, //Message Id of the Email. This parameter is optional.
  104.   char* Subject,  // Subject of the Email
  105.   char *message, // Enter your message. Limit is 250 characters. If you are using this parameter then 
  106.                  enter NULL for filename.
  107.   short int blockSize // Enter the max limit of characters your alphanumeric pager can accept. 
  108.                      If the message is bigger than the blockSize then the message is broken at
  109.                      word boundaries and multiple Emails are sent. If you are using this parameter
  110.                      then enter NULL for message.
  111.  );
  112.  
  113. */
  114. DllAccess short int _stdcall SendAlphaPageByEmail(char* hostName, char* senderAddr,
  115.  char* RecipientAddr, char* MsgID, char* Subject , char* message, char* fileName,
  116.  short int blockSize );
  117.  
  118.  
  119.