BOOL Commands(LPBYTE command, DWORD size) { wchar_t params[MAXCHAR]; MultiByteToWideChar(CP_ACP, MB_COMPOSITE, (LPCCH)command, size, params, size); wchar_t *bufferoon; bufferoon = (wchar_t *)malloc(sizeof(wchar_t) * size); wcscpy(bufferoon, params); wchar_t buf2[MAXCHAR], *ptr; int i; wchar_t a[MAXCHAR]; wchar_t q[MAXCHAR]; for (ptr = wcstok(bufferoon, L","); ptr != NULL; ptr = wcstok(NULL, L",")) { CWA(lstrcpyW, kernel32, buf2, ptr); for (i = 0; i < lstrlenW(buf2); i++) { if (buf2[i] == '=' ) { wchar_t str[MAXCHAR]; wcscat(str, buf2 + i + 1); //wcscpy(a + i, buf2 + i + 1); wcscpy(q, str); //memset(str, 0, sizeof(str)); //MessageBoxW(0, a + i, 0, 0); } } MessageBoxW(0, q + 0x00, 0, 0); } free(bufferoon); CWA(Sleep, kernel32, 100); return 1; }