diff options
Diffstat (limited to 'src/burn/engine/burnpipe.cpp')
-rw-r--r-- | src/burn/engine/burnpipe.cpp | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/src/burn/engine/burnpipe.cpp b/src/burn/engine/burnpipe.cpp index 297dc77a..d106e7ae 100644 --- a/src/burn/engine/burnpipe.cpp +++ b/src/burn/engine/burnpipe.cpp | |||
@@ -13,10 +13,10 @@ static HRESULT ChildPipeConnected( | |||
13 | 13 | ||
14 | 14 | ||
15 | /******************************************************************* | 15 | /******************************************************************* |
16 | PipeConnectionInitialize - initialize pipe connection data. | 16 | BurnPipeConnectionInitialize - initialize pipe connection data. |
17 | 17 | ||
18 | *******************************************************************/ | 18 | *******************************************************************/ |
19 | void PipeConnectionInitialize( | 19 | void BurnPipeConnectionInitialize( |
20 | __in BURN_PIPE_CONNECTION* pConnection | 20 | __in BURN_PIPE_CONNECTION* pConnection |
21 | ) | 21 | ) |
22 | { | 22 | { |
@@ -27,10 +27,10 @@ void PipeConnectionInitialize( | |||
27 | } | 27 | } |
28 | 28 | ||
29 | /******************************************************************* | 29 | /******************************************************************* |
30 | PipeConnectionUninitialize - free data in a pipe connection. | 30 | BurnPipeConnectionUninitialize - free data in a pipe connection. |
31 | 31 | ||
32 | *******************************************************************/ | 32 | *******************************************************************/ |
33 | void PipeConnectionUninitialize( | 33 | void BurnPipeConnectionUninitialize( |
34 | __in BURN_PIPE_CONNECTION* pConnection | 34 | __in BURN_PIPE_CONNECTION* pConnection |
35 | ) | 35 | ) |
36 | { | 36 | { |
@@ -41,14 +41,14 @@ void PipeConnectionUninitialize( | |||
41 | ReleaseStr(pConnection->sczSecret); | 41 | ReleaseStr(pConnection->sczSecret); |
42 | ReleaseStr(pConnection->sczName); | 42 | ReleaseStr(pConnection->sczName); |
43 | 43 | ||
44 | PipeConnectionInitialize(pConnection); | 44 | BurnPipeConnectionInitialize(pConnection); |
45 | } | 45 | } |
46 | 46 | ||
47 | /******************************************************************* | 47 | /******************************************************************* |
48 | PipeSendMessage - | 48 | BurnPipeSendMessage - |
49 | 49 | ||
50 | *******************************************************************/ | 50 | *******************************************************************/ |
51 | extern "C" HRESULT PipeSendMessage( | 51 | extern "C" HRESULT BurnPipeSendMessage( |
52 | __in HANDLE hPipe, | 52 | __in HANDLE hPipe, |
53 | __in DWORD dwMessage, | 53 | __in DWORD dwMessage, |
54 | __in_bcount_opt(cbData) LPVOID pvData, | 54 | __in_bcount_opt(cbData) LPVOID pvData, |
@@ -64,7 +64,7 @@ extern "C" HRESULT PipeSendMessage( | |||
64 | hr = PipeWriteMessage(hPipe, dwMessage, pvData, cbData); | 64 | hr = PipeWriteMessage(hPipe, dwMessage, pvData, cbData); |
65 | ExitOnFailure(hr, "Failed to write send message to pipe."); | 65 | ExitOnFailure(hr, "Failed to write send message to pipe."); |
66 | 66 | ||
67 | hr = PipePumpMessages(hPipe, pfnCallback, pvContext, &result); | 67 | hr = BurnPipePumpMessages(hPipe, pfnCallback, pvContext, &result); |
68 | ExitOnFailure(hr, "Failed to pump messages during send message to pipe."); | 68 | ExitOnFailure(hr, "Failed to pump messages during send message to pipe."); |
69 | 69 | ||
70 | *pdwResult = result.dwResult; | 70 | *pdwResult = result.dwResult; |
@@ -74,10 +74,10 @@ LExit: | |||
74 | } | 74 | } |
75 | 75 | ||
76 | /******************************************************************* | 76 | /******************************************************************* |
77 | PipePumpMessages - | 77 | BurnPipePumpMessages - |
78 | 78 | ||
79 | *******************************************************************/ | 79 | *******************************************************************/ |
80 | extern "C" HRESULT PipePumpMessages( | 80 | extern "C" HRESULT BurnPipePumpMessages( |
81 | __in HANDLE hPipe, | 81 | __in HANDLE hPipe, |
82 | __in_opt PFN_PIPE_MESSAGE_CALLBACK pfnCallback, | 82 | __in_opt PFN_PIPE_MESSAGE_CALLBACK pfnCallback, |
83 | __in_opt LPVOID pvContext, | 83 | __in_opt LPVOID pvContext, |
@@ -111,7 +111,7 @@ extern "C" HRESULT PipePumpMessages( | |||
111 | if (!msg.pvData || sizeof(DWORD) != msg.cbData) | 111 | if (!msg.pvData || sizeof(DWORD) != msg.cbData) |
112 | { | 112 | { |
113 | hr = E_INVALIDARG; | 113 | hr = E_INVALIDARG; |
114 | ExitOnRootFailure(hr, "No status returned to PipePumpMessages()"); | 114 | ExitOnRootFailure(hr, "No status returned to BurnPipePumpMessages()"); |
115 | } | 115 | } |
116 | 116 | ||
117 | pResult->dwResult = *static_cast<DWORD*>(msg.pvData); | 117 | pResult->dwResult = *static_cast<DWORD*>(msg.pvData); |
@@ -121,12 +121,12 @@ extern "C" HRESULT PipePumpMessages( | |||
121 | iData = 0; | 121 | iData = 0; |
122 | 122 | ||
123 | hr = BuffReadNumber(static_cast<BYTE*>(msg.pvData), msg.cbData, &iData, &pResult->dwResult); | 123 | hr = BuffReadNumber(static_cast<BYTE*>(msg.pvData), msg.cbData, &iData, &pResult->dwResult); |
124 | ExitOnFailure(hr, "Failed to read returned result to PipePumpMessages()"); | 124 | ExitOnFailure(hr, "Failed to read returned result to BurnPipePumpMessages()"); |
125 | 125 | ||
126 | if (sizeof(DWORD) * 2 == msg.cbData) | 126 | if (sizeof(DWORD) * 2 == msg.cbData) |
127 | { | 127 | { |
128 | hr = BuffReadNumber(static_cast<BYTE*>(msg.pvData), msg.cbData, &iData, (DWORD*)&pResult->fRestart); | 128 | hr = BuffReadNumber(static_cast<BYTE*>(msg.pvData), msg.cbData, &iData, (DWORD*)&pResult->fRestart); |
129 | ExitOnFailure(hr, "Failed to read returned restart to PipePumpMessages()"); | 129 | ExitOnFailure(hr, "Failed to read returned restart to BurnPipePumpMessages()"); |
130 | } | 130 | } |
131 | 131 | ||
132 | ExitFunction1(hr = S_OK); // exit loop. | 132 | ExitFunction1(hr = S_OK); // exit loop. |
@@ -165,10 +165,10 @@ LExit: | |||
165 | } | 165 | } |
166 | 166 | ||
167 | /******************************************************************* | 167 | /******************************************************************* |
168 | PipeCreateNameAndSecret - | 168 | BurnPipeCreateNameAndSecret - |
169 | 169 | ||
170 | *******************************************************************/ | 170 | *******************************************************************/ |
171 | extern "C" HRESULT PipeCreateNameAndSecret( | 171 | extern "C" HRESULT BurnPipeCreateNameAndSecret( |
172 | __out_z LPWSTR *psczConnectionName, | 172 | __out_z LPWSTR *psczConnectionName, |
173 | __out_z LPWSTR *psczSecret | 173 | __out_z LPWSTR *psczSecret |
174 | ) | 174 | ) |
@@ -205,10 +205,10 @@ LExit: | |||
205 | } | 205 | } |
206 | 206 | ||
207 | /******************************************************************* | 207 | /******************************************************************* |
208 | PipeCreatePipes - create the pipes and event to signal child process. | 208 | BurnPipeCreatePipes - create the pipes and event to signal child process. |
209 | 209 | ||
210 | *******************************************************************/ | 210 | *******************************************************************/ |
211 | extern "C" HRESULT PipeCreatePipes( | 211 | extern "C" HRESULT BurnPipeCreatePipes( |
212 | __in BURN_PIPE_CONNECTION* pConnection, | 212 | __in BURN_PIPE_CONNECTION* pConnection, |
213 | __in BOOL fCompanion | 213 | __in BOOL fCompanion |
214 | ) | 214 | ) |
@@ -287,10 +287,10 @@ LExit: | |||
287 | } | 287 | } |
288 | 288 | ||
289 | /******************************************************************* | 289 | /******************************************************************* |
290 | PipeWaitForChildConnect - | 290 | BurnPipeWaitForChildConnect - |
291 | 291 | ||
292 | *******************************************************************/ | 292 | *******************************************************************/ |
293 | extern "C" HRESULT PipeWaitForChildConnect( | 293 | extern "C" HRESULT BurnPipeWaitForChildConnect( |
294 | __in BURN_PIPE_CONNECTION* pConnection | 294 | __in BURN_PIPE_CONNECTION* pConnection |
295 | ) | 295 | ) |
296 | { | 296 | { |
@@ -335,10 +335,10 @@ LExit: | |||
335 | } | 335 | } |
336 | 336 | ||
337 | /******************************************************************* | 337 | /******************************************************************* |
338 | PipeTerminateLoggingPipe - | 338 | BurnPipeTerminateLoggingPipe - |
339 | 339 | ||
340 | *******************************************************************/ | 340 | *******************************************************************/ |
341 | extern "C" HRESULT PipeTerminateLoggingPipe( | 341 | extern "C" HRESULT BurnPipeTerminateLoggingPipe( |
342 | __in HANDLE hLoggingPipe, | 342 | __in HANDLE hLoggingPipe, |
343 | __in DWORD dwParentExitCode | 343 | __in DWORD dwParentExitCode |
344 | ) | 344 | ) |
@@ -361,10 +361,10 @@ LExit: | |||
361 | } | 361 | } |
362 | 362 | ||
363 | /******************************************************************* | 363 | /******************************************************************* |
364 | PipeTerminateChildProcess - | 364 | BurnPipeTerminateChildProcess - |
365 | 365 | ||
366 | *******************************************************************/ | 366 | *******************************************************************/ |
367 | extern "C" HRESULT PipeTerminateChildProcess( | 367 | extern "C" HRESULT BurnPipeTerminateChildProcess( |
368 | __in BURN_PIPE_CONNECTION* pConnection, | 368 | __in BURN_PIPE_CONNECTION* pConnection, |
369 | __in DWORD dwParentExitCode, | 369 | __in DWORD dwParentExitCode, |
370 | __in BOOL fRestart | 370 | __in BOOL fRestart |
@@ -425,11 +425,11 @@ LExit: | |||
425 | } | 425 | } |
426 | 426 | ||
427 | /******************************************************************* | 427 | /******************************************************************* |
428 | PipeChildConnect - Called from the child process to connect back | 428 | BurnPipeChildConnect - Called from the child process to connect back |
429 | to the pipe provided by the parent process. | 429 | to the pipe provided by the parent process. |
430 | 430 | ||
431 | *******************************************************************/ | 431 | *******************************************************************/ |
432 | extern "C" HRESULT PipeChildConnect( | 432 | extern "C" HRESULT BurnPipeChildConnect( |
433 | __in BURN_PIPE_CONNECTION* pConnection, | 433 | __in BURN_PIPE_CONNECTION* pConnection, |
434 | __in BOOL fCompanion | 434 | __in BOOL fCompanion |
435 | ) | 435 | ) |