/************************************************* Function: main Description: 主函数 Calls: scanf printf Called By: 编译器 Input: 无 Output: 无 Return: 0 *************************************************/ int main(void) { int a[2][3]; int b[3][2]; int res[2][2] = {0}; Init1(a); Init2(b); //Output(res); Mul(a, b, res); Output(res); }
wxPropertyGridManager::wxPropertyGridManager( wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : wxPanel() { Init1(); Create(parent,id,pos,size,style,name); }
int main(int argc, char *argv[]){ glutInit(&argc, argv); glutInitWindowPosition(100, 100); glutInitWindowSize(300, 300); glutInitDisplayMode(GLUT_RGBA | GLUT_SINGLE); win1 = glutCreateWindow("OpenGL Practica 2_2 window 1 Laura del Pino Díaz"); Init1(); glutDisplayFunc(Display1); // define la funcion de rendering glutMouseFunc(MouseVentana1); win1 = glutCreateWindow("OpenGL Practica 2_2 window 1 Laura del Pino Díaz"); Init2(); glutDisplayFunc(Display2); // define la funcion de rendering glutMouseFunc(MouseVentana2); glutMainLoop(); return 0; }
wxPropertyGridManager::wxPropertyGridManager() : wxPanel() { Init1(); }
VOID InitSecuRom() { ULONG Value1, Value2; union { HMODULE hModule; ULONG_PTR BaseAddress; }; SecuromInitFunc Init1 = (SecuromInitFunc)0xE59426; SecuromInitFunc Init2 = (SecuromInitFunc)0xC06CF3; MessageBoxW(NULL, NULL, NULL, NULL); hModule = GetModuleHandleW(NULL); MEMORY_PATCH p[] = { // static data { NULL, 4, 0x125BC58 }, // pointer { NULL, 4, 0x125BC6C }, // pointer { (ULONG_PTR)SRData3, 4, 0x1220964 }, // data { (ULONG_PTR)VM_HANDLER_PTR, 4, 0x122097C }, // data { *(PULONG_PTR)(0x93E3E0 + BaseAddress), 4, 0x1343CDC }, // SR CRT hHeap { (ULONG_PTR)VM, 4, 0x13456BC }, // VM { 0xB8, 1, 0x0C068EE }, // skip decrypt code call // IAT { (ULONG_PTR)HeapAlloc, 4, 0x1512E34 }, // SR IAT HeapAlloc { (ULONG_PTR)HeapReAlloc, 4, 0x1512D2C }, // SR IAT HeapReAlloc { (ULONG_PTR)HeapFree, 4, 0x1512E38 }, // SR IAT HeapFree { (ULONG_PTR)EnterCriticalSection, 4, 0x1512D7C }, // SR IAT EnterCriticalSection { (ULONG_PTR)LeaveCriticalSection, 4, 0x1512D80 }, // SR IAT LeaveCriticalSection }; PatchMemory(p, countof(p), NULL, 0, hModule); *(PULONG_PTR)&VM[0x78] = (ULONG_PTR)SRDataPtr1; *(PULONG_PTR)&VM[0xCC] = (ULONG_PTR)SRData3; *(PULONG_PTR)&VM[0xDA] = (ULONG_PTR)VM_HANDLER_PTR; for (ULONG Count = countof(VM_HANDLER_PTR), *p = VM_HANDLER_PTR; Count; ++p, --Count) { *p = *p + (ULONG_PTR)VM_HANDLER - (ULONG_PTR)VM; } InitializeCriticalSection((LPCRITICAL_SECTION)(0x125BC34 + BaseAddress)); *(PULONG_PTR)&Init1 += BaseAddress; *(PULONG_PTR)&Init2 += BaseAddress; Value1 = 0; Value2 = 4; Init1(0x125BC6C + BaseAddress, 0, 0, 0, 0, &Value1, &Value2); EnumDirectoryFiles( NULL, L"*.*", 0, L"J:\\Falcom\\ED_Zero\\SRData", NULL, (FEnumDirectoryFilesCallBack)Callback, (ULONG_PTR)Init2, 0 ); // Init2(0x176BD6F + BaseAddress, NULL/* pEnctyptData */); }