| 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 --- 30 unchanged lines hidden (view full) --- 39#define EXPORT_PIPE_API 40 41//============================================================================ 42// Helper functions 43//============================================================================ 44 45// Because the value of an invalid HANDLE returned by API functions differs 46// 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 --- 30 unchanged lines hidden (view full) --- 39#define EXPORT_PIPE_API 40 41//============================================================================ 42// Helper functions 43//============================================================================ 44 45// Because the value of an invalid HANDLE returned by API functions differs 46// between different functions and differs on different Windows platforms, |
| 47// this function checks wether the handle has a meaningfull value. | 47// this function checks wether the handle has a meaningful value. |
| 48#ifndef __cplusplus 49 50#define IsValidHandle( handle ) ((DWORD)(handle) + 1 > 1) 51 52#else 53 54inline bool IsValidHandle( HANDLE handle ) 55{ --- 47 unchanged lines hidden --- | 48#ifndef __cplusplus 49 50#define IsValidHandle( handle ) ((DWORD)(handle) + 1 > 1) 51 52#else 53 54inline bool IsValidHandle( HANDLE handle ) 55{ --- 47 unchanged lines hidden --- |