/** * H4CE * tmail Agent * 2008.06 **/ #define INITGUID #include #include #include /** * WinMain entry point **/ /* int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nShowCmd) { return 0; } int unregTMail() { SmsClearMessageNotification(SMS_MSGTYPE_NOTIFICATION); return 0; }*/ /*int regTMail(TCHAR* param) { SMSREGISTRATIONDATA regData; memset(®Data, 0x00, sizeof(regData)); regData.cbSize = sizeof(regData); #ifdef UNICODE wcscpy(regData.tszAppName, param); wcscpy(regData.tszParams, TEXT("-attach")); wcscpy(regData.tszProtocolName, SMS_MSGTYPE_NOTIFICATION); #else strcpy(regData.tszAppName, param); strcpy(regData.tszParams, "-attach"); strcpy(regData.tszProtocolName, SMS_MSGTYPE_NOTIFICATION); #endif unregTMail(); // un-reg. application! SmsSetMessageNotification(®Data); return 0; } int attachTMail() { return 0; } */ /** * main **/ /* int main(int argc, TCHAR* argv[]) { if (argc == 2) { // require 2 parameters! bool bRequireRegister = false, bRequireAttach; #ifdef UNICODE bRequireRegister = (wcscmp(argv[1], TEXT("-register")) == 0); #else bRequireRegister = (strcmp(argv[1], "-register") == 0); #endif #ifdef UNICODE bRequireAttach = (wcscmp(argv[1], TEXT("-attach")) == 0); #else bRequireAttach = (strcmp(argv[1], "-attach") == 0); #endif if (bRequireRegister) return regTMail(argv[0]); if (bRequireAttach) return attachTMail(); } return 0; } */ .