MCPcopy Create free account
hub / github.com/devkitPro/libctru / NDMU_LockState

Function NDMU_LockState

libctru/source/services/ndm.c:77–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77Result NDMU_LockState(void)
78{
79 u32* cmdbuf=getThreadCommandBuffer();
80
81 cmdbuf[0]=IPC_MakeHeader(0x4,0,2); // 0x40002
82 cmdbuf[1]=IPC_Desc_CurProcessId();
83
84 Result ret=0;
85 if(R_FAILED(ret=svcSendSyncRequest(ndmuHandle)))return ret;
86
87 return (Result)cmdbuf[1];
88}
89
90Result NDMU_UnlockState(void)
91{

Callers

nothing calls this directly

Calls 3

getThreadCommandBufferFunction · 0.85
IPC_MakeHeaderFunction · 0.85
IPC_Desc_CurProcessIdFunction · 0.85

Tested by

no test coverage detected