({{, (RefLink[LinkPatterns, paclet:ref/LinkPatterns])[link]
gives a list of the patterns for which definitions were set up when the external program associated with the specified WSTP connection was installed. }})

OpenersNotesSection(Spacer1)Details

Each element of the list returned by (RefLink[LinkPatterns, paclet:ref/LinkPatterns]) is wrapped in (RefLink[HoldForm, paclet:ref/HoldForm]) to prevent evaluation.

The patterns in (RefLink[LinkPatterns, paclet:ref/LinkPatterns]) typically originate in :(RefLink[Pattern, paclet:ref/Pattern]): specifications in the WSTP templates used to create source code for the external program.

(RefLink[Uninstall, paclet:ref/Uninstall])[link] calls (RefLink[Unset, paclet:ref/Unset]) on the patterns in (RefLink[LinkPatterns, paclet:ref/LinkPatterns])[link].

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Set the directory:

SetDirectory[$InstallationDirectory<> "/SystemFiles/Links/MathLink/DeveloperKit/"<>$SystemID<>"/PrebuiltExamples/"];

Install an external WSTP-compatible program:

link=Install["addtwo"]

Get the complete set of (RefLink[LinkPatterns, paclet:ref/LinkPatterns]) installed:

LinkPatterns[link]

Get usage information about linked-in symbols:

?AddTwo

Use the new function:

AddTwo[1,2]

Terminate the external program:

Uninstall[link]

Reset to the original directory:

ResetDirectory[];

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[LinkObject, paclet:ref/LinkObject])  ▪  (RefLink[Install, paclet:ref/Install])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Setting Up External Functions to Be Called from the Wolfram Language, paclet:tutorial/SettingUpExternalFunctionsToBeCalledFromTheWolframLanguage])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Calling External Programs, paclet:guide/CallingExternalPrograms])}, {▪(RefLinkPlain[Installable WSTP Programs, paclet:guide/InstallableWSTPPrograms])}, {▪(RefLinkPlain[WSTP API, paclet:guide/WSTPAPI])}, {▪(RefLinkPlain[External Operations, paclet:guide/ExternalOperations])}})}})