2 Functions to deal with Clip Board
4 Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved. <BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 #include "HexEditor.h"
17 HEFI_EDITOR_CLIPBOARD HClipBoard
;
20 // for basic initialization of HClipBoard
22 HEFI_EDITOR_CLIPBOARD HClipBoardConst
= {
35 Initialization function for HDiskImage
49 // basiclly initialize the HDiskImage
51 CopyMem (&HClipBoard
, &HClipBoardConst
, sizeof (HClipBoard
));
64 Initialization function for HDiskImage
78 SHELL_FREE_NON_NULL (HClipBoard
.Buffer
);
90 // free the old clipboard buffer
91 // and set new clipboard buffer
93 SHELL_FREE_NON_NULL (HClipBoard
.Buffer
);
94 HClipBoard
.Buffer
= Buffer
;
96 HClipBoard
.Size
= Size
;
107 // return the clipboard buffer
109 *Buffer
= HClipBoard
.Buffer
;
111 return HClipBoard
.Size
;