Files
cefsharp/CefSharp.Core/NativeMethodWrapper.h
T
amaitland b1b930605c WPF - Replace RtlCopyMemory p/invoke with NativeMethodWrapper.MemoryCopy
- RtlCopyMemory only works on x64, we could use the slower RtlMoveMemory, going with a native wrapper around RtlCopyMemory
- Renamed CopyMemoryUsingHandle to MemoryCopy (cannot be CopyMemory or RtlCopyMemory as macro with that name already exists)

https://github.com/cefsharp/CefSharp/pull/2885#issuecomment-529033351

Issue #2885
2019-09-07 09:02:30 +10:00

23 lines
813 B
C++

// Copyright © 2012 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#pragma once
#include "Stdafx.h"
namespace CefSharp
{
public ref class NativeMethodWrapper sealed
{
public:
//Method cannot be called CopyMemory/RtlCopyMemroy as that's a macro name
//Length is currently int, update if required to handle larger data structures
//(int is plenty big enough for our current use case)
static void MemoryCopy(IntPtr dest, IntPtr src, int numberOfBytes);
static bool IsFocused(IntPtr handle);
static void SetWindowPosition(IntPtr handle, int x, int y, int width, int height);
static void SetWindowParent(IntPtr child, IntPtr newParent);
};
}