pipeimpl.h (5b501c92) pipeimpl.h (b1bc2d97)
1// *************************************************************
2//
3// Licensed to the Apache Software Foundation (ASF) under one
4// or more contributor license agreements. See the NOTICE file
5// distributed with this work for additional information
6// regarding copyright ownership. The ASF licenses this file
7// to you under the Apache License, Version 2.0 (the
8// "License"); you may not use this file except in compliance

--- 36 unchanged lines hidden (view full) ---

45#define EXPORT_PIPE_API
46
47//============================================================================
48// Helper functions
49//============================================================================
50
51// Because the value of an invalid HANDLE returned by API functions differs
52// between different functions and differs on different Windows platforms,
1// *************************************************************
2//
3// Licensed to the Apache Software Foundation (ASF) under one
4// or more contributor license agreements. See the NOTICE file
5// distributed with this work for additional information
6// regarding copyright ownership. The ASF licenses this file
7// to you under the Apache License, Version 2.0 (the
8// "License"); you may not use this file except in compliance

--- 36 unchanged lines hidden (view full) ---

45#define EXPORT_PIPE_API
46
47//============================================================================
48// Helper functions
49//============================================================================
50
51// Because the value of an invalid HANDLE returned by API functions differs
52// between different functions and differs on different Windows platforms,
53// this function checks wether the handle has a meaningfull value.
53// this function checks wether the handle has a meaningful value.
54#ifndef __cplusplus
55
56#define IsValidHandle( handle ) ((DWORD)(handle) + 1 > 1)
57
58#else
59
60inline bool IsValidHandle( HANDLE handle )
61{

--- 47 unchanged lines hidden ---
54#ifndef __cplusplus
55
56#define IsValidHandle( handle ) ((DWORD)(handle) + 1 > 1)
57
58#else
59
60inline bool IsValidHandle( HANDLE handle )
61{

--- 47 unchanged lines hidden ---