vitasdk
Documentation of the vitasdk

Detailed Description

Exports for Kernel.


Using this library in your project

Include the header file in your project:


Link the library to the executable:

SceProcEventForDriver_stub



Functions

 VITASDK_BUILD_ASSERT_EQ (0x10, SceProcEventInvokeParam1)
 
 VITASDK_BUILD_ASSERT_EQ (0x14, SceProcEventInvokeParam2)
 
 VITASDK_BUILD_ASSERT_EQ (0x1C, SceProcEventHandler)
 
SceUID ksceKernelRegisterProcEventHandler (const char *name, const SceProcEventHandler *handler, int a3)
 Register process event handler. More...
 
int ksceKernelUnregisterProcEventHandler (SceUID uid)
 Unregister process event handler. More...
 
int ksceKernelInvokeProcEventHandler (SceUID pid, int event_id, int event_type, void *param, void *a5, int a6)
 Invoke process event handler. More...
 

Data Structure Documentation

◆ SceProcEventInvokeParam1

struct SceProcEventInvokeParam1
Data Fields
SceSize size
int unk_0x04
int unk_0x08
int unk_0x0C

◆ SceProcEventInvokeParam2

struct SceProcEventInvokeParam2
Data Fields
SceSize size
SceUID pid
int unk_0x08
int unk_0x0C
int unk_0x10

◆ SceProcEventHandler

struct SceProcEventHandler

Data Fields

SceSize size
 
int(* create )(SceUID pid, SceProcEventInvokeParam2 *a2, int a3)
 
int(* exit )(SceUID pid, SceProcEventInvokeParam1 *a2, int a3)
 
int(* kill )(SceUID pid, SceProcEventInvokeParam1 *a2, int a3)
 
int(* stop )(SceUID pid, int event_type, SceProcEventInvokeParam1 *a3, int a4)
 
int(* start )(SceUID pid, int event_type, SceProcEventInvokeParam1 *a3, int a4)
 
int(* switch_process )(int event_id, int event_type, SceProcEventInvokeParam2 *a3, int a4)
 

Function Documentation

◆ VITASDK_BUILD_ASSERT_EQ() [1/3]

VITASDK_BUILD_ASSERT_EQ ( 0x10  ,
SceProcEventInvokeParam1   
)

◆ VITASDK_BUILD_ASSERT_EQ() [2/3]

VITASDK_BUILD_ASSERT_EQ ( 0x14  ,
SceProcEventInvokeParam2   
)

◆ VITASDK_BUILD_ASSERT_EQ() [3/3]

VITASDK_BUILD_ASSERT_EQ ( 0x1C  ,
SceProcEventHandler   
)

◆ ksceKernelRegisterProcEventHandler()

SceUID ksceKernelRegisterProcEventHandler ( const char *  name,
const SceProcEventHandler handler,
int  a3 
)

Register process event handler.

Parameters
[in]name- Name of handler
[in]handler- The pointer of handler
[in]a3- unknown, set to 0
Returns
uid on success, < 0 on error.

◆ ksceKernelUnregisterProcEventHandler()

int ksceKernelUnregisterProcEventHandler ( SceUID  uid)

Unregister process event handler.

Parameters
[in]uid- ProcEvent uid
Returns
uid on success, < 0 on error.

◆ ksceKernelInvokeProcEventHandler()

int ksceKernelInvokeProcEventHandler ( SceUID  pid,
int  event_id,
int  event_type,
void *  param,
void *  a5,
int  a6 
)

Invoke process event handler.

Parameters
[in]pid- The ProccessId
[in]event_id- event_id, [1, 2, 3, 4, 5, 0x10, 0x11]
[in]event_type- Various event types
[in]param- The pointer of invoke parameter
[in]a5- Unknown
[in]a6- Unknown
Returns
uid on success, < 0 on error.