| 1904 | } |
| 1905 | |
| 1906 | unsigned 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 | |
| 1925 | void PipeInit() |
| 1926 | { |
no test coverage detected