2 * Copyright (c) 2008 Microsoft Corporation. All rights reserved.
\r
4 * This software is available to you under the OpenIB.org BSD license
\r
7 * Redistribution and use in source and binary forms, with or
\r
8 * without modification, are permitted provided that the following
\r
9 * conditions are met:
\r
11 * - Redistributions of source code must retain the above
\r
12 * copyright notice, this list of conditions and the following
\r
15 * - Redistributions in binary form must reproduce the above
\r
16 * copyright notice, this list of conditions and the following
\r
17 * disclaimer in the documentation and/or other materials
\r
18 * provided with the distribution.
\r
20 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\r
21 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\r
22 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
\r
23 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
\r
24 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
\r
25 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
\r
26 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
\r
36 namespace NetworkDirect
\r
42 public INDMemoryWindow
\r
50 ND_RESULT* pInvalidateResult );
\r
52 // *** IUnknown methods ***
\r
53 HRESULT STDMETHODCALLTYPE QueryInterface(
\r
58 ULONG STDMETHODCALLTYPE AddRef(void);
\r
60 ULONG STDMETHODCALLTYPE Release(void);
\r
62 // *** INDMemoryWindow methods ***
\r
63 HRESULT STDMETHODCALLTYPE Close(void);
\r
65 //operator ND_RESULT*(){ return m_pInvalidateResult; };
\r
68 volatile LONG m_nRef;
\r
70 CAdapter* m_pParent;
\r
72 ND_RESULT* m_pInvalidateResult;
\r
75 ///////////////////////////////////////////////////////////////////////////////
\r
77 // HPC Pack 2008 Beta 1 SPI
\r
79 ///////////////////////////////////////////////////////////////////////////////
\r
81 class CAdapter_Beta1;
\r
84 public INDMemoryWindow
\r
91 CAdapter_Beta1* pParent,
\r
92 ND_RESULT* pInvalidateResult );
\r
94 // *** IUnknown methods ***
\r
95 HRESULT STDMETHODCALLTYPE QueryInterface(
\r
100 ULONG STDMETHODCALLTYPE AddRef(void);
\r
102 ULONG STDMETHODCALLTYPE Release(void);
\r
104 // *** INDMemoryWindow methods ***
\r
105 HRESULT STDMETHODCALLTYPE Close(void);
\r
107 //operator ND_RESULT*(){ return m_pInvalidateResult; };
\r
110 volatile LONG m_nRef;
\r
112 CAdapter_Beta1* m_pParent;
\r
114 ND_RESULT* m_pInvalidateResult;
\r