Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
c20bf693
Commit
c20bf693
authored
Oct 26, 2007
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Oct 26, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Update exported API entries according to the info published by Geoff Chappell.
parent
ac524986
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
34 deletions
+27
-34
istream.c
dlls/shlwapi/istream.c
+3
-3
ordinal.c
dlls/shlwapi/ordinal.c
+5
-12
shlwapi.spec
dlls/shlwapi/shlwapi.spec
+0
-0
thread.c
dlls/shlwapi/thread.c
+19
-19
No files found.
dlls/shlwapi/istream.c
View file @
c20bf693
...
...
@@ -548,7 +548,7 @@ HRESULT WINAPI SHCreateStreamOnFileA(LPCSTR lpszPath, DWORD dwMode,
* Failure: An HRESULT error code, or E_FAIL if the read succeeded but the
* number of bytes read does not match.
*/
HRESULT
WINAPI
SH
LWAPI_184
(
IStream
*
lpStream
,
LPVOID
lpvDest
,
ULONG
ulSize
)
HRESULT
WINAPI
SH
IStream_Read
(
IStream
*
lpStream
,
LPVOID
lpvDest
,
ULONG
ulSize
)
{
ULONG
ulRead
;
HRESULT
hRet
;
...
...
@@ -593,7 +593,7 @@ BOOL WINAPI SHIsEmptyStream(IStream *lpStream)
DWORD
dwDummy
;
/* Try to read from the stream */
if
(
SUCCEEDED
(
SH
LWAPI_184
(
lpStream
,
&
dwDummy
,
sizeof
(
dwDummy
))))
if
(
SUCCEEDED
(
SH
IStream_Read
(
lpStream
,
&
dwDummy
,
sizeof
(
dwDummy
))))
{
LARGE_INTEGER
zero
;
zero
.
QuadPart
=
0
;
...
...
@@ -620,7 +620,7 @@ BOOL WINAPI SHIsEmptyStream(IStream *lpStream)
* Failure: An HRESULT error code, or E_FAIL if the write succeeded but the
* number of bytes written does not match.
*/
HRESULT
WINAPI
SH
LWAPI_212
(
IStream
*
lpStream
,
LPCVOID
lpvSrc
,
ULONG
ulSize
)
HRESULT
WINAPI
SH
IStream_Write
(
IStream
*
lpStream
,
LPCVOID
lpvSrc
,
ULONG
ulSize
)
{
ULONG
ulWritten
;
HRESULT
hRet
;
...
...
dlls/shlwapi/ordinal.c
View file @
c20bf693
...
...
@@ -3499,7 +3499,7 @@ BOOL WINAPI GetOpenFileNameWrapW(LPOPENFILENAMEW ofn)
/*************************************************************************
* @ [SHLWAPI.404]
*/
HRESULT
WINAPI
IUnknown
_EnumObjects
(
LPSHELLFOLDER
lpFolder
,
HWND
hwnd
,
SHCONTF
flags
,
IEnumIDList
**
ppenum
)
HRESULT
WINAPI
SHIShellFolder
_EnumObjects
(
LPSHELLFOLDER
lpFolder
,
HWND
hwnd
,
SHCONTF
flags
,
IEnumIDList
**
ppenum
)
{
IPersist
*
persist
;
HRESULT
hr
;
...
...
@@ -3639,16 +3639,6 @@ BOOL WINAPI SHFlushSFCacheWrap(void) {
}
/*************************************************************************
* @ [SHLWAPI.425]
*/
BOOL
WINAPI
DeleteMenuWrap
(
HMENU
hmenu
,
UINT
pos
,
UINT
flags
)
{
/* FIXME: This should do more than simply call DeleteMenu */
FIXME
(
"%p %08x %08x): semi-stub
\n
"
,
hmenu
,
pos
,
flags
);
return
DeleteMenu
(
hmenu
,
pos
,
flags
);
}
/*************************************************************************
* @ [SHLWAPI.429]
* FIXME I have no idea what this function does or what its arguments are.
*/
...
...
@@ -4324,7 +4314,10 @@ UINT WINAPI ZoneComputePaneSize(HWND hwnd)
return
0x95
;
}
void
WINAPI
SHChangeNotify
(
LONG
wEventId
,
UINT
uFlags
,
LPCVOID
dwItem1
,
LPCVOID
dwItem2
)
/***********************************************************************
* SHChangeNotifyWrap [SHLWAPI.394]
*/
void
WINAPI
SHChangeNotifyWrap
(
LONG
wEventId
,
UINT
uFlags
,
LPCVOID
dwItem1
,
LPCVOID
dwItem2
)
{
SHChangeNotify
(
wEventId
,
uFlags
,
dwItem1
,
dwItem2
);
}
...
...
dlls/shlwapi/shlwapi.spec
View file @
c20bf693
This diff is collapsed.
Click to expand it.
dlls/shlwapi/thread.c
View file @
c20bf693
...
...
@@ -43,7 +43,7 @@ extern DWORD SHLWAPI_ThreadRef_index; /* Initialised in shlwapi_main.c */
INT
WINAPI
SHStringFromGUIDA
(
REFGUID
,
LPSTR
,
INT
);
/**************************************************************************
*
_
CreateAllAccessSecurityAttributes [SHLWAPI.356]
* CreateAllAccessSecurityAttributes [SHLWAPI.356]
*
* Initialise security attributes from a security descriptor.
*
...
...
@@ -60,7 +60,7 @@ INT WINAPI SHStringFromGUIDA(REFGUID,LPSTR,INT);
* Wine is impersonating does not use security descriptors (i.e. anything
* before Windows NT).
*/
LPSECURITY_ATTRIBUTES
WINAPI
_
CreateAllAccessSecurityAttributes
(
LPSECURITY_ATTRIBUTES
WINAPI
CreateAllAccessSecurityAttributes
(
LPSECURITY_ATTRIBUTES
lpAttr
,
PSECURITY_DESCRIPTOR
lpSec
,
DWORD
p3
)
...
...
@@ -327,7 +327,7 @@ BOOL WINAPI SHCreateThread(LPTHREAD_START_ROUTINE pfnThreadProc, VOID *pData,
}
/*************************************************************************
*
_
SHGlobalCounterGetValue [SHLWAPI.223]
* SHGlobalCounterGetValue [SHLWAPI.223]
*
* Get the current count of a semaphore.
*
...
...
@@ -337,7 +337,7 @@ BOOL WINAPI SHCreateThread(LPTHREAD_START_ROUTINE pfnThreadProc, VOID *pData,
* RETURNS
* The current count of the semaphore.
*/
LONG
WINAPI
_
SHGlobalCounterGetValue
(
HANDLE
hSem
)
LONG
WINAPI
SHGlobalCounterGetValue
(
HANDLE
hSem
)
{
LONG
dwOldCount
=
0
;
...
...
@@ -348,7 +348,7 @@ LONG WINAPI _SHGlobalCounterGetValue(HANDLE hSem)
}
/*************************************************************************
*
_
SHGlobalCounterIncrement [SHLWAPI.224]
* SHGlobalCounterIncrement [SHLWAPI.224]
*
* Claim a semaphore.
*
...
...
@@ -358,7 +358,7 @@ LONG WINAPI _SHGlobalCounterGetValue(HANDLE hSem)
* RETURNS
* The new count of the semaphore.
*/
LONG
WINAPI
_
SHGlobalCounterIncrement
(
HANDLE
hSem
)
LONG
WINAPI
SHGlobalCounterIncrement
(
HANDLE
hSem
)
{
LONG
dwOldCount
=
0
;
...
...
@@ -368,7 +368,7 @@ LONG WINAPI _SHGlobalCounterIncrement(HANDLE hSem)
}
/*************************************************************************
*
_
SHGlobalCounterDecrement [SHLWAPI.424]
* SHGlobalCounterDecrement [SHLWAPI.424]
*
* Release a semaphore.
*
...
...
@@ -378,23 +378,23 @@ LONG WINAPI _SHGlobalCounterIncrement(HANDLE hSem)
* RETURNS
* The new count of the semaphore.
*/
DWORD
WINAPI
_
SHGlobalCounterDecrement
(
HANDLE
hSem
)
DWORD
WINAPI
SHGlobalCounterDecrement
(
HANDLE
hSem
)
{
DWORD
dwOldCount
=
0
;
TRACE
(
"(%p)
\n
"
,
hSem
);
dwOldCount
=
_
SHGlobalCounterGetValue
(
hSem
);
dwOldCount
=
SHGlobalCounterGetValue
(
hSem
);
WaitForSingleObject
(
hSem
,
0
);
return
dwOldCount
-
1
;
}
/*************************************************************************
*
_
SHGlobalCounterCreateNamedW [SHLWAPI.423]
* SHGlobalCounterCreateNamedW [SHLWAPI.423]
*
* Unicode version of
_
SHGlobalCounterCreateNamedA.
* Unicode version of SHGlobalCounterCreateNamedA.
*/
HANDLE
WINAPI
_
SHGlobalCounterCreateNamedW
(
LPCWSTR
lpszName
,
DWORD
iInitial
)
HANDLE
WINAPI
SHGlobalCounterCreateNamedW
(
LPCWSTR
lpszName
,
DWORD
iInitial
)
{
static
const
WCHAR
szPrefix
[]
=
{
's'
,
'h'
,
'e'
,
'l'
,
'l'
,
'.'
,
'\0'
};
const
int
iPrefixLen
=
6
;
...
...
@@ -412,7 +412,7 @@ HANDLE WINAPI _SHGlobalCounterCreateNamedW(LPCWSTR lpszName, DWORD iInitial)
StrCpyNW
(
szBuff
+
iPrefixLen
,
lpszName
,
iBuffLen
-
iPrefixLen
);
/* Initialise security attributes */
pSecAttr
=
_
CreateAllAccessSecurityAttributes
(
&
sAttr
,
&
sd
,
0
);
pSecAttr
=
CreateAllAccessSecurityAttributes
(
&
sAttr
,
&
sd
,
0
);
if
(
!
(
hRet
=
CreateSemaphoreW
(
pSecAttr
,
iInitial
,
MAXLONG
,
szBuff
)))
hRet
=
OpenSemaphoreW
(
SYNCHRONIZE
|
SEMAPHORE_MODIFY_STATE
,
0
,
szBuff
);
...
...
@@ -420,7 +420,7 @@ HANDLE WINAPI _SHGlobalCounterCreateNamedW(LPCWSTR lpszName, DWORD iInitial)
}
/*************************************************************************
*
_
SHGlobalCounterCreateNamedA [SHLWAPI.422]
* SHGlobalCounterCreateNamedA [SHLWAPI.422]
*
* Create a semaphore.
*
...
...
@@ -431,7 +431,7 @@ HANDLE WINAPI _SHGlobalCounterCreateNamedW(LPCWSTR lpszName, DWORD iInitial)
* RETURNS
* A new semaphore handle.
*/
HANDLE
WINAPI
_
SHGlobalCounterCreateNamedA
(
LPCSTR
lpszName
,
DWORD
iInitial
)
HANDLE
WINAPI
SHGlobalCounterCreateNamedA
(
LPCSTR
lpszName
,
DWORD
iInitial
)
{
WCHAR
szBuff
[
MAX_PATH
];
...
...
@@ -439,11 +439,11 @@ HANDLE WINAPI _SHGlobalCounterCreateNamedA(LPCSTR lpszName, DWORD iInitial)
if
(
lpszName
)
MultiByteToWideChar
(
0
,
0
,
lpszName
,
-
1
,
szBuff
,
MAX_PATH
);
return
_
SHGlobalCounterCreateNamedW
(
lpszName
?
szBuff
:
NULL
,
iInitial
);
return
SHGlobalCounterCreateNamedW
(
lpszName
?
szBuff
:
NULL
,
iInitial
);
}
/*************************************************************************
*
_
SHGlobalCounterCreate [SHLWAPI.222]
* SHGlobalCounterCreate [SHLWAPI.222]
*
* Create a semaphore using the name of a GUID.
*
...
...
@@ -456,7 +456,7 @@ HANDLE WINAPI _SHGlobalCounterCreateNamedA(LPCSTR lpszName, DWORD iInitial)
* NOTES
* The initial count of the semaphore is set to 0.
*/
HANDLE
WINAPI
_
SHGlobalCounterCreate
(
REFGUID
guid
)
HANDLE
WINAPI
SHGlobalCounterCreate
(
REFGUID
guid
)
{
char
szName
[
40
];
...
...
@@ -464,5 +464,5 @@ HANDLE WINAPI _SHGlobalCounterCreate (REFGUID guid)
/* Create a named semaphore using the GUID string */
SHStringFromGUIDA
(
guid
,
szName
,
sizeof
(
szName
)
-
1
);
return
_
SHGlobalCounterCreateNamedA
(
szName
,
0
);
return
SHGlobalCounterCreateNamedA
(
szName
,
0
);
}
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