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
4440a727
Commit
4440a727
authored
May 16, 2005
by
Vincent Béron
Committed by
Alexandre Julliard
May 16, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Provide minimal API documentation in advapi/eventlog.c to silence some
winapi_check output. Move around functions in riched20, richedit and rpcrt4 to achieve the same goal.
parent
ea2fabca
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
64 additions
and
49 deletions
+64
-49
eventlog.c
dlls/advapi32/eventlog.c
+8
-0
editor.c
dlls/riched20/editor.c
+27
-27
richedit.c
dlls/richedit/richedit.c
+20
-20
ndr_stubless.c
dlls/rpcrt4/ndr_stubless.c
+9
-2
No files found.
dlls/advapi32/eventlog.c
View file @
4440a727
...
...
@@ -439,6 +439,10 @@ BOOL WINAPI ReportEventW( HANDLE hEventLog, WORD wType, WORD wCategory, DWORD dw
return
TRUE
;
}
/******************************************************************************
* RegisterTraceGuidsW [ADVAPI32.@]
*
*/
ULONG
WINAPI
RegisterTraceGuidsW
(
WMIDPREQUEST
RequestAddress
,
PVOID
RequestContext
,
LPCGUID
ControlGuid
,
ULONG
GuidCount
,
PTRACE_GUID_REGISTRATION
TraceGuidReg
,
LPCWSTR
MofImagePath
,
...
...
@@ -450,6 +454,10 @@ ULONG WINAPI RegisterTraceGuidsW( WMIDPREQUEST RequestAddress,
return
ERROR_CALL_NOT_IMPLEMENTED
;
}
/******************************************************************************
* RegisterTraceGuidsA [ADVAPI32.@]
*
*/
ULONG
WINAPI
RegisterTraceGuidsA
(
WMIDPREQUEST
RequestAddress
,
PVOID
RequestContext
,
LPCGUID
ControlGuid
,
ULONG
GuidCount
,
PTRACE_GUID_REGISTRATION
TraceGuidReg
,
LPCSTR
MofImagePath
,
...
...
dlls/riched20/editor.c
View file @
4440a727
...
...
@@ -761,6 +761,33 @@ void ME_DestroyEditor(ME_TextEditor *editor)
FREE_OBJ
(
editor
);
}
static
WCHAR
wszClassName
[]
=
{
'R'
,
'i'
,
'c'
,
'h'
,
'E'
,
'd'
,
'i'
,
't'
,
'2'
,
'0'
,
'W'
,
0
};
static
WCHAR
wszClassName50
[]
=
{
'R'
,
'i'
,
'c'
,
'h'
,
'E'
,
'd'
,
'i'
,
't'
,
'5'
,
'0'
,
'W'
,
0
};
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDLL
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
{
TRACE
(
"
\n
"
);
switch
(
fdwReason
)
{
case
DLL_PROCESS_ATTACH
:
DisableThreadLibraryCalls
(
hinstDLL
);
me_heap
=
HeapCreate
(
0
,
0x10000
,
0
);
ME_RegisterEditorClass
(
hinstDLL
);
break
;
case
DLL_PROCESS_DETACH
:
UnregisterClassW
(
wszClassName
,
0
);
UnregisterClassW
(
wszClassName50
,
0
);
UnregisterClassA
(
"RichEdit20A"
,
0
);
UnregisterClassA
(
"RichEdit50A"
,
0
);
HeapDestroy
(
me_heap
);
me_heap
=
NULL
;
break
;
}
return
TRUE
;
}
#define UNSUPPORTED_MSG(e) \
case e: \
FIXME(#e ": stub\n"); \
...
...
@@ -1417,9 +1444,6 @@ int ME_GetTextW(ME_TextEditor *editor, WCHAR *buffer, int nStart, int nChars, in
return
nWritten
;
}
static
WCHAR
wszClassName
[]
=
{
'R'
,
'i'
,
'c'
,
'h'
,
'E'
,
'd'
,
'i'
,
't'
,
'2'
,
'0'
,
'W'
,
0
};
static
WCHAR
wszClassName50
[]
=
{
'R'
,
'i'
,
'c'
,
'h'
,
'E'
,
'd'
,
'i'
,
't'
,
'5'
,
'0'
,
'W'
,
0
};
void
ME_RegisterEditorClass
(
HINSTANCE
hInstance
)
{
BOOL
bResult
;
...
...
@@ -1458,30 +1482,6 @@ void ME_RegisterEditorClass(HINSTANCE hInstance)
bResult
=
RegisterClassA
(
&
wcA
);
assert
(
bResult
);
}
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDLL
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
{
TRACE
(
"
\n
"
);
switch
(
fdwReason
)
{
case
DLL_PROCESS_ATTACH
:
DisableThreadLibraryCalls
(
hinstDLL
);
me_heap
=
HeapCreate
(
0
,
0x10000
,
0
);
ME_RegisterEditorClass
(
hinstDLL
);
break
;
case
DLL_PROCESS_DETACH
:
UnregisterClassW
(
wszClassName
,
0
);
UnregisterClassW
(
wszClassName50
,
0
);
UnregisterClassA
(
"RichEdit20A"
,
0
);
UnregisterClassA
(
"RichEdit50A"
,
0
);
HeapDestroy
(
me_heap
);
me_heap
=
NULL
;
break
;
}
return
TRUE
;
}
/******************************************************************
* CreateTextServices (RICHED20.4)
*
...
...
dlls/richedit/richedit.c
View file @
4440a727
...
...
@@ -40,26 +40,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(richedit);
extern
LRESULT
WINAPI
RichEdit10ANSIWndProc
(
HWND
,
UINT
,
WPARAM
,
LPARAM
);
/***********************************************************************
* DllGetVersion [RICHED32.2]
*
* Retrieves version information
*/
HRESULT
WINAPI
RICHED32_DllGetVersion
(
DLLVERSIONINFO
*
pdvi
)
{
TRACE
(
"
\n
"
);
if
(
pdvi
->
cbSize
!=
sizeof
(
DLLVERSIONINFO
))
return
E_INVALIDARG
;
pdvi
->
dwMajorVersion
=
4
;
pdvi
->
dwMinorVersion
=
0
;
pdvi
->
dwBuildNumber
=
0
;
pdvi
->
dwPlatformID
=
0
;
return
S_OK
;
}
/* Unregisters the window class. */
static
BOOL
RICHED32_Unregister
(
void
)
{
...
...
@@ -104,3 +84,23 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
}
return
TRUE
;
}
/***********************************************************************
* DllGetVersion [RICHED32.2]
*
* Retrieves version information
*/
HRESULT
WINAPI
RICHED32_DllGetVersion
(
DLLVERSIONINFO
*
pdvi
)
{
TRACE
(
"
\n
"
);
if
(
pdvi
->
cbSize
!=
sizeof
(
DLLVERSIONINFO
))
return
E_INVALIDARG
;
pdvi
->
dwMajorVersion
=
4
;
pdvi
->
dwMinorVersion
=
0
;
pdvi
->
dwBuildNumber
=
0
;
pdvi
->
dwPlatformID
=
0
;
return
S_OK
;
}
dlls/rpcrt4/ndr_stubless.c
View file @
4440a727
...
...
@@ -41,7 +41,11 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
ole
);
LONG_PTR
/* CLIENT_CALL_RETURN */
RPCRT4_NdrClientCall2
(
PMIDL_STUB_DESC
pStubDesc
,
PFORMAT_STRING
pFormat
,
va_list
args
)
/***********************************************************************
* Note: this should return a CLIENT_CALL_RETURN, but calling convention for
* returning structures/unions is different between Windows and gcc on i386.
*/
LONG_PTR
RPCRT4_NdrClientCall2
(
PMIDL_STUB_DESC
pStubDesc
,
PFORMAT_STRING
pFormat
,
va_list
args
)
{
RPC_CLIENT_INTERFACE
*
rpc_cli_if
=
(
RPC_CLIENT_INTERFACE
*
)(
pStubDesc
->
RpcInterfaceInformation
);
...
...
@@ -83,8 +87,11 @@ LONG_PTR /* CLIENT_CALL_RETURN */ RPCRT4_NdrClientCall2(PMIDL_STUB_DESC pStubDes
/***********************************************************************
* NdrClientCall2 [RPCRT4.@]
*
* Note: this should return a CLIENT_CALL_RETURN, but calling convention for
* returning structures/unions is different between Windows and gcc on i386.
*/
LONG_PTR
/* CLIENT_CALL_RETURN */
WINAPIV
NdrClientCall2
(
PMIDL_STUB_DESC
pStubDesc
,
LONG_PTR
WINAPIV
NdrClientCall2
(
PMIDL_STUB_DESC
pStubDesc
,
PFORMAT_STRING
pFormat
,
...)
{
LONG_PTR
ret
;
...
...
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