< Back

New-PinvokeCommand

Sat Jan 18, 2020 6:50 pm

NAME New-PinvokeCommand



SYNOPSIS

Creates a new PowerShell command that wraps the P\\Invoke module and function.





SYNTAX

New-PinvokeCommand [-Module] <String> [-Function] <String> [[-CommandName] <String>] [<CommonParameters>]





DESCRIPTION





PARAMETERS

-Module <String>



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Function <String>



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-CommandName <String>



Required? false

Position? 3

Default value $Function

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS





RELATED LINKS