MCPcopy Create free account
hub / github.com/WheretIB/nullc / PipeReuqestData

Function PipeReuqestData

SuperCalc.cpp:1906–1923  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1904}
1905
1906unsigned int PipeReuqestData(DebugCommand cmd, void **ptr)
1907{
1908 PipeData data;
1909 data.cmd = cmd;
1910 data.question = true;
1911 if(!PipeSendRequest(data))
1912 {
1913 MessageBox(hWnd, "Failed to send request through pipe", "Error", MB_OK);
1914 return 0;
1915 }
1916 *ptr = (ExternModuleInfo*)PipeReceiveResponce(data);
1917 if(!*ptr)
1918 {
1919 MessageBox(hWnd, "Failed to receive response through pipe", "Error", MB_OK);
1920 return 0;
1921 }
1922 return data.data.elemCount;
1923}
1924
1925void PipeInit()
1926{

Callers 1

PipeInitFunction · 0.85

Calls 2

PipeSendRequestFunction · 0.85
PipeReceiveResponceFunction · 0.85

Tested by

no test coverage detected