Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
lonitra committed Jan 18, 2024
1 parent edc3582 commit c35aab3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ private static bool TryGetDragDropHelper<TDragHelper>(TDragHelper** dragDropHelp
throw new InvalidOperationException(SR.ThreadMustBeSTA);
}

HRESULT hr = PInvoke.CoCreateInstance(
HRESULT hr = PInvokeCore.CoCreateInstance(
in CLSID.DragDropHelper,
pUnkOuter: null,
CLSCTX.CLSCTX_INPROC_SERVER,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ await RunFormWithoutControlAsync(
private unsafe bool TryGetUIAutomation(IUIAutomation** uiAutomation)
{
Guid CLSID_CUIAutomation = new("FF48DBA4-60EF-4201-AA87-54103EEF594E");
HRESULT hr = PInvoke.CoCreateInstance(
HRESULT hr = PInvokeCore.CoCreateInstance(
in CLSID_CUIAutomation,
pUnkOuter: null,
CLSCTX.CLSCTX_INPROC_SERVER,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ private unsafe void ExecuteWithActivationContext(string applicationManifest, Act
private unsafe object CreateComObjectWithRawIErrorInfoUsage()
{
Guid clsidRawErrorInfoUsageTest = new("0ED8EE0D-22E3-49EA-850C-E69B20D1F296");
PInvoke.CoCreateInstance(
PInvokeCore.CoCreateInstance(
in clsidRawErrorInfoUsageTest,
pUnkOuter: null,
CLSCTX.CLSCTX_INPROC_SERVER,
Expand All @@ -133,7 +133,7 @@ private unsafe object CreateComObjectWithRawIErrorInfoUsage()
private unsafe object CreateComObjectWithStandardIErrorInfoUsage()
{
Guid clsidStandardErrorInfoUsageTest = new("EA1FCB3A-277C-4C79-AB85-E2ED3E858201");
PInvoke.CoCreateInstance(
PInvokeCore.CoCreateInstance(
in clsidStandardErrorInfoUsageTest,
pUnkOuter: null,
CLSCTX.CLSCTX_INPROC_SERVER,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public void ComNativeDescriptor_GetProperties_FromIPicture()
public void ComNativeDescriptor_GetProperties_FromActiveXMediaPlayerControl_ComInterop()
{
Guid guid = typeof(WindowsMediaPlayerClass).GUID;
HRESULT hr = PInvoke.CoCreateInstance(
HRESULT hr = PInvokeCore.CoCreateInstance(
in guid,
pUnkOuter: null,
CLSCTX.CLSCTX_INPROC_SERVER,
Expand Down

0 comments on commit c35aab3

Please # to comment.