forked from KolibriOS/kolibrios
header file to work with the clipboard
git-svn-id: svn://kolibrios.org@4426 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
8637a0873c
commit
52a2c2c8e8
42
programs/cmm/lib/clipboard.h
Normal file
42
programs/cmm/lib/clipboard.h
Normal file
@ -0,0 +1,42 @@
|
||||
struct Clipboard {
|
||||
dword GetSlotCount();
|
||||
dword GetSlotData( ECX);
|
||||
dword SetSlotData( EDX, ESI);
|
||||
dword DelLastSlot();
|
||||
dword ResetBlockingBuffer();
|
||||
};
|
||||
|
||||
dword Clipboard::GetSlotCount()
|
||||
{
|
||||
$mov eax, 54
|
||||
$mov ebx, 0
|
||||
$int 0x40
|
||||
}
|
||||
|
||||
dword Clipboard::GetSlotData( ECX) //ECX = slot number
|
||||
{
|
||||
$mov eax, 54
|
||||
$mov ebx, 1
|
||||
$int 0x40
|
||||
}
|
||||
|
||||
dword Clipboard::SetSlotData( ECX, EDX) //ECX = data size, EDX - pointer to data
|
||||
{
|
||||
$mov eax, 54
|
||||
$mov ebx, 2
|
||||
$int 0x40
|
||||
}
|
||||
|
||||
dword Clipboard::DelLastSlot()
|
||||
{
|
||||
$mov eax, 54
|
||||
$mov ebx, 3
|
||||
$int 0x40
|
||||
}
|
||||
|
||||
dword Clipboard::ResetBlockingBuffer()
|
||||
{
|
||||
$mov eax, 54
|
||||
$mov ebx, 3
|
||||
$int 0x40
|
||||
}
|
Loading…
Reference in New Issue
Block a user