MCPcopy Create free account
hub / github.com/boku7/Loki / MakeSlot

Function MakeSlot

dev/execute_assembly/node_assembly_execute.cpp:173–188  ·  view source on GitHub ↗

Make MailSlot*/

Source from the content-addressed store, hash-verified

171
172/*Make MailSlot*/
173BOOL WINAPI MakeSlot(LPCSTR lpszSlotName, HANDLE* mailHandle)
174{
175
176 *mailHandle = Api.CreateMailslotA(
177 lpszSlotName,
178 0, //No maximum message size
179 MAILSLOT_WAIT_FOREVER, //No time-out for operations
180 (LPSECURITY_ATTRIBUTES)NULL); //Default security
181
182 if (*mailHandle == INVALID_HANDLE_VALUE)
183 {
184 return FALSE;
185 }
186 else
187 return TRUE;
188}
189
190/*Read Mailslot*/
191BOOL ReadSlot(char* output, HANDLE* mailHandle)

Callers 1

RunAssemblyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected