summaryrefslogtreecommitdiff
path: root/ace/Process.cpp
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>2001-08-17 23:05:32 +0000
committerSteve Huston <shuston@riverace.com>2001-08-17 23:05:32 +0000
commit79813e26d9fff11a38771388a0b299f4c3cf6ca4 (patch)
treec4d79733a228add7f09994e02a4658ac0e882d1b /ace/Process.cpp
parent928b6413a9611eefb8da520f69d034293b9989ee (diff)
downloadATCD-79813e26d9fff11a38771388a0b299f4c3cf6ca4.tar.gz
ChangeLogTag:Fri Aug 17 19:04:31 2001 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'ace/Process.cpp')
-rw-r--r--ace/Process.cpp18
1 files changed, 11 insertions, 7 deletions
diff --git a/ace/Process.cpp b/ace/Process.cpp
index c5c495aae89..7b1d3e821ca 100644
--- a/ace/Process.cpp
+++ b/ace/Process.cpp
@@ -823,6 +823,10 @@ int
ACE_Process_Options::pass_handle (ACE_HANDLE h)
{
# if defined (ACE_WIN32)
+# if defined (ACE_HAS_WINCE)
+ ACE_NOTSUP_RETURN (-1);
+# endif /* ACE_HAS_WINCE */
+
// This is oriented towards socket handles... may need some adjustment
// for non-sockets.
// This is all based on an MSDN article:
@@ -838,13 +842,13 @@ ACE_Process_Options::pass_handle (ACE_HANDLE h)
if (!GetVersionEx (&osvi) || osvi.dwPlatformId != VER_PLATFORM_WIN32_NT)
{
HANDLE dup_handle;
- if (!::DuplicateHandle (GetCurrentProcess (),
- ACE_static_cast (HANDLE, h),
- GetCurrentProcess (),
- &dup_handle,
- 0,
- TRUE, // Inheritable
- DUPLICATE_SAME_ACCESS))
+ if (!DuplicateHandle (GetCurrentProcess (),
+ ACE_static_cast (HANDLE, h),
+ GetCurrentProcess (),
+ &dup_handle,
+ 0,
+ TRUE, // Inheritable
+ DUPLICATE_SAME_ACCESS))
return -1;
dup_handles_.set_bit (ACE_static_cast (ACE_HANDLE, dup_handle));
}