CRACK LOCATOR

The Way We Find The Cracks
 
DateHack Time Limit Remover
  1. Download the crack/serial/keygen for "DateHack Time Limit Remover".
  2. Download with DSL speed using USENExT.
  3.  

  4. View text files (.nfo & .diz) autoextracted from the zip.
  5. If you like the software, please support the author and buy it! Every good job should be paid.

Previous cracks Next cracks
Related cracks Alternative possible spelling

Auto .NFO Viewer
datehack.ico:  è( @€€€€€ €€€€└└└€€€ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿwwwwwwwwwwwwwww wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwy™w™—y™—™w™—™ww—wyw—yyw—yw—ww —wyw—yywwyywww—wywy™ywwy—www™™™w—yyw—yywww—wywy—w™—yy—ww—wywwwwwwywwww —wywwwwwwywwwy™w™—wwwww™wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwy™™—wy™—™w™wwww—wyw—yw—yw—www —ww——yw—ywwwww—ww—y™w—y™—www—ww——yw—yw—www—ww—y—y™w™wwww—ww—www—wwwwww —wywwww—wwwwwy™™—wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww DateHack.rc: //Microsoft Developer Studio generated resource script. // #include "resource.h" #define APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// // // Generated from the TEXTINCLUDE 2 resource. // #include "afxres.h" ///////////////////////////////////////////////////////////////////////////// #undef APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// // Neutral (Default) resources #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENZ) #ifdef _WIN32 LANGUAGE LANG_NEUTRAL, SUBLANG_DEFAULT #pragma code_page(1252) #endif //_WIN32 ///////////////////////////////////////////////////////////////////////////// // // Icon // // Icon with lowest ID value placed first to ensure application icon // remains consistent on all systems. IDI_DATEHACK ICON DISCARDABLE "datehack.ico" #endif // Neutral (Default) resources ///////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////// // English (New Zealand) resources #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENZ) #ifdef _WIN32 LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_NZ #pragma code_page(1252) #endif //_WIN32 ///////////////////////////////////////////////////////////////////////////// // // Dialog // IDD_CONFIG DIALOG DISCARDABLE 0, 0, 322, 193 STYLE DS_MODALFRAME | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "Date Hack GUI Configuration, Written By Steven De Toni 19&# 57;9" FONT 8, "MS Sans Serif" BEGIN EDITTEXT IDC_PROGRAM,10,15,151,15,ES_AUTOHSCR OLL PUSHBUTTON "&...",IDC_PROGRAMSEL,170,15,15,1 ;5 EDITTEXT IDC_PROGPARAMS,200,15,110,15,ES_ AUTOHSCROLL CONTROL "Slider1",IDC_TIMEDELAYSEL,"msctls_trackbar3 2", TBS_AUTOTICKS | TBS_TOP | TBS_ENABLESELRANGE | WS_TABSTOP,15,50,290,20 EDITTEXT IDC_TIMEDELAYEDIT,144,75,26,15,ES_AUTOHSCROLL CONTROL "Dont &Beep On Finish",IDC_BEEPCHK,"Button", BS_AUTOCHECKBOX | WS_TABSTOP,180,75,80,15 COMBOBOX IDC_DAYSEL,15,125,30,95,CBS_DROPDOWNLIST | C BS_UPPERCASE | WS_VSCROLL | WS_TABSTOP COMBOBOX IDC_MONTHSEL,51,125,44,100,CBS_DROPDOWNL IST | CBS_UPPERCASE | WS_VSCROLL | WS_TABSTOP COMBOBOX IDC_YEARSEL,100,125,35,100,CBS_D ROPDOWNLIST | CBS_UPPERCASE | WS_VSCROLL | WS_TABSTOP DEFPUSHBUTTON "&Make Short Cut On Desktop",IDC_MAKE_SC,175, 9;10,120,15 PUSHBUTTON "&Quit",IDC_QUIT,175,130,55,15 PUSHBUTTON "&About",IDC_ABOUT,241,130,54,15 EDITTEXT IDC_PARAM_CONSTRUCT,10,165,225,23,ES_MULTILINE | WS_HSCROLL GROUPBOX "Select Program To Run",IDC_STATIC,5,5,185,30 ; GROUPBOX "Time Delay",IDC_STATIC,5,40,310,55 LTEXT "Number Seconds To Delay",IDC_STATIC,45,78,95,&# 49;0 GROUPBOX "Cmd Line Execute String",IDC_STATIC,5,154, 310,36 GROUPBOX "Set Program Revert Date",IDC_STATIC,5,10 8;,140,45 CTEXT "Month",IDC_STATIC,51,115,44,10 CTEXT "Day",IDC_STATIC,15,115,30,10 ; CTEXT "Year",IDC_STATIC,100,115,35, 9;0 GROUPBOX "Additional Program Parameteres",IDC_STATIC,1 7;5,5,120,30 PUSHBUTTON "&Copy To Clipboard",IDC_COPYTOCLIPBOARD,240, 9;70,70,15 END IDD_SHORTCUTNAME DIALOG DISCARDABLE 0, 0, 177, 63 STYLE DS_SYSMODAL | DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "Short Cut File Details" FONT 8, "MS Sans Serif" BEGIN DEFPUSHBUTTON "OK",IDC_OK,5,45,50,14 PUSHBUTTON "Cancel",IDC_CANCEL,120,45,50,14 EDITTEXT IDC_SHORTCUTFILENAME,15,20,143,14,ES_AUTOHSC ROLL GROUPBOX "Enter Short Cut File Name",IDC_STATIC,5,6,165,3 4 END #ifdef APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // // TEXTINCLUDE // 1 TEXTINCLUDE DISCARDABLE BEGIN "resource.h\0" END 2 TEXTINCLUDE DISCARDABLE BEGIN "#include ""afxres.h""\r\n" "\0" END 3 TEXTINCLUDE DISCARDABLE BEGIN "\r\n" "\0" END #endif // APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // // Dialog Info // IDD_CONFIG DLGINIT BEGIN IDC_MONTHSEL, 0x403, 13, 0 0x2031, 0x2020, 0x4a20, 0 0;6e61, 0x6175, 0x7972, "\000" IDC_MONTHSEL, 0x403, 14, 0 0x2032, 0x2020, 0x4620, 0x62 65, 0x7572, 0x7261, 0x0079, IDC_MONTHSEL, 0x403, 11, 0 0x2033, 0x2020, 0x4d20, 0x72 61, 0x6863, "\000" IDC_MONTHSEL, 0x403, 11, 0 0x2034, 0x2020, 0x4120, 0 0;7270, 0x6c69, "\000" IDC_MONTHSEL, 0x403, 9, 0 0x2035, 0x2020, 0x4d20, 0x7& #57;61, "\000" IDC_MONTHSEL, 0x403, 10, 0 0x2036, 0x2020, 0x4a20, 0x6e 75, 0x0065, IDC_MONTHSEL, 0x403, 10, 0 0x2037, 0x2020, 0x4a20, 0x6c 75, 0x0079, IDC_MONTHSEL, 0x403, 12, 0 0x2038, 0x2020, 0x4120, 0 0;6775, 0x7375, 0x0074, IDC_MONTHSEL, 0x403, 15, 0 0x2039, 0x2020, 0x5320, 0 0;7065, 0x6574, 0x626d, 0x7265, "\00& #48;" IDC_MONTHSEL, 0x403, 12, 0 0x3031, 0x2020, 0x634f, 0x6f 74, 0x6562, 0x0072, IDC_MONTHSEL, 0x403, 13, 0 0x3131, 0x2020, 0x6f4e, 0x65 76, 0x626d, 0x7265, "\000" IDC_MONTHSEL, 0x403, 13, 0 0x3231, 0x2020, 0x6544, 0x6563, 0x626d, 0x7265, "\000" IDC_YEARSEL, 0x403, 5, 0 0x3931, 0x3939, "\000" IDC_YEARSEL, 0x403, 5, 0 0x3032, 0x3030, "\000" IDC_YEARSEL, 0x403, 5, 0 0x3032, 0x3130, "\000" 0 END ///////////////////////////////////////////////////////////////////////////// // // DESIGNINFO // #ifdef APSTUDIO_INVOKED GUIDELINES DESIGNINFO DISCARDABLE BEGIN IDD_CONFIG, DIALOG BEGIN BOTTOMMARGIN, 188 END END #endif // APSTUDIO_INVOKED #endif // English (New Zealand) resources ///////////////////////////////////////////////////////////////////////////// #ifndef APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // // Generated from the TEXTINCLUDE 3 resource. // ///////////////////////////////////////////////////////////////////////////// #endif // not APSTUDIO_INVOKED DateHack.cpp: // ******************************************************** // **** Hack the date and time-out period for programs **** // **** Written by Steven De Toni 1997-99 **** // ******************************************************** #include <stdio.h> #include <string.h> #include <windows.h> #include <commctrl.h> #include <objbase.h> #include <shlobj.h> #include "resource.h" char* pCmdInfo = "*** Program Written By Steven De Toni 99 ***\r\n\r \n" "Cmd Line options:\r\n" "-h display this help\r\n" "-p <program name to execute>\r\n" "-t <delay time in seconds for old system time for bef ore its change back to current time>\r\n" "-d <date in day:month:year e.g. 7:2:1997\ r\n" "-n no beep when completed\r\n" " additonal program parameters\r\n\r\n" "example:\r\n" "datehack -p afile.exe -t 10 -d 1:1:& #49;980 parm1 parm2 parm3 ..."; HANDLE HInst; // The date structure for date changing struct { int day, month, year; int cDay, cMonth, cYear; SYSTEMTIME currentDateInTime; char* pProgramToRun; int threadDelayTime; BOOL beep; } ProgInfo; // ----------------------------------------------------------------------------- - // ----------------------------------------------------------------------------- - // Build the command line parameter void UpdateCmdLineShower (HWND hWnd, BOOL MakeShortCut) { const int maxBuff = MAX_PATH; char cmdBuff[maxBuff] = {'\0'}; char tmpBuff[maxBuff]; // Get the current directory and program name and determine // if there are spaces in it, if then add quotes around the // program string. if (MakeShortCut == FALSE) { if (strstr (__argv[0], " ") != NULL) { // Add the quotes to the string cmdBuff[0] = '"'; strcpy (cmdBuff+1, __argv[0]); strcat (cmdBuff, "\" "); } else { strcpy (cmdBuff, __argv[0]); strcat (cmdBuff, " "); } } // Do the same as above, but for the program parameter if (GetWindowTextLength (GetDlgItem(hWnd, IDC_PROGRAM)) > 0) { strcat (cmdBuff, "-p "); tmpBuff[0] = '\0'; GetWindowText (GetDlgItem(hWnd, IDC_PROGRAM), tmpBuff, maxBuff ); if (strstr (tmpBuff, " ") != NULL) { // Add the quotes to the string, strcat (cmdBuff, "\""); strcat (cmdBuff, tmpBuff); strcat (cmdBuff, "\" "); } else { strcat (cmdBuff, tmpBuff); strcat (cmdBuff, " "); } } // Do the time delay BOOL success = FALSE; int timeDelay = (int) GetDlgItemInt(hWnd, IDC_TIMEDELAYEDIT, &success, FALS E); if (success != FALSE) sprintf (cmdBuff+strlen(cmdBuff), "-t %d ", timeDelay); // Do the revert date int day, month; day = (int) (SendDlgItemMessage (hWnd, IDC_DAYSEL, CB_GETCURSEL, 0, 0)+1); month = (int) (SendDlgItemMessage (hWnd, IDC_MONTHSEL, CB_GETCURSEL, 0, 0)+1); SendDlgItemMessage (hWnd, IDC_YEARSEL, CB_GETLBTEXT, (WPARAM) SendDlgItemMessage (hWnd, IDC_YEARSEL, CB_GETC URSEL, 0, 0), (LPARAM) (LPCSTR) tmpBuff); sprintf (cmdBuff+strlen(cmdBuff), "-d %d:%d:%s ", day, month, tmpBuf f); // Determine if we are going to beep after program completion if (IsDlgButtonChecked(hWnd, IDC_BEEPCHK) == BST_CHECKED) strcat (cmdBuff, "-n "); // Add any parameters that are left onto the cmd string if (GetWindowTextLength (GetDlgItem(hWnd, IDC_PROGPARAMS)) > 0) { GetWindowText (GetDlgItem(hWnd, IDC_PROGPARAMS), cmdBuff+strlen(cmdBuff), maxBuff-strlen(cmdBuff)); } SetWindowText (GetDlgItem(hWnd, IDC_PARAM_CONSTRUCT), cmdBuff); } // ----------------------------------------------------------------------------- - // ----------------------------------------------------------------------------- - int SelectProgram (HWND hEdit, HWND hParent) { const int maxFile = MAX_PATH; const char* pFileTypes = "Executables\0*.exe;*.com\ 0" "Batch Files\0*.bat;*.cmd\0" "All Files\0*.*\0\0"; char Errstr[256] = "GetOpenFileName returned Error #"; OPENFILENAME fileSelect; DWORD Errval; // Error value char buf[5]; // Error buffer char pFileName[maxFile]; // Reset return pointers variables to null. pFileName[0] = '\0'; memset (&fileSelect, 0, sizeof (fileSelect)); fileSelect.hwndOwner = hParent; fileSelect.lStructSize = sizeof(OPENFILENAME); fileSelect.lpstrFilter = (LPSTR)pFileTypes; fileSelect.lpstrCustomFilter = NULL; fileSelect.nFilterIndex = 1; fileSelect.lpstrFile = (LPSTR)pFileName; fileSelect.nMaxFile = maxFile; fileSelect.lpstrFileTitle = ""; fileSelect.nMaxFileTitle = 0; fileSelect.lpstrInitialDir = ".\\"; fileSelect.lpstrTitle = "Select Executable File"; fileSelect.Flags = OFN_FILEMUSTEXIST | OFN_PATHMUSTEXIST | OFN_NOCH ANGEDIR; fileSelect.lpstrDefExt = "*.exe"; if(GetOpenFileName(&fileSelect) != TRUE) { Errval = CommDlgExtendedError(); if(Errval != 0) // 0 value means user selected Cancel { sprintf(buf,"%ld",Errval); strcat(Errstr,buf); MessageBox(NULL,Errstr,"- WARNING - Something Weird Ocurred!", M B_OK | MB_ICONSTOP); return -1; } return 0; } // ---- If all was o.k, then store in edit control ---- SetWindowText(hEdit, pFileName); return 0; } // ----------------------------------------------------------------------------- - // ----------------------------------------------------------------------------- - // CreateLink - uses the shell's IShellLink and IPersistFile interfaces // to create and store a shortcut to the specified object. // Returns the result of calling the member functions of the interfaces. // lpszPathObj - address of a buffer containing the path of the object // lpszWorkingDir - address of a buffer containing the working directory // lpszParameters - address of a buffer containing the programs parameters // lpszPathLink - address of a buffer containing the path where the shell lin k is to be stored // lpszDesc - address of a buffer containing the description of the shell link HRESULT CreateLink(LPCSTR lpszPathObj, LPSTR lpszWorkingDir, LPSTR lpszParameter s, LPSTR lpszPathLink, LPSTR lpszDesc) { HRESULT hres; IShellLink* psl; CoInitialize (NULL); // Get a pointer to the IShellLink interface. hres = CoCreateInstance(CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER, IID_ISh ellLink, (LPVOID*) &psl); if (SUCCEEDED(hres)) { IPersistFile* ppf; // Set the path to the shortcut target, and add the // description. psl->SetPath (lpszPathObj); psl->SetWorkingDirectory (lpszWorkingDir); psl->SetArguments (lpszParameters); psl->SetDescription (lpszDesc); psl->SetIconLocation (lpszPathObj, 0); // Query IShellLink for the IPersistFile interface for saving the // shortcut in persistent storage. hres = psl->QueryInterface (IID_IPersistFile, (LPVOID*)&ppf); if (SUCCEEDED(hres)) { WORD wsz[MAX_PATH]; // Ensure that the string is ANSI. MultiByteToWideChar (CP_ACP, 0, lpszPathLink, -1, wsz, MAX_P ATH); // Save the link by calling IPersistFile::Save. hres = ppf->Save (wsz, TRUE); ppf->Release (); } psl->Release (); } CoUninitialize (); return hres; } // ----------------------------------------------------------------------------- - // ----------------------------------------------------------------------------- - int MakeDesktopShortCut (HWND hWnd, char* pSCFilename) { const int maxFile = MAX_PATH; char workDir[maxFile] = {'\0'}; char params[maxFile] = {'\0'}; char desktopFilename[maxFile]; // Get the parameters if (GetWindowText (GetDlgItem(hWnd, IDC_PARAM_CONSTRUCT), params, MAX_P ATH) == 0) { MessageBox (hWnd, "Unable to obtain parameters.\nParameters e&# 120;ceed memory allocation", "Mem Error", MB_ICONSTOP | MB_OK); return -1; } // Determine where abouts the desktop directory is for this user. unsigned long type = REG_SZ; HKEY hShellInfo = NULL; LONG regResult = RegOpenKey (HKEY_CURRENT_USER, (LPCTSTR)"Software\\ Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders", &hShellIn fo); if (regResult != 0) { MessageBox (hWnd, "Unable to query windows registery.", "Windows Registery Error", MB_ICONSTOP | MB_OK); return -1; } regResult = RegQueryValueEx(hShellInfo, (LPTSTR)"Desktop", NULL, &type, (LPBYTE)desktopFilename, (LPDWORD) &maxFile); if (regResult != 0) { MessageBox (hWnd, "Unable to query windows registery.", "Windows Registery Error", MB_ICONSTOP | MB_OK); return -1; } RegCloseKey(hShellInfo); // Build desktop short cut file name strcat (desktopFilename, "\\"); strcat (desktopFilename, pSCFilename); strcat (desktopFilename, ".lnk"); // Determine the working directory of the users program GetWindowText (GetDlgItem(hWnd, IDC_PROGRAM), workDir, MAX_PATH); char* pWork = workDir + strlen(workDir); while (pWork > workDir) { if (*pWork == '\\') { *pWork = '\0'; break; } pWork--; } if ((CreateLink(__argv[0], workDir, params, desktopFilename, "Date H ack Short Cut")) != 0) { MessageBox (hWnd, "Unable to create short cut on your desktop.& #34;, "Windows Short Cut Shell Error", MB_ICONSTOP | MB_OK ); return -1; } return 0; } // ----------------------------------------------------------------------------- - // ----------------------------------------------------------------------------- - BOOL CALLBACK ShortCutDetails (HWND hWnd, UINT message, WPARAM wParam, LPARAM lP aram) { static char* pParamBuff = NULL; switch (message) { case WM_INITDIALOG: if (lParam != NULL) { pParamBuff = (char*) lParam; SetWindowText (GetDlgItem(hWnd, IDC_SHORTCUTFILENAME), pParamBuff); } else { MessageBox (hWnd, "Internal Error, Unable To Contin ue", "Error", MB_ICONSTOP | MB_OK); EndDialog (hWnd, FALSE); } return TRUE; case WM_COMMAND: switch (LOWORD (wParam)) { case IDC_CANCEL: EndDialog (hWnd, FALSE); return TRUE; case IDC_OK: if (pParamBuff != NULL) { GetWindowText (GetDlgItem(hWnd, IDC_SHORTCUTFILENAM E), pParamBuff, MAX_PATH); pParamBuff = NULL; EndDialog (hWnd, TRUE); } return TRUE; } break; case WM_CLOSE: EndDialog (hWnd, FALSE); return TRUE; } return FALSE; } // ----------------------------------------------------------------------------- - // ----------------------------------------------------------------------------- - BOOL CALLBACK Config (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { switch (message) { case WM_INITDIALOG: { char* months[] = {"Jan", "Feb", "Mar", & #34;Apr", "May", "Jun", "Jul", "Aug", "Sep", & #34;Oct", "Nov", "Dec"}; char tmpBuff[64]; SYSTEMTIME tmpDate; GetSystemTime (&tmpDate); // Init controls SendDlgItemMessage (hWnd, IDC_TIMEDELAYSEL, TBM_SETRANGE, TRUE, (LPARAM) MAKELONG(1, 20)); SetWindowText(GetDlgItem(hWnd, IDC_TIMEDELAYEDIT), " 9;"); // Build Date Strings for (int day = 1; day < 32; day++) { sprintf (tmpBuff, "%d", day); SendDlgItemMessage (hWnd, IDC_DAYSEL, CB_ADDSTRING, 0, ( LPARAM) (LPCTSTR) tmpBuff); } // Set the current day SendDlgItemMessage (hWnd, IDC_DAYSEL, CB_SETCURSEL, tmpDate.wDay -1, 0); // Build Month Strings for (int month = 1; month <= 12; month++) { sprintf (tmpBuff, "%d %s", month, months[month-1 ]); SendDlgItemMessage (hWnd, IDC_MONTHSEL, CB_ADDSTRING, 0, (LPARAM) (LPCTSTR) tmpBuff); } // Set the current month SendDlgItemMessage (hWnd, IDC_MONTHSEL, CB_SETCURSEL, tmpDate.wM onth-1, 0); // Build Year Strings for (int year = tmpDate.wYear-10; year < tmpDate.wYe ar+100; year++) { sprintf (tmpBuff, "%d", year); SendDlgItemMessage (hWnd, IDC_YEARSEL, CB_ADDSTRING, 0, (LPARAM) (LPCTSTR) tmpBuff); } // Set the current year SendDlgItemMessage (hWnd, IDC_YEARSEL, CB_SETCURSEL, 10, 0); DragAcceptFiles(hWnd , TRUE); // initalise drag and drop UpdateCmdLineShower (hWnd, FALSE); } return TRUE; case WM_DROPFILES: { char* pFileName = NULL; int fileLen = 1024; int dropNum = DragQueryFile((HDROP) wParam, (UINT)-1, NULL, 0); for (int idx = 0; idx < dropNum; idx++) { fileLen = DragQueryFile((HDROP) wParam, idx, NULL, 0 ; ); if ((pFileName = new char[fileLen+1]) == NULL) break; //copy of the file name DragQueryFile((HDROP) wParam, idx, pFileName, fileLen+1 ; ); SetWindowText(GetDlgItem(hWnd, IDC_PROGRAM), pFileName) ; // Clean up and make ready for any additional files. if (pFileName != NULL) { delete[] pFileName; pFileName = NULL; } } DragFinish((HDROP) wParam); } return TRUE; // Process user control message information. case WM_COMMAND: switch (LOWORD (wParam)) { // Auto update controls case IDC_PROGRAM: case IDC_PROGPARAMS: case IDC_BEEPCHK: case IDC_TIMEDELAYEDIT: case IDC_DAYSEL: case IDC_MONTHSEL: case IDC_YEARSEL: UpdateCmdLineShower (hWnd, FALSE); return TRUE; // Buttons case IDC_PROGRAMSEL: SelectProgram (GetDlgItem(hWnd, IDC_PROGRAM), hWnd); UpdateCmdLineShower (hWnd, FALSE); return TRUE; case IDC_MAKE_SC: // Determine if we have valid parameters if (GetWindowTextLength (GetDlgItem(hWnd, IDC_PROGRAM)) <= 0) { MessageBox (hWnd, "Enter A Program For Date Hac k To Execute.", "Missing Program Parameter", MB_ICO NINFORMATION | MB_OK); return TRUE; } { char shortcutFilename[MAX_PATH]; char programName[MAX_PATH] = ""; char* pFndProgName; BOOL result; // Construct a default file name GetWindowText (GetDlgItem(hWnd, IDC_PROGRAM), progr amName, MAX_PATH); strcpy (shortcutFilename, "Date Hack "); pFndProgName = programName + (strlen(programName)-1) ; while ((*pFndProgName != '\\') && (pFndProgName > programName)) pFndProgName--; strcat (shortcutFilename, pFndProgName+1); // Remove program extensions for (int idx = 0; shortcutFilename[idx] != '\0'; idx++) { if (shortcutFilename[idx] == '.') { shortcutFilename[idx] = '\0'; break; } } result = (BOOL) DialogBoxParam (HInst, MAKEINTRESOU RCE(IDD_SHORTCUTNAME), hWnd, (DLGPROC) ShortCu tDetails, (LPARAM) shortcutFilenam e); if (result == FALSE) return TRUE; // Remove any program extensions again for (idx = 0; shortcutFilename[idx] !=  9;\0'; idx++) { if (shortcutFilename[idx] == '.') { shortcutFilename[idx] = '\0'; break; } } UpdateCmdLineShower (hWnd, TRUE); MakeDesktopShortCut (hWnd, shortcutFilename); UpdateCmdLineShower (hWnd, FALSE); } return TRUE; case IDC_COPYTOCLIPBOARD: // Select all the text in the cmd line edit control and // issue a copy command. SendDlgItemMessage (hWnd, IDC_PARAM_CONSTRUCT, EM_SETSEL, &# 48;, -1); SendMessage (GetDlgItem(hWnd, IDC_PARAM_CONSTRUCT), WM_COPY, 0, 0); SendDlgItemMessage (hWnd, IDC_PARAM_CONSTRUCT, EM_SETSEL, &# 48;, 0); return TRUE; case IDC_ABOUT: MessageBox (NULL, pCmdInfo, "About", MB_ICONINF ORMATION | MB_OK); return TRUE; case IDC_QUIT: EndDialog (hWnd, FALSE); return TRUE; } break; case WM_HSCROLL: switch (LOWORD (wParam)) { case TB_THUMBTRACK: case TB_ENDTRACK: if (GetDlgItem(hWnd, IDC_TIMEDELAYSEL) == (HWND)lParam) { char buff[16]; sprintf (buff, "%d", (int)SendMessage ((HWND)lPa ram, TBM_GETPOS, 0,0)); SetWindowText(GetDlgItem(hWnd, IDC_TIMEDELAYEDIT), buff); UpdateCmdLineShower (hWnd, FALSE); } return TRUE; } break; case WM_CLOSE: EndDialog (hWnd, FALSE); return TRUE; case WM_DESTROY: DragAcceptFiles(hWnd , FALSE); return TRUE; } return FALSE; } // ----------------------------------------------------------------------------- - // ----------------------------------------------------------------------------- - void InitProgramInfo () { ProgInfo.pProgramToRun = ""; ProgInfo.threadDelayTime = 5; ProgInfo.beep = TRUE; } // ----------------------------------------------------------------------------- - // ----------------------------------------------------------------------------- - // returns number of argurments in cmd line int MakeCmdArray (char** pArray, int arrLimit, char* pCmdLine) { int arrayIdx = 0; char* pCurChar = pCmdLine; BOOL strParam = FALSE; pArray[arrayIdx] = pCurChar; while ((*pCurChar != '\0') && (arrayIdx < arrLimit)) { // Process string parameters like "c:\program files" as 1 pa rameter if ((*pCurChar == '"') && (strParam == FALSE)) strParam = TRUE; else if ((*pCurChar == '"') && (strParam == TRUE)) strParam = FALSE; if ((*pCurChar == ' ') && (strParam == FALSE)) { *pCurChar = '\0'; arrayIdx++; pArray[arrayIdx] = pCurChar+1; } pCurChar++; } // return true number of items... if (pCurChar != pCmdLine) arrayIdx++; return arrayIdx; } // ----------------------------------------------------------------------------- - // ----------------------------------------------------------------------------- - int LoadParameters (char** argv, int argc, char* progParams) { int idx = 0; if (argc <= 0) { DialogBox (HInst, MAKEINTRESOURCE (IDD_CONFIG), NULL, (DLGPROC) Con fig); return -1; } InitProgramInfo (); while (idx < argc) { if (argv[idx][0] != '-') { // Load program parameters... if (strlen (progParams) > 0) strcat (progParams, " "); strcat (progParams, argv[idx]); } else { switch (argv[idx][1]) { case 'h': case 'H': MessageBox (NULL, pCmdInfo, "About", MB_ICONINF ORMATION | MB_OK); return -1; case 'n': case 'N': ProgInfo.beep = FALSE; break; case 'p': case 'P': idx++; if (idx >= argc) { MessageBox (NULL, pCmdInfo, "Date Hack, Ex pected Program Filename 4 -p", MB_ICONINFORMATION | MB_OK); return -1; } // Determine if parameter has surrounded by quotes, if so th en // remove them if (strlen(argv[idx]) > 1) { if ((argv[idx][0] == '"') && (argv[ idx][strlen(argv[idx])-1] == '"')) { strcpy (argv[idx], argv[idx]+1); argv[idx][strlen(argv[idx])-1] = ' \0'; } } ProgInfo.pProgramToRun = argv[idx]; break; case 't': case 'T': idx++; if (idx >= argc) { MessageBox (NULL, pCmdInfo, "Date Hack, Ex pected Time numeric for -t", MB_ICONINFORMATION | MB_OK); return -1; } sscanf (argv[idx], "%d", &ProgInfo.threadDelayT ime); ProgInfo.threadDelayTime = abs(ProgInfo.threadDelayTime); break; case 'd': case 'D': idx++; if (idx >= argc) { MessageBox (NULL, pCmdInfo, "Date Hack, Ex pected date string for -d", MB_ICONINFORMATION | MB_OK); return -1; } sscanf(argv[idx],"%d:%d:%d", &ProgInfo.day, &Pr ogInfo.month, &ProgInfo.year); break; } } idx++; } if (strcmp (ProgInfo.pProgramToRun, "") == 0) { DialogBox (HInst, MAKEINTRESOURCE (IDD_CONFIG), NULL, (DLGPROC) Con fig); return -1; } if ((ProgInfo.year <= 0) || (ProgInfo.month <= 0) || (ProgIn fo.day <= 0)) { MessageBox (NULL, pCmdInfo, "Date Hack, Bad date format", M B_ICONINFORMATION | MB_OK); return -1; } if (ProgInfo.threadDelayTime <= 0) { MessageBox (NULL, pCmdInfo, "Date Hack, Time delay must be > ;= 0", MB_ICONINFORMATION | MB_OK); return -1; } return 0; } // ----------------------------------------------------------------------------- - // ----------------------------------------------------------------------------- - int PASCAL WinMain (HANDLE hInstance, HANDLE hPrevInstance, LPSTR lpszCmdParam, int nCmdShow) { const int cmdLimit = MAX_PATH; char* pStrArray [cmdLimit]; char curDir [cmdLimit*4]; char progParams[cmdLimit]; int cmdNum; HInst = hInstance; progParams[0] = '\0'; cmdNum = MakeCmdArray (pStrArray, cmdLimit, lpszCmdParam); if (LoadParameters (pStrArray, cmdNum, progParams) != 0) return -1; // ***** The actual code that does the work ! ***** GetSystemTime (&ProgInfo.currentDateInTime); // back up the current day. ProgInfo.cYear = ProgInfo.currentDateInTime.wYear; ProgInfo.cMonth = ProgInfo.currentDateInTime.wMonth; ProgInfo.cDay = ProgInfo.currentDateInTime.wDay; // load in old/new date. ProgInfo.currentDateInTime.wYear = (WORD) ProgInfo.year; ProgInfo.currentDateInTime.wMonth = (WORD) ProgInfo.month; ProgInfo.currentDateInTime.wDay = (WORD) ProgInfo.day; // This may fail under NT because of security rights if (SetSystemTime (&ProgInfo.currentDateInTime) == FALSE) { MessageBox (NULL, "Couldn't change system Date!\r\nDate is either incorrect or you don't have access to change the system date.\r\nProg ram Terminated.", "Access Violation",MB_ICONSTOP | MB_ICONINFORMATIO N); return -1; } // run the program GetCurrentDirectory (cmdLimit*4, curDir); ShellExecute (GetDesktopWindow(), (LPCTSTR)"open", (LPCTSTR)ProgInfo.pProgramToRun, (LPCTSTR)progParams, (LPCTSTR)curDir, SW_SHOWDEFAULT); // ---- Wait some time ---- Sleep (ProgInfo.threadDelayTime * 1000); // ---- and clean up ---- GetSystemTime (&ProgInfo.currentDateInTime); // load in old/new date. ProgInfo.currentDateInTime.wYear = (WORD) ProgInfo.cYear; ProgInfo.currentDateInTime.wMonth = (WORD) ProgInfo.cMonth; ProgInfo.currentDateInTime.wDay = (WORD) ProgInfo.cDay; SetSystemTime (&ProgInfo.currentDateInTime); if (ProgInfo.beep != FALSE) MessageBeep ((UINT)-1); return 0; } DateHack.mak: # Microsoft Developer Studio Generated NMAKE File, Format Version 400 8;1 # ** DO NOT EDIT ** # TARGTYPE "Win32 (x86) Application" 0x0101 ; !IF "$(CFG)" == "" CFG=DateHack - Win32 Debug !MESSAGE No configuration specified. Defaulting to DateHack - Win32 Debug. !ENDIF !IF "$(CFG)" != "DateHack - Win32 Release" && "$(CFG)" ! =\ "DateHack - Win32 Debug" !MESSAGE Invalid configuration "$(CFG)" specified. !MESSAGE You can specify a configuration when running NMAKE on this makefile !MESSAGE by defining the macro CFG on the command line. For example: !MESSAGE !MESSAGE NMAKE /f "DateHack.mak" CFG="DateHack - Win32 Debug" !MESSAGE !MESSAGE Possible choices for configuration are: !MESSAGE !MESSAGE "DateHack - Win32 Release" (based on "Win32 (x86) Appl ication") !MESSAGE "DateHack - Win32 Debug" (based on "Win32 (x86) Applic ation") !MESSAGE !ERROR An invalid configuration is specified. !ENDIF !IF "$(OS)" == "Windows_NT" NULL= !ELSE NULL=nul !ENDIF ################################################################################ # Begin Project # PROP Target_Last_Scanned "DateHack - Win32 Debug" RSC=rc.exe CPP=cl.exe MTL=mktyplib.exe !IF "$(CFG)" == "DateHack - Win32 Release" # PROP BASE Use_MFC 0 # PROP BASE Use_Debug_Libraries 0 # PROP BASE Output_Dir "WinRel" # PROP BASE Intermediate_Dir "WinRel" # PROP Use_MFC 0 # PROP Use_Debug_Libraries 0 # PROP Output_Dir "WinRel" # PROP Intermediate_Dir "WinRel" OUTDIR=.\WinRel INTDIR=.\WinRel ALL : "$(OUTDIR)\DateHack.exe" CLEAN : -@erase ".\WinRel\DateHack.exe" -@erase ".\WinRel\DateHack.obj" -@erase ".\WinRel\dateHack.res" "$(OUTDIR)" : if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)" $(OUTDIR)/DateHack.bsc : $(OUTDIR) $(BSC32_SBRS) # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D  4;_WINDOWS" /FR /YX /c # ADD CPP /nologo /W3 /GX- /O2 /Ob2 /D "WIN32" /D "NDEBUG" /D &# 34;_WINDOWS" /YX /c # SUBTRACT CPP /Fr CPP_PROJ=/nologo /ML /W3 /GX- /O2 /Ob2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS"\ /Fp"$(INTDIR)/DateHack.pch" /YX /Fo"$(INTDIR)/" /c CPP_OBJS=.\WinRel/ CPP_SBRS= # ADD BASE MTL /nologo /D "NDEBUG" /win32 # ADD MTL /nologo /D "NDEBUG" /win32 MTL_PROJ=/nologo /D "NDEBUG" /win32 # ADD BASE RSC /l 0x1409 /d "NDEBUG" # ADD RSC /l 0x1409 /d "NDEBUG" RSC_PROJ=/l 0x1409 /fo"$(INTDIR)/dateHack.res" /d & #34;NDEBUG" BSC32=bscmake.exe # ADD BASE BSC32 /nologo # ADD BSC32 /nologo BSC32_FLAGS=/nologo /o"$(OUTDIR)/DateHack.bsc" BSC32_SBRS= LINK32=link.exe # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib ad vapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib / nologo /subsystem:windows /machine:I386 # ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi3 2.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nolog o /subsystem:windows /machine:I386 # SUBTRACT LINK32 /debug LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib\ advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib\ odbccp32.lib /nologo /subsystem:windows /incremental:no\ /pdb:"$(OUTDIR)/DateHack.pdb" /machine:I386 /out:"$(OUTDIR)/DateHac k.exe" LINK32_OBJS= \ "$(INTDIR)/DateHack.obj" \ "$(INTDIR)/dateHack.res" "$(OUTDIR)\DateHack.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32 _OBJS) $(LINK32) @<< $(LINK32_FLAGS) $(LINK32_OBJS) << !ELSEIF "$(CFG)" == "DateHack - Win32 Debug" # PROP BASE Use_MFC 0 # PROP BASE Use_Debug_Libraries 1 # PROP BASE Output_Dir "WinDebug" # PROP BASE Intermediate_Dir "WinDebug" # PROP Use_MFC 0 # PROP Use_Debug_Libraries 1 # PROP Output_Dir "WinDebug" # PROP Intermediate_Dir "WinDebug" OUTDIR=.\WinDebug INTDIR=.\WinDebug ALL : "$(OUTDIR)\DateHack.exe" CLEAN : -@erase ".\WinDebug\vc40.pdb" -@erase ".\WinDebug\vc40.idb" -@erase ".\WinDebug\DateHack.exe" -@erase ".\WinDebug\DateHack.obj" -@erase ".\WinDebug\dateHack.res" -@erase ".\WinDebug\DateHack.ilk" -@erase ".\WinDebug\DateHack.pdb" "$(OUTDIR)" : if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)" $(OUTDIR)/DateHack.bsc : $(OUTDIR) $(BSC32_SBRS) # ADD BASE CPP /nologo /W3 /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /FR /YX /c # ADD CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /c # SUBTRACT CPP /Fr CPP_PROJ=/nologo /MLd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS"\ /Fp"$(INTDIR)/DateHack.pch" /YX /Fo"$(INTDIR)/" /Fd"$(INTDI R)/" /c CPP_OBJS=.\WinDebug/ CPP_SBRS= # ADD BASE MTL /nologo /D "_DEBUG" /win32 # ADD MTL /nologo /D "_DEBUG" /win32 MTL_PROJ=/nologo /D "_DEBUG" /win32 # ADD BASE RSC /l 0x1409 /d "_DEBUG" # ADD RSC /l 0x1409 /d "_DEBUG" RSC_PROJ=/l 0x1409 /fo"$(INTDIR)/dateHack.res" /d & #34;_DEBUG" BSC32=bscmake.exe # ADD BASE BSC32 /nologo # ADD BSC32 /nologo BSC32_FLAGS=/nologo /o"$(OUTDIR)/DateHack.bsc" BSC32_SBRS= LINK32=link.exe # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib ad vapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib / nologo /subsystem:windows /debug /machine:I386 # ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi3 2.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nolog o /subsystem:windows /debug /machine:I386 LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib\ advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib\ odbccp32.lib /nologo /subsystem:windows /incremental:yes\ /pdb:"$(OUTDIR)/DateHack.pdb" /debug /machine:I386\ /out:"$(OUTDIR)/DateHack.exe" LINK32_OBJS= \ "$(INTDIR)/DateHack.obj" \ "$(INTDIR)/dateHack.res" "$(OUTDIR)\DateHack.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32 _OBJS) $(LINK32) @<< $(LINK32_FLAGS) $(LINK32_OBJS) << !ENDIF .c{$(CPP_OBJS)}.obj: $(CPP) $(CPP_PROJ) $< .cpp{$(CPP_OBJS)}.obj: $(CPP) $(CPP_PROJ) $< .cxx{$(CPP_OBJS)}.obj: $(CPP) $(CPP_PROJ) $< .c{$(CPP_SBRS)}.sbr: $(CPP) $(CPP_PROJ) $< .cpp{$(CPP_SBRS)}.sbr: $(CPP) $(CPP_PROJ) $< .cxx{$(CPP_SBRS)}.sbr: $(CPP) $(CPP_PROJ) $< ################################################################################ # Begin Target # Name "DateHack - Win32 Release" # Name "DateHack - Win32 Debug" !IF "$(CFG)" == "DateHack - Win32 Release" !ELSEIF "$(CFG)" == "DateHack - Win32 Debug" !ENDIF ################################################################################ # Begin Source File SOURCE=.\DateHack.cpp !IF "$(CFG)" == "DateHack - Win32 Release" NODEP_CPP_DATEH=\ ".\ppf"\ "$(INTDIR)\DateHack.obj" : $(SOURCE) "$(INTDIR)" !ELSEIF "$(CFG)" == "DateHack - Win32 Debug" "$(INTDIR)\DateHack.obj" : $(SOURCE) "$(INTDIR)" !ENDIF # End Source File ################################################################################ # Begin Source File SOURCE=.\dateHack.rc DEP_RSC_DATEHA=\ ".\datehack.ico"\ "$(INTDIR)\dateHack.res" : $(SOURCE) $(DEP_RSC_DATEHA) "$(INTDIR) 4; $(RSC) $(RSC_PROJ) $(SOURCE) # End Source File # End Target # End Project ################################################################################ resource.h: //{{NO_DEPENDENCIES}} // Microsoft Developer Studio generated include file. // Used by DateHack.rc // #define IDD_CONFIG 101 #define IDD_SHORTCUTNAME 104 #define IDI_DATEHACK 105 #define IDC_PARAM_CONSTRUCT 1000 #define IDC_MAKE_SC 1001 #define IDC_QUIT 1002 #define IDC_BEEP 1003 #define IDC_BEEPCHK 1003 #define IDC_EDIT2 1004 #define IDC_PROGRAM 1004 #define IDC_SEL_PROGRAM 1005 #define IDC_PROGRAMSEL 1005 #define IDC_PROGPARAMS 1006 #define IDC_TIMEDELAY 1007 #define IDC_TIMEDELAYSEL 1007 #define IDC_EDIT3 1009 #define IDC_TIMEDELAYEDIT 1009 #define IDC_ABOUT 1010 #define IDC_MONTHSEL 1011 #define IDC_DAYSEL 1012 #define IDC_SHORTCUTFILENAME 1012 #define IDC_YEARSEL 1013 #define IDC_OK 1013 #define IDC_CANCEL 1014 #define IDC_COPYTOCLIPBOARD 1015 // Next default values for new objects // #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS #define _APS_NEXT_RESOURCE_VALUE 107 #define _APS_NEXT_COMMAND_VALUE 40001 #define _APS_NEXT_CONTROL_VALUE 1016 #define _APS_NEXT_SYMED_VALUE 101 #endif #endif
Total 126566 cracks located, last update 2006-10-03 15:33:03.
Powered by Crack Locator. No rights reserved.

Email: for generic info - webmaster!crack-locator.com; send new crack - new!crack-locator.com
Links: Astalavista.box.sk; Lomalka; crack.cd; Software Serials
Get Firefox!