mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 19:54:53 +00:00
b1b930605c
- 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
23 lines
813 B
C++
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);
|
|
};
|
|
}
|