SMS


Files

file  sendsms.h
 Definition of functions and types for handling SMS.

Enumerations

enum  t_smserrcode {
  SMS_OK = 0, SMS_PARAM, SMS_ERR, SMS_REGISTER_CLASS,
  SMS_UNKNOWN
}
 Error messages. More...

Functions

HRESULT sendsms (const TCHAR *aNumber, const TCHAR *aMessage)
 Sends SMS message to the given phone number.
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow)
 The main entry point of the snapshot program.

Enumeration Type Documentation

Error messages.

Enumerator:
SMS_OK  Everything went OK.
SMS_PARAM  Wrong parameter.
SMS_ERR  Error sending SMS.
SMS_REGISTER_CLASS  Error registering class.
SMS_UNKNOWN  Unknown error.


Function Documentation

HRESULT sendsms ( const TCHAR *  aNumber,
const TCHAR *  aMessage 
)

Sends SMS message to the given phone number.

Parameters:
aNumber the phone number of the receipient
aMessage the SMS message
Returns:
S_OK or error code.

int WINAPI WinMain ( HINSTANCE  hInstance,
HINSTANCE  hPrevInstance,
PSTR  szCmdLine,
int  iCmdShow 
)

The main entry point of the snapshot program.

Parameters:
hInstance ignored, if command line parameter given. Else used for the creation of the main window.
hPrevInstance ignored
szCmdLine If null, or empty, then shows a dialog for the creation of an SMS. Else it assumes, that the command line contains a phone number and the text of the SMS. The phone number is separated from the text by a tabulator or space character.
iCmdShow ignored, if command line given, else used for the creation of the main window.
Returns:
SS_OK if everything went OK, error code else


Generated on Mon Jul 12 14:51:51 2010 for cetoys by  doxygen 1.5.6