static void CopyText(HWND hwnd) { int count; THREAD *list = activeProcess->threads; char *p; while (list) { list = list->next; count++; } p = malloc(256 * count); if (p) { int i; p[0] = 0; list = activeProcess->threads; while (list) { char name[256]; int eip = list->regs.Eip; int n; n = FindFunctionName(name, eip, NULL, NULL); if (!n) name[0] = 0; if (list->idThread == activeThread->idThread) strcat(name, "*"); sprintf(p + strlen(p), "%d\t%s + 0x%x\n", list->idThread, name, eip - n); list = list->next; } TextToClipBoard(hwnd, p); free(p); } }
void CopyText(HWND hwnd) { int len = GetClipboardText(hwnd, NULL, NULL,-2) + 1; char *p = malloc(len); if (p) { p[0] = 0; GetClipboardText(hwnd, NULL, p,-2); TextToClipBoard(hwnd, p); free(p); } }
static void CopyText(HWND hwnd) { int i; char *p = calloc(browsecount, MAX_PATH + 20); int sz = 1; int n = browsecount; if (p) { for (i=0; i < n && i < browsecount; i++) { char buf[1000]; sprintf(buf, "%d: %s\t%d\t%s\n", i+1, browselist[i]->name, browselist[i]->line, browselist[i]->file); strcat(p, buf); } TextToClipBoard(hwnd, p); free(p); } }
static void CopyText(HWND hwnd) { SCOPE *list = StackList; int count = 0; char *p; while (list) { count++; list = list->next; } p = malloc(count * 256); if (p) { list = StackList; p[0] = 0; while (list) { sprintf(p + strlen(p), "%08X\t%s\n", list->address, list->name); list = list->next; } TextToClipBoard(hwnd, p); free(p); } }