Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ```cpp
- int CCAPIWriteProcessMemory(sys_pid_t pid, void* destination, const void* source, size_t size)
- {
- return sys_ccapi_call(0x123, pid, destination, size, source);
- }
- int CCAPIReadProcessMemory(sys_pid_t pid, void* destination, void* source, size_t size)
- {
- return sys_ccapi_call(0x785, pid, destination, size, source);
- }
- int CCAPICreateProcessThread(sys_pid_t pid, thread_t* thread, void* entry, uint64_t arg, int prio, size_t stacksize, const char* threadname) // void(*entry)(uint64_t), sys_ppu_thread_t *arg
- {
- return sys_ccapi_call(0x357, pid, thread, entry, arg, prio, stacksize, threadname);
- }
- int CCAPIAllocatePage(sys_pid_t pid, uint64_t size, uint64_t page_size, uint64_t flags, uint64_t is_executable, uint64_t* kernel_page_adr, uint64_t* game_page_adr)
- {
- return sys_ccapi_call(0x977, pid, size, page_size, flags, is_executable, kernel_page_adr, game_page_adr);
- }
- int CCAPIEnableSysCall()
- {
- return sys_ccapi_call(0x241);
- }
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement