Merge from amd64 branch:

[SPIDER]
44002 Fix 64 bit build. (Samuel Serapión)

[PAINT]
43858 Fix 64 bit warnings. (Samuel Serapión)

[RAPPS]
43906 Fix 64 bit build. (Samuel Serapión)

[SNDREC32]
44389 Fix 64 bit build. (Samuel Serapión)

[TFTP]
41097 Fix pointer to DWORD cast. (Timo Kreuzer)

[COMCTL32]
36172 Build as unicode. (Samuel Serapión)

[USERMGR]
41098 Fix 2 POINTER<->DWORD casts. (Timo Kreuzer)

[d3d9]
38149 Fix pointer<->ULONG cast. (Timo Kreuzer)
43839 Fix 64 bit Build. (Samuel Serapión)

[DSOUND]
40753 Make DSDRIVERDESC.dnDevNode a DWORD_PTR and DSPROPERTY.InstanceId a ULONG_PTR. (Timo Kreuzer)

[LSASRV]
44037 Fix 64 bit Build. (Samuel Serapión)

[MMDRV]
40125 Fix 64bit build. (Samuel Serapión)

[MSGINA]
40993 fix 64bit build (Timo Kreuzer)

[NETSHELL]
41001 Don't cast the 1st parameter of InterlockedExchange to volatile void **, but to void ** (Timo Kreuzer)

[OPENGL32]
36502 No need to assert an offset thats only used in i386 specific code. (Samuel Serapión)

[POWRPROF]
41044 Don't cast NULL to DWORD. (Timo Kreuzer)
43860 Don't cast NULL to an integer type. (Samuel Serapión)

[PSAPI]
38150 Fix a cast (Timo Kreuzer)

[SHELL32]
38355 Use Get/SetWindowLongPtr (Samuel Serapión)
41047 Get rid of deprecated LargeInteger functions and use native int64 math instead. (Timo Kreuzer)
41048 DialogProc returns INT_PTR and not BOOL. Don't cast a pointer to LONG. Use INT_PTR instead of int for pointer math. (Timo Kreuzer)
41049 Change return type of OpenMRUListW and CreateMRUListW to HANDLE, add a comment that CREATEMRULISTW is already defined differently in explorer_new/undoc.h (Timo Kreuzer)
44601 Fix a prototype. Convert RtlLargeInteger to native int64. Fixes 64bit built. (Timo Kreuzer)

[WDMAUD.DRV]
41101 Don't cast DWORD to PVOID, use UlongToPtr instead. (Timo Kreuzer)

[WS2_32]
35777 fix ws2_32 spec file (Timo kreuzer)
44044 Fix ws2_32 64bit build (1 of 2) (Samuel Serapión)
44045 Fix ws2_32 64bit build (2 of 2) (Samuel Serapión)

[WS2_32_NEW]
44389 Fix 64 bit built. (Samuel Serapión)

svn path=/trunk/; revision=44602
This commit is contained in:
Timo Kreuzer 2009-12-15 15:16:01 +00:00
parent 64d1ab613b
commit 6bba9dc9a1
42 changed files with 140 additions and 145 deletions

View file

@ -50,7 +50,7 @@ void MakePath(TCHAR *szDest, UINT nDestLen, const TCHAR *szExt)
lstrcpy(ptr + 1, szExt); lstrcpy(ptr + 1, szExt);
} }
BOOL CALLBACK DifficultyDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) INT_PTR CALLBACK DifficultyDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
{ {
switch (uMsg) switch (uMsg)
{ {
@ -239,7 +239,7 @@ CardImageWndProc(HWND hwnd,
} }
BOOL CALLBACK CardBackDlgProc(HWND hDlg, INT_PTR CALLBACK CardBackDlgProc(HWND hDlg,
UINT uMsg, UINT uMsg,
WPARAM wParam, WPARAM wParam,
LPARAM lParam) LPARAM lParam)

View file

@ -251,7 +251,7 @@ WindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{ {
int test[] = { LOWORD(lParam) - 260, LOWORD(lParam) - 140, LOWORD(lParam) - 20 }; int test[] = { LOWORD(lParam) - 260, LOWORD(lParam) - 140, LOWORD(lParam) - 20 };
SendMessage(hStatusBar, WM_SIZE, wParam, lParam); SendMessage(hStatusBar, WM_SIZE, wParam, lParam);
SendMessage(hStatusBar, SB_SETPARTS, 3, (int)&test); SendMessage(hStatusBar, SB_SETPARTS, 3, (LPARAM)&test);
MoveWindow(hScrollbox, 56, 49, LOWORD(lParam) - 56, HIWORD(lParam) - 72, TRUE); MoveWindow(hScrollbox, 56, 49, LOWORD(lParam) - 56, HIWORD(lParam) - 72, TRUE);
//InvalidateRect(hwnd, NULL, TRUE); //InvalidateRect(hwnd, NULL, TRUE);
} }

View file

@ -20,9 +20,9 @@ static WCHAR szModifyBtn[MAX_STR_LEN];
/* Toolbar buttons */ /* Toolbar buttons */
static const TBBUTTON Buttons[] = static const TBBUTTON Buttons[] =
{ /* iBitmap, idCommand, fsState, fsStyle, bReserved[2], dwData, iString */ { /* iBitmap, idCommand, fsState, fsStyle, bReserved[2], dwData, iString */
{ 0, ID_INSTALL, TBSTATE_ENABLED, BTNS_BUTTON | BTNS_AUTOSIZE, {0}, 0, (int) szInstallBtn}, { 0, ID_INSTALL, TBSTATE_ENABLED, BTNS_BUTTON | BTNS_AUTOSIZE, {0}, 0, (INT_PTR)szInstallBtn},
{ 1, ID_UNINSTALL, TBSTATE_ENABLED, BTNS_BUTTON | BTNS_AUTOSIZE, {0}, 0, (int) szUninstallBtn}, { 1, ID_UNINSTALL, TBSTATE_ENABLED, BTNS_BUTTON | BTNS_AUTOSIZE, {0}, 0, (INT_PTR)szUninstallBtn},
{ 2, ID_MODIFY, TBSTATE_ENABLED, BTNS_BUTTON | BTNS_AUTOSIZE, {0}, 0, (int) szModifyBtn}, { 2, ID_MODIFY, TBSTATE_ENABLED, BTNS_BUTTON | BTNS_AUTOSIZE, {0}, 0, (INT_PTR)szModifyBtn},
{ 5, 0, TBSTATE_ENABLED, BTNS_SEP, {0}, 0, 0}, { 5, 0, TBSTATE_ENABLED, BTNS_SEP, {0}, 0, 0},
{ 3, ID_REFRESH, TBSTATE_ENABLED, BTNS_BUTTON | BTNS_AUTOSIZE, {0}, 0, 0}, { 3, ID_REFRESH, TBSTATE_ENABLED, BTNS_BUTTON | BTNS_AUTOSIZE, {0}, 0, 0},
{ 5, 0, TBSTATE_ENABLED, BTNS_SEP, {0}, 0, 0}, { 5, 0, TBSTATE_ENABLED, BTNS_SEP, {0}, 0, 0},

View file

@ -8,6 +8,7 @@
#include "stdafx.h" #include "stdafx.h"
#include "audio_resampler_acm.hpp" #include "audio_resampler_acm.hpp"
#include <stdio.h>

View file

@ -939,7 +939,7 @@ void processRequest(void *lpParam)
continue; continue;
errno = 0; errno = 0;
req.bytesReady = (DWORD)outPtr - (DWORD)&req.mesout; req.bytesReady = (DWORD_PTR)outPtr - (DWORD_PTR)&req.mesout;
//printf("Bytes Ready=%u\n", req.bytesReady); //printf("Bytes Ready=%u\n", req.bytesReady);
send(req.sock, (const char*)&req.mesout, req.bytesReady, 0); send(req.sock, (const char*)&req.mesout, req.bytesReady, 0);
errno = WSAGetLastError(); errno = WSAGetLastError();

View file

@ -51,7 +51,7 @@ UpdateGroupsList(HWND hwndListView)
PLOCALGROUP_INFO_1 pBuffer; PLOCALGROUP_INFO_1 pBuffer;
DWORD entriesread; DWORD entriesread;
DWORD totalentries; DWORD totalentries;
DWORD resume_handle = 0; DWORD_PTR resume_handle = 0;
DWORD i; DWORD i;
LV_ITEM lvi; LV_ITEM lvi;
INT iItem; INT iItem;

View file

@ -377,7 +377,7 @@ InitUserGroupsList(HWND hwndDlg)
PLOCALGROUP_INFO_1 pBuffer; PLOCALGROUP_INFO_1 pBuffer;
DWORD entriesread; DWORD entriesread;
DWORD totalentries; DWORD totalentries;
DWORD resume_handle = 0; DWORD_PTR resume_handle = 0;
DWORD i; DWORD i;
LV_ITEM lvi; LV_ITEM lvi;
INT iItem; INT iItem;

View file

@ -26,7 +26,7 @@ LPDIRECT3DDEVICE9_INT IDirect3DDevice9ToImpl(LPDIRECT3DDEVICE9 iface)
static HRESULT InvalidCall(LPDIRECT3DDEVICE9_INT This, LPSTR ErrorMsg) static HRESULT InvalidCall(LPDIRECT3DDEVICE9_INT This, LPSTR ErrorMsg)
{ {
DPRINT1(ErrorMsg); DPRINT1("%s",ErrorMsg);
UNLOCK_D3DDEVICE9(); UNLOCK_D3DDEVICE9();
return D3DERR_INVALIDCALL; return D3DERR_INVALIDCALL;
} }

View file

@ -93,7 +93,7 @@ HRESULT SafeAppendString(IN OUT LPSTR Dst, IN DWORD DstSize, IN LPCSTR Src)
HRESULT AlignedAlloc(IN OUT LPVOID *ppObject, IN SIZE_T dwSize) HRESULT AlignedAlloc(IN OUT LPVOID *ppObject, IN SIZE_T dwSize)
{ {
ULONG AddressOffset; ULONG_PTR AddressOffset;
ULONG AlignedMask = MEM_ALIGNMENT - 1; ULONG AlignedMask = MEM_ALIGNMENT - 1;
CHAR *AlignedPtr; CHAR *AlignedPtr;
ULONG_PTR *AlignedOffsetPtr; ULONG_PTR *AlignedOffsetPtr;
@ -114,7 +114,7 @@ HRESULT AlignedAlloc(IN OUT LPVOID *ppObject, IN SIZE_T dwSize)
if (AlignedPtr == 0) if (AlignedPtr == 0)
return DDERR_OUTOFMEMORY; return DDERR_OUTOFMEMORY;
AddressOffset = MEM_ALIGNMENT - ((ULONG)AlignedPtr & AlignedMask); AddressOffset = MEM_ALIGNMENT - ((ULONG_PTR)AlignedPtr & AlignedMask);
AlignedPtr += AddressOffset; AlignedPtr += AddressOffset;

View file

@ -84,7 +84,7 @@ DWORD CALLBACK HelDdSurfLock(LPDDHAL_LOCKDATA lpLockData)
/* Get our hdc for the active window */ /* Get our hdc for the active window */
hDC = GetDC(lpLockData->lpDDSurface->lpSurfMore->lpDD_lcl->hFocusWnd); hDC = GetDC((HWND)lpLockData->lpDDSurface->lpSurfMore->lpDD_lcl->hFocusWnd);
if (hDC != NULL) if (hDC != NULL)
{ {
@ -200,7 +200,7 @@ DWORD CALLBACK HelDdSurfUnlock(LPDDHAL_UNLOCKDATA lpUnLockData)
DX_WINDBG_trace(); DX_WINDBG_trace();
/* Get our hdc for the active window */ /* Get our hdc for the active window */
hDC = GetDC(lpUnLockData->lpDDSurface->lpSurfMore->lpDD_lcl->hFocusWnd); hDC = GetDC((HWND)lpUnLockData->lpDDSurface->lpSurfMore->lpDD_lcl->hFocusWnd);
if (hDC != NULL) if (hDC != NULL)
{ {

View file

@ -126,7 +126,7 @@ HRESULT DSOUND_ReopenDevice(DirectSoundDevice *device, BOOL forcewave)
if (device->driver) if (device->driver)
flags |= WAVE_DIRECTSOUND; flags |= WAVE_DIRECTSOUND;
hres = mmErr(waveOutOpen(&(device->hwo), device->drvdesc.dnDevNode, device->pwfx, (DWORD_PTR)DSOUND_callback, (DWORD)device, flags)); hres = mmErr(waveOutOpen(&(device->hwo), device->drvdesc.dnDevNode, device->pwfx, (DWORD_PTR)DSOUND_callback, (DWORD_PTR)device, flags));
if (FAILED(hres)) { if (FAILED(hres)) {
WARN("waveOutOpen failed\n"); WARN("waveOutOpen failed\n");
if (device->driver) if (device->driver)

View file

@ -109,7 +109,7 @@ static HRESULT WINAPI IKsBufferPropertySetImpl_Get(
S(prop).Set = *guidPropSet; S(prop).Set = *guidPropSet;
S(prop).Id = dwPropID; S(prop).Id = dwPropID;
S(prop).Flags = 0; /* unused */ S(prop).Flags = 0; /* unused */
S(prop).InstanceId = (ULONG)This->dsb->device; S(prop).InstanceId = (ULONG_PTR)This->dsb->device;
hres = IDsDriverPropertySet_Get(ps, &prop, pInstanceData, cbInstanceData, pPropData, cbPropData, pcbReturned); hres = IDsDriverPropertySet_Get(ps, &prop, pInstanceData, cbInstanceData, pPropData, cbPropData, pcbReturned);
@ -145,7 +145,7 @@ static HRESULT WINAPI IKsBufferPropertySetImpl_Set(
S(prop).Set = *guidPropSet; S(prop).Set = *guidPropSet;
S(prop).Id = dwPropID; S(prop).Id = dwPropID;
S(prop).Flags = 0; /* unused */ S(prop).Flags = 0; /* unused */
S(prop).InstanceId = (ULONG)This->dsb->device; S(prop).InstanceId = (ULONG_PTR)This->dsb->device;
hres = IDsDriverPropertySet_Set(ps,&prop,pInstanceData,cbInstanceData,pPropData,cbPropData); hres = IDsDriverPropertySet_Set(ps,&prop,pInstanceData,cbInstanceData,pPropData,cbPropData);
IDsDriverPropertySet_Release(ps); IDsDriverPropertySet_Release(ps);

View file

@ -240,11 +240,11 @@ GetDeviceCapabilities(
BOOL BOOL
CallClient( CallClient(
DeviceInfo* device_info, DeviceInfo* device_info,
DWORD message, DWORD_PTR message,
DWORD parameter1, DWORD_PTR parameter1,
DWORD parameter2) DWORD_PTR parameter2)
{ {
DPRINT("Calling client - callback 0x%x mmhandle 0x%x\n", (int) device_info->callback, (int) device_info->mme_handle); DPRINT("Calling client - callback 0x%x mmhandle 0x%x\n", (int) device_info->callback, device_info->mme_handle);
return DriverCallback(device_info->callback, return DriverCallback(device_info->callback,
HIWORD(device_info->flags), HIWORD(device_info->flags),
device_info->mme_handle, device_info->mme_handle,
@ -749,7 +749,7 @@ ProcessLongMidiMessage(
header->dwFlags |= MHDR_DONE; header->dwFlags |= MHDR_DONE;
header->dwFlags &= ~ MHDR_INQUEUE; header->dwFlags &= ~ MHDR_INQUEUE;
DPRINT("Success? %d\n", (int) CallClient(the_device, MOM_DONE, (DWORD) header, 0)); DPRINT("Success? %d\n", CallClient(the_device, MOM_DONE, (DWORD_PTR) header, 0));
return MMSYSERR_NOERROR; return MMSYSERR_NOERROR;
} }
@ -764,9 +764,9 @@ FAR PASCAL
modMessage( modMessage(
UINT device_id, UINT device_id,
UINT message, UINT message,
DWORD private_data, DWORD_PTR private_data,
DWORD parameter1, DWORD_PTR parameter1,
DWORD parameter2) DWORD_PTR parameter2)
{ {
switch ( message ) switch ( message )
{ {

View file

@ -1,7 +1,7 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd"> <!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd">
<group> <group>
<module name="comctl32" type="win32dll" baseaddress="${BASEADDRESS_COMCTL32}" installbase="system32" installname="comctl32.dll" allowwarnings="true"> <module name="comctl32" type="win32dll" baseaddress="${BASEADDRESS_COMCTL32}" installbase="system32" installname="comctl32.dll" unicode="yes" allowwarnings="true">
<autoregister infsection="OleControlDlls" type="DllInstall" /> <autoregister infsection="OleControlDlls" type="DllInstall" />
<importlibrary definition="comctl32.spec" /> <importlibrary definition="comctl32.spec" />
<include base="comctl32">.</include> <include base="comctl32">.</include>

View file

@ -37,7 +37,7 @@ ReferencePolicyHandle(
RtlEnterCriticalSection(&PolicyHandleTableLock); RtlEnterCriticalSection(&PolicyHandleTableLock);
if (RtlIsValidIndexHandle(&PolicyHandleTable, if (RtlIsValidIndexHandle(&PolicyHandleTable,
(ULONG)ObjectHandle, HandleToUlong(ObjectHandle),
(PRTL_HANDLE_TABLE_ENTRY*)&ReferencedPolicy) && (PRTL_HANDLE_TABLE_ENTRY*)&ReferencedPolicy) &&
!(ReferencedPolicy->Flags & POLICY_DELETE)) !(ReferencedPolicy->Flags & POLICY_DELETE))
{ {

View file

@ -80,8 +80,8 @@ GetDeviceCount(DeviceType device_type)
DWORD DWORD
GetDeviceCapabilities( GetDeviceCapabilities(
DeviceType device_type, DeviceType device_type,
DWORD device_id, UINT device_id,
PVOID capabilities, DWORD_PTR capabilities,
DWORD capabilities_size) DWORD capabilities_size)
{ {
MMRESULT result; MMRESULT result;
@ -149,10 +149,10 @@ GetDeviceCapabilities(
DWORD DWORD
OpenDevice( OpenDevice(
DeviceType device_type, DeviceType device_type,
DWORD device_id, UINT device_id,
PVOID open_descriptor, PVOID open_descriptor,
DWORD flags, DWORD flags,
DWORD private_handle) DWORD_PTR private_handle)
{ {
SessionInfo* session_info; SessionInfo* session_info;
MMRESULT result; MMRESULT result;
@ -234,7 +234,7 @@ OpenDevice(
DWORD DWORD
CloseDevice( CloseDevice(
DWORD private_handle) DWORD_PTR private_handle)
{ {
MMRESULT result; MMRESULT result;
SessionInfo* session_info = (SessionInfo*) private_handle; SessionInfo* session_info = (SessionInfo*) private_handle;

View file

@ -22,7 +22,7 @@
MMRESULT MMRESULT
CobbleDeviceName( CobbleDeviceName(
DeviceType device_type, DeviceType device_type,
DWORD device_id, UINT device_id,
PWCHAR out_device_name) PWCHAR out_device_name)
{ {
WCHAR base_device_name[MAX_DEVICE_NAME_LENGTH]; WCHAR base_device_name[MAX_DEVICE_NAME_LENGTH];
@ -78,7 +78,7 @@ CobbleDeviceName(
MMRESULT MMRESULT
OpenKernelDevice( OpenKernelDevice(
DeviceType device_type, DeviceType device_type,
DWORD device_id, UINT device_id,
DWORD access, DWORD access,
HANDLE* handle) HANDLE* handle)
{ {

View file

@ -127,7 +127,7 @@ typedef struct _SessionInfo
struct _SessionInfo* next; struct _SessionInfo* next;
DeviceType device_type; DeviceType device_type;
DWORD device_id; UINT device_id;
HANDLE kernel_device_handle; HANDLE kernel_device_handle;
@ -143,8 +143,8 @@ typedef struct _SessionInfo
BOOL is_paused; BOOL is_paused;
/* Stuff passed to us from winmm */ /* Stuff passed to us from winmm */
DWORD app_user_data; DWORD_PTR app_user_data;
DWORD callback; DWORD_PTR callback;
DWORD flags; DWORD flags;
@ -181,8 +181,8 @@ BOOL
NotifyClient( NotifyClient(
SessionInfo* session_info, SessionInfo* session_info,
DWORD message, DWORD message,
DWORD parameter1, DWORD_PTR parameter1,
DWORD parameter2); DWORD_PTR parameter2);
/* /*
@ -198,13 +198,13 @@ ErrorToMmResult(UINT error_code);
MMRESULT MMRESULT
CobbleDeviceName( CobbleDeviceName(
DeviceType device_type, DeviceType device_type,
DWORD device_id, UINT device_id,
PWCHAR out_device_name); PWCHAR out_device_name);
MMRESULT MMRESULT
OpenKernelDevice( OpenKernelDevice(
DeviceType device_type, DeviceType device_type,
DWORD device_id, UINT device_id,
DWORD access, DWORD access,
HANDLE* handle); HANDLE* handle);
@ -231,7 +231,7 @@ GetDeviceData(
MMRESULT MMRESULT
CreateSession( CreateSession(
DeviceType device_type, DeviceType device_type,
DWORD device_id, UINT device_id,
SessionInfo** session_info); SessionInfo** session_info);
VOID VOID
@ -240,7 +240,7 @@ DestroySession(SessionInfo* session);
SessionInfo* SessionInfo*
GetSession( GetSession(
DeviceType device_type, DeviceType device_type,
DWORD device_id); UINT device_id);
MMRESULT MMRESULT
StartSessionThread(SessionInfo* session_info); StartSessionThread(SessionInfo* session_info);
@ -253,9 +253,9 @@ CallSessionThread(
DWORD DWORD
HandleBySessionThread( HandleBySessionThread(
DWORD private_handle, DWORD_PTR private_handle,
DWORD message, DWORD_PTR message,
DWORD parameter); DWORD_PTR parameter);
/* General */ /* General */
@ -266,21 +266,21 @@ GetDeviceCount(DeviceType device_type);
DWORD DWORD
GetDeviceCapabilities( GetDeviceCapabilities(
DeviceType device_type, DeviceType device_type,
DWORD device_id, UINT device_id,
PVOID capabilities, DWORD_PTR capabilities,
DWORD capabilities_size); DWORD capabilities_size);
DWORD DWORD
OpenDevice( OpenDevice(
DeviceType device_type, DeviceType device_type,
DWORD device_id, UINT device_id,
PVOID open_descriptor, PVOID open_descriptor,
DWORD flags, DWORD flags,
DWORD private_handle); DWORD_PTR private_handle);
DWORD DWORD
CloseDevice( CloseDevice(
DWORD private_handle); DWORD_PTR private_handle);
DWORD DWORD
PauseDevice( PauseDevice(
@ -310,7 +310,7 @@ QueryWaveFormat(
DWORD DWORD
WriteWaveBuffer( WriteWaveBuffer(
DWORD private_handle, DWORD_PTR private_handle,
PWAVEHDR wave_header, PWAVEHDR wave_header,
DWORD wave_header_size); DWORD wave_header_size);

View file

@ -22,8 +22,8 @@ BOOL
NotifyClient( NotifyClient(
SessionInfo* session_info, SessionInfo* session_info,
DWORD message, DWORD message,
DWORD parameter1, DWORD_PTR parameter1,
DWORD parameter2) DWORD_PTR parameter2)
{ {
return DriverCallback(session_info->callback, return DriverCallback(session_info->callback,
HIWORD(session_info->flags), HIWORD(session_info->flags),
@ -43,11 +43,11 @@ NotifyClient(
DWORD APIENTRY DWORD APIENTRY
wodMessage( wodMessage(
DWORD device_id, UINT device_id,
DWORD message, UINT message,
DWORD private_handle, DWORD_PTR private_handle,
DWORD parameter1, DWORD_PTR parameter1,
DWORD parameter2) DWORD_PTR parameter2)
{ {
switch ( message ) switch ( message )
{ {
@ -61,7 +61,7 @@ wodMessage(
DPRINT("WODM_GETDEVCAPS\n"); DPRINT("WODM_GETDEVCAPS\n");
return GetDeviceCapabilities(WaveOutDevice, return GetDeviceCapabilities(WaveOutDevice,
device_id, device_id,
(PVOID) parameter1, parameter1,
parameter2); parameter2);
/* http://www.osronline.com/ddkx/w98ddk/mmedia_4p85.htm */ /* http://www.osronline.com/ddkx/w98ddk/mmedia_4p85.htm */

View file

@ -26,7 +26,7 @@ CRITICAL_SECTION session_lock;
SessionInfo* SessionInfo*
GetSession( GetSession(
DeviceType device_type, DeviceType device_type,
DWORD device_id) UINT device_id)
{ {
SessionInfo* session_info; SessionInfo* session_info;
@ -59,7 +59,7 @@ GetSession(
MMRESULT MMRESULT
CreateSession( CreateSession(
DeviceType device_type, DeviceType device_type,
DWORD device_id, UINT device_id,
SessionInfo** session_info) SessionInfo** session_info)
{ {
HANDLE heap = GetProcessHeap(); HANDLE heap = GetProcessHeap();
@ -186,7 +186,7 @@ StartSessionThread(SessionInfo* session_info)
result = mmTaskCreate(task, result = mmTaskCreate(task,
&session_info->thread.handle, &session_info->thread.handle,
(DWORD) session_info); (DWORD_PTR)session_info);
if ( result != MMSYSERR_NOERROR ) if ( result != MMSYSERR_NOERROR )
{ {
@ -235,9 +235,9 @@ CallSessionThread(
DWORD DWORD
HandleBySessionThread( HandleBySessionThread(
DWORD private_handle, DWORD_PTR private_handle,
DWORD message, DWORD_PTR message,
DWORD parameter) DWORD_PTR parameter)
{ {
return CallSessionThread((SessionInfo*) private_handle, return CallSessionThread((SessionInfo*) private_handle,
message, message,

View file

@ -56,7 +56,7 @@ QueueWaveBuffer(
wave_header->dwFlags |= WHDR_INQUEUE; wave_header->dwFlags |= WHDR_INQUEUE;
/* Save our handle in the header */ /* Save our handle in the header */
wave_header->reserved = (DWORD) session_info; wave_header->reserved = (DWORD_PTR) session_info;
/* Locate the end of the queue */ /* Locate the end of the queue */
previous_node = NULL; previous_node = NULL;
@ -112,10 +112,10 @@ ReturnCompletedBuffers(SessionInfo* session_info)
message = (session_info->device_type == WaveOutDevice) ? WOM_DONE : message = (session_info->device_type == WaveOutDevice) ? WOM_DONE :
WIM_DATA; WIM_DATA;
DPRINT("Notifying client that buffer 0x%x is done\n", (int) header); DPRINT("Notifying client that buffer 0x%p is done\n", header);
/* Notify the client */ /* Notify the client */
NotifyClient(session_info, message, (DWORD) header, 0); NotifyClient(session_info, message, (DWORD_PTR) header, 0);
} }
} }
@ -369,7 +369,7 @@ SetWaveFormat(
DWORD DWORD
WriteWaveBuffer( WriteWaveBuffer(
DWORD private_handle, DWORD_PTR private_handle,
PWAVEHDR wave_header, PWAVEHDR wave_header,
DWORD wave_header_size) DWORD wave_header_size)
{ {

View file

@ -29,7 +29,7 @@ GUIInitialize(
return TRUE; return TRUE;
} }
static BOOL CALLBACK static INT_PTR CALLBACK
StatusMessageWindowProc( StatusMessageWindowProc(
IN HWND hwndDlg, IN HWND hwndDlg,
IN UINT uMsg, IN UINT uMsg,

View file

@ -1198,7 +1198,7 @@ HRESULT WINAPI LanConnectStatusUI_Constructor (IUnknown * pUnkOuter, REFIID riid
This->lpNetMan = NULL; This->lpNetMan = NULL;
This->pHead = NULL; This->pHead = NULL;
if (InterlockedCompareExchangePointer((volatile void **)&cached_This, This, NULL) != NULL) if (InterlockedCompareExchangePointer((void **)&cached_This, This, NULL) != NULL)
{ {
CoTaskMemFree(This); CoTaskMemFree(This);
} }

View file

@ -22,7 +22,9 @@
#include "opengl32.h" #include "opengl32.h"
#if defined(_M_IX86)
C_ASSERT(FIELD_OFFSET(TEB, glTable) == 0xbe8); C_ASSERT(FIELD_OFFSET(TEB, glTable) == 0xbe8);
#endif
int WINAPI glEmptyFunc0( void ) { return 0; } int WINAPI glEmptyFunc0( void ) { return 0; }
int WINAPI glEmptyFunc4( long l1 ) { return 0; } int WINAPI glEmptyFunc4( long l1 ) { return 0; }

View file

@ -688,13 +688,13 @@ SetActivePwrScheme(UINT uiID,
if (ReadPwrScheme(uiID,&tmp)) if (ReadPwrScheme(uiID,&tmp))
{ {
if (RegOpenKeyEx(HKEY_CURRENT_USER,szUserPowerConfigSubKey,(DWORD)NULL,KEY_ALL_ACCESS,&hKey) != ERROR_SUCCESS) if (RegOpenKeyEx(HKEY_CURRENT_USER,szUserPowerConfigSubKey,0,KEY_ALL_ACCESS,&hKey) != ERROR_SUCCESS)
{ {
return FALSE; return FALSE;
} }
swprintf(Buf,L"%i",uiID); swprintf(Buf,L"%i",uiID);
if (RegSetValueExW(hKey,szCurrentPowerPolicies,(DWORD)NULL,REG_SZ,(CONST BYTE *)Buf,strlenW(Buf)*sizeof(WCHAR)) == ERROR_SUCCESS) if (RegSetValueExW(hKey,szCurrentPowerPolicies,0,REG_SZ,(CONST BYTE *)Buf,strlenW(Buf)*sizeof(WCHAR)) == ERROR_SUCCESS)
{ {
RegCloseKey(hKey); RegCloseKey(hKey);
if ((lpGlobalPowerPolicy != NULL) || (lpPowerPolicy != NULL)) if ((lpGlobalPowerPolicy != NULL) || (lpPowerPolicy != NULL))
@ -759,7 +759,7 @@ WriteGlobalPwrPolicy(PGLOBAL_POWER_POLICY pGlobalPowerPolicy)
&hKey)) &hKey))
return FALSE; return FALSE;
if (RegSetValueExW(hKey,szPolicies,(DWORD)NULL,REG_BINARY,(const unsigned char *)&gupp,sizeof(GLOBAL_USER_POWER_POLICY)) == ERROR_SUCCESS) if (RegSetValueExW(hKey,szPolicies,0,REG_BINARY,(const unsigned char *)&gupp,sizeof(GLOBAL_USER_POWER_POLICY)) == ERROR_SUCCESS)
{ {
RegCloseKey(hKey); RegCloseKey(hKey);
@ -770,7 +770,7 @@ WriteGlobalPwrPolicy(PGLOBAL_POWER_POLICY pGlobalPowerPolicy)
&hKey)) &hKey))
return FALSE; return FALSE;
if (RegSetValueExW(hKey,szPolicies,(DWORD)NULL,REG_BINARY,(const unsigned char *)&gmpp,sizeof(GLOBAL_MACHINE_POWER_POLICY)) == ERROR_SUCCESS) if (RegSetValueExW(hKey,szPolicies,0,REG_BINARY,(const unsigned char *)&gmpp,sizeof(GLOBAL_MACHINE_POWER_POLICY)) == ERROR_SUCCESS)
{ {
RegCloseKey(hKey); RegCloseKey(hKey);
return TRUE; return TRUE;
@ -799,7 +799,7 @@ WriteProcessorPwrScheme(UINT ID,
if (RegCreateKey(HKEY_LOCAL_MACHINE,Buf, &hKey) == ERROR_SUCCESS) if (RegCreateKey(HKEY_LOCAL_MACHINE,Buf, &hKey) == ERROR_SUCCESS)
{ {
RegSetValueExW(hKey,szPolicies,(DWORD)NULL,REG_BINARY,(const unsigned char *)pMachineProcessorPowerPolicy,sizeof(MACHINE_PROCESSOR_POWER_POLICY)); RegSetValueExW(hKey,szPolicies,0,REG_BINARY,(const unsigned char *)pMachineProcessorPowerPolicy,sizeof(MACHINE_PROCESSOR_POWER_POLICY));
RegCloseKey(hKey); RegCloseKey(hKey);
return TRUE; return TRUE;
} }
@ -821,7 +821,7 @@ void SetLastID()
&hKey) != ERROR_SUCCESS) &hKey) != ERROR_SUCCESS)
return; return;
swprintf(Buf,L"%i",g_LastID); swprintf(Buf,L"%i",g_LastID);
RegSetValueExW(hKey,szLastID,(DWORD)NULL,REG_SZ,(CONST BYTE *)Buf,strlenW(Buf)*sizeof(WCHAR)); RegSetValueExW(hKey,szLastID,0,REG_SZ,(CONST BYTE *)Buf,strlenW(Buf)*sizeof(WCHAR));
RegCloseKey(hKey); RegCloseKey(hKey);
} }
@ -845,8 +845,8 @@ WritePwrScheme(PUINT puiID,
if (RegCreateKey(HKEY_CURRENT_USER,Buf,&hKey) == ERROR_SUCCESS) if (RegCreateKey(HKEY_CURRENT_USER,Buf,&hKey) == ERROR_SUCCESS)
{ {
RegSetValueExW(hKey,szName,(DWORD)NULL,REG_SZ,(const unsigned char *)lpszName,strlenW((const char *)lpszName)*sizeof(WCHAR)); RegSetValueExW(hKey,szName,0,REG_SZ,(const unsigned char *)lpszName,strlenW((const char *)lpszName)*sizeof(WCHAR));
RegSetValueExW(hKey,szDescription,(DWORD)NULL,REG_SZ,(const unsigned char *)lpszDescription,strlenW((const char *)lpszDescription)*sizeof(WCHAR)); RegSetValueExW(hKey,szDescription,0,REG_SZ,(const unsigned char *)lpszDescription,strlenW((const char *)lpszDescription)*sizeof(WCHAR));
RegCloseKey(hKey); RegCloseKey(hKey);
return WritePwrPolicy(puiID,pPowerPolicy); return WritePwrPolicy(puiID,pPowerPolicy);
} }
@ -1143,13 +1143,13 @@ BOOLEAN WINAPI WritePwrPolicy(PUINT puiID, PPOWER_POLICY pPowerPolicy)
if (RegCreateKey(HKEY_CURRENT_USER,Buf,&hKey) == ERROR_SUCCESS) if (RegCreateKey(HKEY_CURRENT_USER,Buf,&hKey) == ERROR_SUCCESS)
{ {
RegSetValueExW(hKey,szPolicies,(DWORD)NULL,REG_BINARY,(const unsigned char *)&pPowerPolicy->user,sizeof(USER_POWER_POLICY)); RegSetValueExW(hKey,szPolicies,0,REG_BINARY,(const unsigned char *)&pPowerPolicy->user,sizeof(USER_POWER_POLICY));
RegCloseKey(hKey); RegCloseKey(hKey);
swprintf(Buf,L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Controls Folder\\PowerCfg\\PowerPolicies\\%i",*puiID); swprintf(Buf,L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Controls Folder\\PowerCfg\\PowerPolicies\\%i",*puiID);
if (RegCreateKey(HKEY_LOCAL_MACHINE,Buf,&hKey) == ERROR_SUCCESS) if (RegCreateKey(HKEY_LOCAL_MACHINE,Buf,&hKey) == ERROR_SUCCESS)
{ {
RegSetValueExW(hKey,szPolicies,(DWORD)NULL,REG_BINARY,(const unsigned char *)&pPowerPolicy->mach,sizeof(MACHINE_POWER_POLICY)); RegSetValueExW(hKey,szPolicies,0,REG_BINARY,(const unsigned char *)&pPowerPolicy->mach,sizeof(MACHINE_POWER_POLICY));
RegCloseKey(hKey); RegCloseKey(hKey);
return TRUE; return TRUE;
} }

View file

@ -83,7 +83,7 @@ EnumProcessesCallback(IN PSYSTEM_PROCESS_INFORMATION CurrentProcess,
} }
/* return current process */ /* return current process */
*Context->lpidProcess = (DWORD)CurrentProcess->UniqueProcessId; *Context->lpidProcess = (DWORD_PTR)CurrentProcess->UniqueProcessId;
/* go to next array slot */ /* go to next array slot */
Context->lpidProcess++; Context->lpidProcess++;

View file

@ -18,11 +18,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#define LARGEINT_PROTOS
#define LargeIntegerDivide RtlLargeIntegerDivide
#define ExtendedIntegerMultiply RtlExtendedIntegerMultiply
#define ConvertUlongToLargeInteger RtlConvertUlongToLargeInteger
#define LargeIntegerSubtract RtlLargeIntegerSubtract
#define MAX_PROPERTY_SHEET_PAGE 32 #define MAX_PROPERTY_SHEET_PAGE 32
#define WIN32_NO_STATUS #define WIN32_NO_STATUS
@ -291,26 +286,25 @@ ChkDskDlg(
static static
LARGE_INTEGER ULONGLONG
GetFreeBytesShare(LARGE_INTEGER TotalNumberOfFreeBytes, LARGE_INTEGER TotalNumberOfBytes) GetFreeBytesShare(ULONGLONG TotalNumberOfFreeBytes, ULONGLONG TotalNumberOfBytes)
{ {
LARGE_INTEGER Temp, Result, Remainder; ULONGLONG Temp;
if (TotalNumberOfFreeBytes.QuadPart == 0LL) if (TotalNumberOfFreeBytes == 0LL)
{ {
return ConvertUlongToLargeInteger(0); return 0;
} }
Temp = LargeIntegerDivide(TotalNumberOfBytes, ConvertUlongToLargeInteger(100), &Remainder); Temp = TotalNumberOfBytes / 100;
if (Temp.QuadPart >= TotalNumberOfFreeBytes.QuadPart) if (Temp >= TotalNumberOfFreeBytes)
{ {
Result = ConvertUlongToLargeInteger(1); return 1;
}else }
{ else
Result = LargeIntegerDivide(TotalNumberOfFreeBytes, Temp, &Remainder); {
return TotalNumberOfFreeBytes / Temp;
} }
return Result;
} }
static static
@ -343,20 +337,20 @@ PaintStaticControls(HWND hwndDlg, LPDRAWITEMSTRUCT drawItem)
HBRUSH hMagBrush; HBRUSH hMagBrush;
RECT rect; RECT rect;
LONG horzsize; LONG horzsize;
LARGE_INTEGER Result; LONGLONG Result;
WCHAR szBuffer[20]; WCHAR szBuffer[20];
hBlueBrush = CreateSolidBrush(RGB(0, 0, 255)); hBlueBrush = CreateSolidBrush(RGB(0, 0, 255));
hMagBrush = CreateSolidBrush(RGB(255, 0, 255)); hMagBrush = CreateSolidBrush(RGB(255, 0, 255));
SendDlgItemMessageW(hwndDlg, 14006, WM_GETTEXT, 20, (LPARAM)szBuffer); SendDlgItemMessageW(hwndDlg, 14006, WM_GETTEXT, 20, (LPARAM)szBuffer);
Result.QuadPart = _wtoi(szBuffer); Result = _wtoi(szBuffer);
CopyRect(&rect, &drawItem->rcItem); CopyRect(&rect, &drawItem->rcItem);
horzsize = rect.right - rect.left; horzsize = rect.right - rect.left;
Result.QuadPart = (Result.QuadPart * horzsize) / 100; Result = (Result * horzsize) / 100;
rect.right = drawItem->rcItem.right - Result.QuadPart; rect.right = drawItem->rcItem.right - Result;
FillRect(drawItem->hDC, &rect, hBlueBrush); FillRect(drawItem->hDC, &rect, hBlueBrush);
rect.left = rect.right; rect.left = rect.right;
rect.right = drawItem->rcItem.right; rect.right = drawItem->rcItem.right;
@ -400,7 +394,7 @@ InitializeGeneralDriveDialog(HWND hwndDlg, WCHAR * szDrive)
if(GetDiskFreeSpaceExW(szDrive, &FreeBytesAvailable, (PULARGE_INTEGER)&TotalNumberOfBytes, (PULARGE_INTEGER)&TotalNumberOfFreeBytes)) if(GetDiskFreeSpaceExW(szDrive, &FreeBytesAvailable, (PULARGE_INTEGER)&TotalNumberOfBytes, (PULARGE_INTEGER)&TotalNumberOfFreeBytes))
{ {
WCHAR szResult[128]; WCHAR szResult[128];
LARGE_INTEGER Result; LONGLONG Result;
#ifdef IOCTL_DISK_GET_LENGTH_INFO_IMPLEMENTED #ifdef IOCTL_DISK_GET_LENGTH_INFO_IMPLEMENTED
HANDLE hVolume; HANDLE hVolume;
DWORD BytesReturned = 0; DWORD BytesReturned = 0;
@ -427,13 +421,13 @@ InitializeGeneralDriveDialog(HWND hwndDlg, WCHAR * szDrive)
if (StrFormatByteSizeW(FreeBytesAvailable.QuadPart, szResult, sizeof(szResult) / sizeof(WCHAR))) if (StrFormatByteSizeW(FreeBytesAvailable.QuadPart, szResult, sizeof(szResult) / sizeof(WCHAR)))
SendDlgItemMessageW(hwndDlg, 14005, WM_SETTEXT, (WPARAM)NULL, (LPARAM)szResult); SendDlgItemMessageW(hwndDlg, 14005, WM_SETTEXT, (WPARAM)NULL, (LPARAM)szResult);
Result = GetFreeBytesShare(TotalNumberOfFreeBytes, TotalNumberOfBytes); Result = GetFreeBytesShare(TotalNumberOfFreeBytes.QuadPart, TotalNumberOfBytes.QuadPart);
/* set free bytes percentage */ /* set free bytes percentage */
swprintf(szResult, L"%02d%%", Result.QuadPart); swprintf(szResult, L"%02d%%", Result);
SendDlgItemMessageW(hwndDlg, 14006, WM_SETTEXT, (WPARAM)0, (LPARAM)szResult); SendDlgItemMessageW(hwndDlg, 14006, WM_SETTEXT, (WPARAM)0, (LPARAM)szResult);
/* store used share amount */ /* store used share amount */
Result = LargeIntegerSubtract(ConvertUlongToLargeInteger(100), Result); Result = 100 - Result;
swprintf(szResult, L"%02d%%", Result.QuadPart); swprintf(szResult, L"%02d%%", Result);
SendDlgItemMessageW(hwndDlg, 14004, WM_SETTEXT, (WPARAM)0, (LPARAM)szResult); SendDlgItemMessageW(hwndDlg, 14004, WM_SETTEXT, (WPARAM)0, (LPARAM)szResult);
if (DriveType == DRIVE_FIXED) if (DriveType == DRIVE_FIXED)
{ {

View file

@ -536,7 +536,7 @@ SH_FileVersionInitialize(HWND hwndDlg, WCHAR *lpfilename)
SH_FileVersionQuerySetListText(hwndDlg, pBuf, wOriginalFilename, &str, lang, code); SH_FileVersionQuerySetListText(hwndDlg, pBuf, wOriginalFilename, &str, lang, code);
SH_FileVersionQuerySetListText(hwndDlg, pBuf, wProductName, &str, lang, code); SH_FileVersionQuerySetListText(hwndDlg, pBuf, wProductName, &str, lang, code);
SH_FileVersionQuerySetListText(hwndDlg, pBuf, wProductVersion, &str, lang, code); SH_FileVersionQuerySetListText(hwndDlg, pBuf, wProductVersion, &str, lang, code);
SetWindowLongPtr(hwndDlg, DWL_USER, (LONG)pBuf); SetWindowLongPtr(hwndDlg, DWL_USER, (LONG_PTR)pBuf);
/* select first item */ /* select first item */
hDlgCtrl = GetDlgItem(hwndDlg, 14009); hDlgCtrl = GetDlgItem(hwndDlg, 14009);

View file

@ -81,7 +81,7 @@ typedef struct {
#define MRUF_STRING_LIST 0 #define MRUF_STRING_LIST 0
typedef int (WINAPI *CREATEMRULISTPROCW)( typedef HANDLE (WINAPI *CREATEMRULISTPROCW)(
LPMRUINFO lpmi LPMRUINFO lpmi
); );
@ -105,7 +105,7 @@ static const IContextMenu2Vtbl cmvt;
static HRESULT WINAPI SHEOWCm_fnQueryInterface(IContextMenu2 *iface, REFIID riid, LPVOID *ppvObj); static HRESULT WINAPI SHEOWCm_fnQueryInterface(IContextMenu2 *iface, REFIID riid, LPVOID *ppvObj);
static ULONG WINAPI SHEOWCm_fnRelease(IContextMenu2 *iface); static ULONG WINAPI SHEOWCm_fnRelease(IContextMenu2 *iface);
int OpenMRUList(HKEY hKey); HANDLE OpenMRUList(HKEY hKey);
void LoadItemFromHKCU(POPEN_WITH_CONTEXT pContext, WCHAR * szExt); void LoadItemFromHKCU(POPEN_WITH_CONTEXT pContext, WCHAR * szExt);
void LoadItemFromHKCR(POPEN_WITH_CONTEXT pContext, WCHAR * szExt); void LoadItemFromHKCR(POPEN_WITH_CONTEXT pContext, WCHAR * szExt);
void InsertOpenWithItem(POPEN_WITH_CONTEXT pContext, WCHAR * szAppName); void InsertOpenWithItem(POPEN_WITH_CONTEXT pContext, WCHAR * szAppName);
@ -424,7 +424,7 @@ StoreNewSettings(LPCWSTR szFileName, WCHAR *szAppName)
WCHAR * pFileExt; WCHAR * pFileExt;
HKEY hKey; HKEY hKey;
LONG result; LONG result;
int hList; HANDLE hList;
/* get file extension */ /* get file extension */
pFileExt = wcsrchr(szFileName, L'.'); pFileExt = wcsrchr(szFileName, L'.');
@ -448,7 +448,7 @@ StoreNewSettings(LPCWSTR szFileName, WCHAR *szAppName)
} }
/* insert the entry */ /* insert the entry */
result = (*AddMRUStringW)((HANDLE)hList, szAppName); result = (*AddMRUStringW)(hList, szAppName);
/* close mru list */ /* close mru list */
(*FreeMRUListProc)((HANDLE)hList); (*FreeMRUListProc)((HANDLE)hList);
@ -623,7 +623,7 @@ ExecuteOpenItem(POPEN_ITEM_CONTEXT pItemContext, LPCWSTR FileName)
} }
static BOOL CALLBACK OpenWithProgrammDlg(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) static INT_PTR CALLBACK OpenWithProgrammDlg(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
{ {
LPMEASUREITEMSTRUCT lpmis; LPMEASUREITEMSTRUCT lpmis;
LPDRAWITEMSTRUCT lpdis; LPDRAWITEMSTRUCT lpdis;
@ -994,7 +994,7 @@ AddItemFromProgIDList(POPEN_WITH_CONTEXT pContext, HKEY hKey)
FIXME("implement me :)))\n"); FIXME("implement me :)))\n");
} }
int HANDLE
OpenMRUList(HKEY hKey) OpenMRUList(HKEY hKey)
{ {
MRUINFO info; MRUINFO info;
@ -1031,7 +1031,7 @@ OpenMRUList(HKEY hKey)
void void
AddItemFromMRUList(POPEN_WITH_CONTEXT pContext, HKEY hKey) AddItemFromMRUList(POPEN_WITH_CONTEXT pContext, HKEY hKey)
{ {
int hList; HANDLE hList;
int nItem, nCount, nResult; int nItem, nCount, nResult;
WCHAR szBuffer[MAX_PATH]; WCHAR szBuffer[MAX_PATH];

View file

@ -61,7 +61,7 @@ static const shvheader AdminToolsSFHeader[] = {
#define AdminToolsHELLVIEWCOLUMNS (4) #define AdminToolsHELLVIEWCOLUMNS (4)
#define _IPersistFolder2_Offset ((int)(&(((IGenericSFImpl*)0)->lpVtblPersistFolder2))) #define _IPersistFolder2_Offset ((INT_PTR)(&(((IGenericSFImpl*)0)->lpVtblPersistFolder2)))
#define _ICOM_THIS_From_IPersistFolder2(class, name) class* This = (class*)(((char*)name)-_IPersistFolder2_Offset); #define _ICOM_THIS_From_IPersistFolder2(class, name) class* This = (class*)(((char*)name)-_IPersistFolder2_Offset);
#define _IUnknown_(This) (IShellFolder*)&(This->lpVtbl) #define _IUnknown_(This) (IShellFolder*)&(This->lpVtbl)

View file

@ -41,9 +41,9 @@ static const IShellFolder2Vtbl vt_ShellFolder2;
static const IPersistFolder2Vtbl vt_NP_PersistFolder2; static const IPersistFolder2Vtbl vt_NP_PersistFolder2;
static const IContextMenu2Vtbl vt_ContextMenu2FontItem; static const IContextMenu2Vtbl vt_ContextMenu2FontItem;
#define _IPersistFolder2_Offset ((int)(&(((IGenericSFImpl*)0)->lpVtblPersistFolder2))) #define _IPersistFolder2_Offset ((INT_PTR)(&(((IGenericSFImpl*)0)->lpVtblPersistFolder2)))
#define _ICOM_THIS_From_IPersistFolder2(class, name) class* This = (class*)(((char*)name)-_IPersistFolder2_Offset); #define _ICOM_THIS_From_IPersistFolder2(class, name) class* This = (class*)(((char*)name)-_IPersistFolder2_Offset);
#define _IContextMenuFontItem_Offset ((int)(&(((IGenericSFImpl*)0)->lpVtblContextMenuFontItem))) #define _IContextMenuFontItem_Offset ((INT_PTR)(&(((IGenericSFImpl*)0)->lpVtblContextMenuFontItem)))
#define _ICOM_THIS_From_IContextMenu2FontItem(class, name) class* This = (class*)(((char*)name)-_IContextMenuFontItem_Offset); #define _ICOM_THIS_From_IContextMenu2FontItem(class, name) class* This = (class*)(((char*)name)-_IContextMenuFontItem_Offset);
#define _IUnknown_(This) (IUnknown*)&(This->lpVtbl) #define _IUnknown_(This) (IUnknown*)&(This->lpVtbl)

View file

@ -41,7 +41,7 @@ static const IShellFolder2Vtbl vt_ShellFolder2;
static const IPersistFolder2Vtbl vt_NP_PersistFolder2; static const IPersistFolder2Vtbl vt_NP_PersistFolder2;
#define _IPersistFolder2_Offset ((int)(&(((IGenericSFImpl*)0)->lpVtblPersistFolder2))) #define _IPersistFolder2_Offset ((INT_PTR)(&(((IGenericSFImpl*)0)->lpVtblPersistFolder2)))
#define _ICOM_THIS_From_IPersistFolder2(class, name) class* This = (class*)(((char*)name)-_IPersistFolder2_Offset); #define _ICOM_THIS_From_IPersistFolder2(class, name) class* This = (class*)(((char*)name)-_IPersistFolder2_Offset);
#define _IUnknown_(This) ((IUnknown*)&(This)->lpVtbl) #define _IUnknown_(This) ((IUnknown*)&(This)->lpVtbl)

View file

@ -35,7 +35,7 @@ typedef struct
LPITEMIDLIST pidl; LPITEMIDLIST pidl;
} IExtractIconWImpl; } IExtractIconWImpl;
#define _IExtractIconA_Offset ((int)(&(((IExtractIconWImpl*)0)->lpvtblExtractIconA))) #define _IExtractIconA_Offset ((INT_PTR)(&(((IExtractIconWImpl*)0)->lpvtblExtractIconA)))
#define _ICOM_THIS_From_IExtractIconA(class, name) class* This = (class*)(((char*)name)-_IExtractIconA_Offset); #define _ICOM_THIS_From_IExtractIconA(class, name) class* This = (class*)(((char*)name)-_IExtractIconA_Offset);
static shvheader PrinterSFHeader[] = { static shvheader PrinterSFHeader[] = {
@ -305,7 +305,7 @@ typedef struct {
int dwAttributes; /* attributes returned by GetAttributesOf FIXME: use it */ int dwAttributes; /* attributes returned by GetAttributesOf FIXME: use it */
} IGenericSFImpl; } IGenericSFImpl;
#define _IPersistFolder2_Offset ((int)(&(((IGenericSFImpl*)0)->lpVtblPersistFolder2))) #define _IPersistFolder2_Offset ((INT_PTR)(&(((IGenericSFImpl*)0)->lpVtblPersistFolder2)))
#define _ICOM_THIS_From_IPersistFolder2(class, name) class* This = (class*)(((char*)name)-_IPersistFolder2_Offset); #define _ICOM_THIS_From_IPersistFolder2(class, name) class* This = (class*)(((char*)name)-_IPersistFolder2_Offset);
#define _IUnknown_(This) (IShellFolder*)&(This->lpVtbl) #define _IUnknown_(This) (IShellFolder*)&(This->lpVtbl)

View file

@ -923,7 +923,7 @@ PopulateWdmDeviceList(
for ( i = 0; i < DeviceCount; ++ i ) for ( i = 0; i < DeviceCount; ++ i )
{ {
Result = ListSoundDevice(DeviceType, (PVOID) i, &SoundDevice); Result = ListSoundDevice(DeviceType, UlongToPtr(i), &SoundDevice);
if ( ! MMSUCCESS(Result) ) if ( ! MMSUCCESS(Result) )
{ {

View file

@ -34,7 +34,7 @@ SOCKET
WSPAPI WSPAPI
WPUCreateSocketHandle( WPUCreateSocketHandle(
IN DWORD dwCatalogEntryId, IN DWORD dwCatalogEntryId,
IN DWORD dwContext, IN DWORD_PTR dwContext,
OUT LPINT lpErrno); OUT LPINT lpErrno);
int int
@ -69,14 +69,14 @@ WSPAPI
WPUQueryBlockingCallback( WPUQueryBlockingCallback(
IN DWORD dwCatalogEntryId, IN DWORD dwCatalogEntryId,
OUT LPBLOCKINGCALLBACK FAR* lplpfnCallback, OUT LPBLOCKINGCALLBACK FAR* lplpfnCallback,
OUT LPDWORD lpdwContext, OUT PDWORD_PTR lpdwContext,
OUT LPINT lpErrno); OUT LPINT lpErrno);
INT INT
WSPAPI WSPAPI
WPUQuerySocketHandleContext( WPUQuerySocketHandleContext(
IN SOCKET s, IN SOCKET s,
OUT LPDWORD lpContext, OUT PDWORD_PTR lpContext,
OUT LPINT lpErrno); OUT LPINT lpErrno);
INT INT
@ -84,7 +84,7 @@ WSPAPI
WPUQueueApc( WPUQueueApc(
IN LPWSATHREADID lpThreadId, IN LPWSATHREADID lpThreadId,
IN LPWSAUSERAPC lpfnUserApc, IN LPWSAUSERAPC lpfnUserApc,
IN DWORD dwContext, IN DWORD_PTR dwContext,
OUT LPINT lpErrno); OUT LPINT lpErrno);
BOOL BOOL

View file

@ -111,8 +111,6 @@ typedef struct protoent WS_protoent;
#endif #endif
#endif #endif
#define CALLBACK __stdcall
#include "wine/winbase16.h" #include "wine/winbase16.h"
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"

View file

@ -72,7 +72,7 @@ WPUCreateEvent(OUT LPINT lpErrno)
SOCKET SOCKET
WSPAPI WSPAPI
WPUCreateSocketHandle(IN DWORD dwCatalogEntryId, WPUCreateSocketHandle(IN DWORD dwCatalogEntryId,
IN DWORD dwContext, IN DWORD_PTR dwContext,
OUT LPINT lpErrno) OUT LPINT lpErrno)
{ {
UNIMPLEMENTED UNIMPLEMENTED
@ -167,7 +167,7 @@ INT
WSPAPI WSPAPI
WPUQueryBlockingCallback(IN DWORD dwCatalogEntryId, WPUQueryBlockingCallback(IN DWORD dwCatalogEntryId,
OUT LPBLOCKINGCALLBACK FAR* lplpfnCallback, OUT LPBLOCKINGCALLBACK FAR* lplpfnCallback,
OUT LPDWORD lpdwContext, OUT PDWORD_PTR lpdwContext,
OUT LPINT lpErrno) OUT LPINT lpErrno)
{ {
UNIMPLEMENTED UNIMPLEMENTED
@ -182,7 +182,7 @@ WPUQueryBlockingCallback(IN DWORD dwCatalogEntryId,
INT INT
WSPAPI WSPAPI
WPUQuerySocketHandleContext(IN SOCKET s, WPUQuerySocketHandleContext(IN SOCKET s,
OUT LPDWORD lpContext, OUT PDWORD_PTR lpContext,
OUT LPINT lpErrno) OUT LPINT lpErrno)
{ {
UNIMPLEMENTED UNIMPLEMENTED
@ -198,7 +198,7 @@ INT
WSPAPI WSPAPI
WPUQueueApc(IN LPWSATHREADID lpThreadId, WPUQueueApc(IN LPWSATHREADID lpThreadId,
IN LPWSAUSERAPC lpfnUserApc, IN LPWSAUSERAPC lpfnUserApc,
IN DWORD dwContext, IN DWORD_PTR dwContext,
OUT LPINT lpErrno) OUT LPINT lpErrno)
{ {
UNIMPLEMENTED UNIMPLEMENTED

View file

@ -50,7 +50,7 @@
500 stub WEP 500 stub WEP
@ stdcall GetAddrInfoW(wstr wstr ptr ptr) # @ stdcall GetAddrInfoW(wstr wstr ptr ptr)
@ stdcall WSApSetPostRoutine(ptr) @ stdcall WSApSetPostRoutine(ptr)
@ stdcall WPUCompleteOverlappedRequest(long ptr long long ptr) @ stdcall WPUCompleteOverlappedRequest(long ptr long long ptr)
@ stdcall WSAAccept(long ptr ptr ptr long) @ stdcall WSAAccept(long ptr ptr ptr long)

View file

@ -176,7 +176,7 @@ WPUCloseSocketHandle(IN SOCKET s,
SOCKET SOCKET
WSPAPI WSPAPI
WPUCreateSocketHandle(IN DWORD dwCatalogEntryId, WPUCreateSocketHandle(IN DWORD dwCatalogEntryId,
IN DWORD dwContext, IN DWORD_PTR dwContext,
OUT LPINT lpErrno) OUT LPINT lpErrno)
{ {
UNIMPLEMENTED; UNIMPLEMENTED;
@ -277,7 +277,7 @@ WPUModifyIFSHandle(IN DWORD dwCatalogEntryId,
INT INT
WSPAPI WSPAPI
WPUQuerySocketHandleContext(IN SOCKET s, WPUQuerySocketHandleContext(IN SOCKET s,
OUT LPDWORD lpContext, OUT PDWORD_PTR lpContext,
OUT LPINT lpErrno) OUT LPINT lpErrno)
{ {
UNIMPLEMENTED; UNIMPLEMENTED;

View file

@ -173,7 +173,7 @@ INT
WSPAPI WSPAPI
WPUQueueApc(IN LPWSATHREADID lpThreadId, WPUQueueApc(IN LPWSATHREADID lpThreadId,
IN LPWSAUSERAPC lpfnUserApc, IN LPWSAUSERAPC lpfnUserApc,
IN DWORD dwContext, IN DWORD_PTR dwContext,
OUT LPINT lpErrno) OUT LPINT lpErrno)
{ {
UNIMPLEMENTED; UNIMPLEMENTED;

View file

@ -64,7 +64,7 @@ typedef struct _DSDRIVERDESC
DWORD dwFlags; DWORD dwFlags;
TCHAR szDesc[256]; TCHAR szDesc[256];
TCHAR szDrvname[256]; TCHAR szDrvname[256];
DWORD dnDevNode; DWORD_PTR dnDevNode;
WORD wVxdId; WORD wVxdId;
WORD wReserved; WORD wReserved;
ULONG ulDeviceNum; ULONG ulDeviceNum;
@ -120,7 +120,7 @@ typedef union _DSPROPERTY
GUID Set; GUID Set;
ULONG Id; ULONG Id;
ULONG Flags; ULONG Flags;
ULONG InstanceId; ULONG_PTR InstanceId;
} DUMMYSTRUCTNAME; } DUMMYSTRUCTNAME;
ULONGLONG Alignment; ULONGLONG Alignment;
} DSPROPERTY,*PDSPROPERTY; } DSPROPERTY,*PDSPROPERTY;

View file

@ -144,15 +144,15 @@ typedef BOOL (WSPAPI *LPWPUCLOSEEVENT)(WSAEVENT,LPINT);
typedef INT (WSPAPI *LPWPUCLOSESOCKETHANDLE)(SOCKET,LPINT); typedef INT (WSPAPI *LPWPUCLOSESOCKETHANDLE)(SOCKET,LPINT);
typedef INT (WSPAPI *LPWPUCLOSETHREAD)(LPWSATHREADID,LPINT); typedef INT (WSPAPI *LPWPUCLOSETHREAD)(LPWSATHREADID,LPINT);
typedef WSAEVENT (WSPAPI *LPWPUCREATEEVENT)(LPINT); typedef WSAEVENT (WSPAPI *LPWPUCREATEEVENT)(LPINT);
typedef SOCKET (WSPAPI *LPWPUCREATESOCKETHANDLE)(DWORD,DWORD,LPINT); typedef SOCKET (WSPAPI *LPWPUCREATESOCKETHANDLE)(DWORD,DWORD_PTR,LPINT);
typedef INT (WSPAPI *LPWPUFDISSET)(SOCKET,LPFD_SET); typedef INT (WSPAPI *LPWPUFDISSET)(SOCKET,LPFD_SET);
typedef INT (WSPAPI *LPWPUGETPROVIDERPATH)(LPGUID,LPWSTR,LPINT,LPINT); typedef INT (WSPAPI *LPWPUGETPROVIDERPATH)(LPGUID,LPWSTR,LPINT,LPINT);
typedef SOCKET (WSPAPI *LPWPUMODIFYIFSHANDLE)(DWORD,SOCKET,LPINT); typedef SOCKET (WSPAPI *LPWPUMODIFYIFSHANDLE)(DWORD,SOCKET,LPINT);
typedef INT (WSPAPI *LPWPUOPENCURRENTTHREAD)(LPWSATHREADID,LPINT); typedef INT (WSPAPI *LPWPUOPENCURRENTTHREAD)(LPWSATHREADID,LPINT);
typedef BOOL (WSPAPI *LPWPUPOSTMESSAGE)(HWND,UINT,WPARAM,LPARAM); typedef BOOL (WSPAPI *LPWPUPOSTMESSAGE)(HWND,UINT,WPARAM,LPARAM);
typedef INT (WSPAPI *LPWPUQUERYBLOCKINGCALLBACK)(DWORD,LPBLOCKINGCALLBACK FAR*,LPDWORD,LPINT); typedef INT (WSPAPI *LPWPUQUERYBLOCKINGCALLBACK)(DWORD,LPBLOCKINGCALLBACK FAR*,PDWORD_PTR,LPINT);
typedef INT (WSPAPI *LPWPUQUERYSOCKETHANDLECONTEXT)(SOCKET,LPDWORD,LPINT); typedef INT (WSPAPI *LPWPUQUERYSOCKETHANDLECONTEXT)(SOCKET,PDWORD_PTR,LPINT);
typedef INT (WSPAPI *LPWPUQUEUEAPC)(LPWSATHREADID,LPWSAUSERAPC,DWORD,LPINT); typedef INT (WSPAPI *LPWPUQUEUEAPC)(LPWSATHREADID,LPWSAUSERAPC,DWORD_PTR,LPINT);
typedef BOOL (WSPAPI *LPWPURESETEVENT)(WSAEVENT,LPINT); typedef BOOL (WSPAPI *LPWPURESETEVENT)(WSAEVENT,LPINT);
typedef BOOL (WSPAPI *LPWPUSETEVENT)(WSAEVENT,LPINT); typedef BOOL (WSPAPI *LPWPUSETEVENT)(WSAEVENT,LPINT);
typedef INT (WSAAPI *LPNSPSTARTUP)(LPGUID,LPNSP_ROUTINE); typedef INT (WSAAPI *LPNSPSTARTUP)(LPGUID,LPNSP_ROUTINE);