Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
bed39b45
Commit
bed39b45
authored
Oct 18, 2006
by
Huw Davies
Committed by
Alexandre Julliard
Oct 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledlg: Register a bunch of clipboard formats.
parent
9ce684b9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
69 additions
and
1 deletion
+69
-1
oledlg_main.c
dlls/oledlg/oledlg_main.c
+36
-1
oledlg_private.h
dlls/oledlg/oledlg_private.h
+33
-0
No files found.
dlls/oledlg/oledlg_main.c
View file @
bed39b45
...
...
@@ -27,13 +27,47 @@
#include "wingdi.h"
#include "winuser.h"
#include "oledlg.h"
#include "wine/debug.h"
#include "ole2.h"
#include "oledlg_private.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
ole
);
HINSTANCE
OLEDLG_hInstance
=
0
;
UINT
cf_embed_source
;
UINT
cf_embedded_object
;
UINT
cf_link_source
;
UINT
cf_object_descriptor
;
UINT
cf_link_src_descriptor
;
UINT
cf_ownerlink
;
UINT
cf_filename
;
UINT
cf_filenamew
;
static
void
register_clipboard_formats
(
void
)
{
/* These used to be declared in olestd.h, but that seems to have been removed from the api */
static
const
WCHAR
CF_EMBEDSOURCEW
[]
=
{
'E'
,
'm'
,
'b'
,
'e'
,
'd'
,
' '
,
'S'
,
'o'
,
'u'
,
'r'
,
'c'
,
'e'
,
0
};
static
const
WCHAR
CF_EMBEDDEDOBJECTW
[]
=
{
'E'
,
'm'
,
'b'
,
'e'
,
'd'
,
'd'
,
'e'
,
'd'
,
' '
,
'O'
,
'b'
,
'j'
,
'e'
,
'c'
,
't'
,
0
};
static
const
WCHAR
CF_LINKSOURCEW
[]
=
{
'L'
,
'i'
,
'n'
,
'k'
,
' '
,
'S'
,
'o'
,
'u'
,
'r'
,
'c'
,
'e'
,
0
};
static
const
WCHAR
CF_OBJECTDESCRIPTORW
[]
=
{
'O'
,
'b'
,
'j'
,
'e'
,
'c'
,
't'
,
' '
,
'D'
,
'e'
,
's'
,
'c'
,
'r'
,
'i'
,
'p'
,
't'
,
'o'
,
'r'
,
0
};
static
const
WCHAR
CF_LINKSRCDESCRIPTORW
[]
=
{
'L'
,
'i'
,
'n'
,
'k'
,
' '
,
'S'
,
'o'
,
'u'
,
'r'
,
'c'
,
'e'
,
' '
,
'D'
,
'e'
,
's'
,
'c'
,
'r'
,
'i'
,
'p'
,
't'
,
'o'
,
'r'
,
0
};
static
const
WCHAR
CF_OWNERLINKW
[]
=
{
'O'
,
'w'
,
'n'
,
'e'
,
'r'
,
'L'
,
'i'
,
'n'
,
'k'
,
0
};
static
const
WCHAR
CF_FILENAMEW
[]
=
{
'F'
,
'i'
,
'l'
,
'e'
,
'N'
,
'a'
,
'm'
,
'e'
,
0
};
static
const
WCHAR
CF_FILENAMEWW
[]
=
{
'F'
,
'i'
,
'l'
,
'e'
,
'N'
,
'a'
,
'm'
,
'e'
,
'W'
,
0
};
/* Load in the same order as native to make debugging easier */
cf_object_descriptor
=
RegisterClipboardFormatW
(
CF_OBJECTDESCRIPTORW
);
cf_link_src_descriptor
=
RegisterClipboardFormatW
(
CF_LINKSRCDESCRIPTORW
);
cf_embed_source
=
RegisterClipboardFormatW
(
CF_EMBEDSOURCEW
);
cf_embedded_object
=
RegisterClipboardFormatW
(
CF_EMBEDDEDOBJECTW
);
cf_link_source
=
RegisterClipboardFormatW
(
CF_LINKSOURCEW
);
cf_ownerlink
=
RegisterClipboardFormatW
(
CF_OWNERLINKW
);
cf_filename
=
RegisterClipboardFormatW
(
CF_FILENAMEW
);
cf_filenamew
=
RegisterClipboardFormatW
(
CF_FILENAMEWW
);
}
/***********************************************************************
* DllMain
*/
...
...
@@ -45,6 +79,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
case
DLL_PROCESS_ATTACH
:
DisableThreadLibraryCalls
(
hinstDLL
);
OLEDLG_hInstance
=
hinstDLL
;
register_clipboard_formats
();
break
;
case
DLL_PROCESS_DETACH
:
...
...
dlls/oledlg/oledlg_private.h
0 → 100644
View file @
bed39b45
/*
* oledlg internal header file
*
* Copyright (C) 2006 Huw Davies
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef __OLEDLG_PRIVATE_H__
#define __OLEDLG_PRIVATE_H__
extern
UINT
cf_embed_source
;
extern
UINT
cf_embedded_object
;
extern
UINT
cf_link_source
;
extern
UINT
cf_object_descriptor
;
extern
UINT
cf_link_src_descriptor
;
extern
UINT
cf_ownerlink
;
extern
UINT
cf_filename
;
extern
UINT
cf_filenamew
;
#endif
/* __OLEDLG_PRIVATE_H__ */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment