Skip to content

Unable to Marshal function parameters #14

@jaredcatkinson

Description

@jaredcatkinson

PSReflect does not have the ability to use the MarshalAs attribute on function parameters.

Below is an example P/Invoke definition where the MarshalAs attribute is used on the pgActionID parameter:

[DllImport("wintrust.dll", ExactSpelling = true, SetLastError = false, CharSet = CharSet.Unicode)]
static extern WinVerifyTrustResult WinVerifyTrust(
	[In] IntPtr hwnd,
	[In] [MarshalAs(UnmanagedType.LPStruct)] Guid pgActionID, 
	[In] WinTrustData pWVTData
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions