* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
+#define WIN32_NO_STATUS
+#define _INC_WINDOWS
+
#define COBJMACROS
-#include "config.h"
+#include <config.h>
#include <stdarg.h>
-#include "windef.h"
-#include "winbase.h"
-#include "winuser.h"
-#include "ole2.h"
-#include "wuapi.h"
+#include <windef.h>
+#include <winbase.h>
+//#include "winuser.h"
+#include <ole2.h>
+#include <wuapi.h>
-#include "wine/debug.h"
+#include <wine/debug.h>
WINE_DEFAULT_DEBUG_CHANNEL(wuapi);
typedef struct _automatic_updates
{
- const struct IAutomaticUpdatesVtbl *vtbl;
+ IAutomaticUpdates IAutomaticUpdates_iface;
LONG refs;
} automatic_updates;
static inline automatic_updates *impl_from_IAutomaticUpdates( IAutomaticUpdates *iface )
{
- return (automatic_updates *)((char*)iface - FIELD_OFFSET( automatic_updates, vtbl ));
+ return CONTAINING_RECORD(iface, automatic_updates, IAutomaticUpdates_iface);
}
static ULONG WINAPI automatic_updates_AddRef(
IAutomaticUpdates *This )
{
FIXME("\n");
- return E_NOTIMPL;
+ return S_OK;
}
static HRESULT WINAPI automatic_updates_Resume(
IAutomaticUpdates *This )
{
FIXME("\n");
- return E_NOTIMPL;
+ return S_OK;
}
static HRESULT WINAPI automatic_updates_ShowSettingsDialog(
updates = HeapAlloc( GetProcessHeap(), 0, sizeof(*updates) );
if (!updates) return E_OUTOFMEMORY;
- updates->vtbl = &automatic_updates_vtbl;
+ updates->IAutomaticUpdates_iface.lpVtbl = &automatic_updates_vtbl;
updates->refs = 1;
- *ppObj = &updates->vtbl;
+ *ppObj = &updates->IAutomaticUpdates_iface;
TRACE("returning iface %p\n", *ppObj);
return S_OK;