<?xml version="1.0" encoding="UTF-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  <CodeSnippet Format="1.0.0">
    <Header>
      <Title>定義要呼叫 Windows 應用程式開發介面的函式</Title>
      <Author>Microsoft Corporation</Author>
      <Description>定義要呼叫 Windows 應用程式開發介面的函式。</Description>
      <Keywords>
		  <Keyword>PInvoke</Keyword>
		  <Keyword>宣告</Keyword>
		  <Keyword>win32</Keyword>
      </Keywords>
      <Shortcut>WinApi</Shortcut>
    </Header>
    <Snippet>
      <Imports>
        <Import>
          <Namespace>Microsoft.VisualBasic</Namespace>
        </Import>
      </Imports>
      <Declarations>
        <Literal>
          <ID>dllName</ID>
          <Type/>
          <ToolTip>取代為包含應用程式開發介面方法的 .dll 檔案名稱。</ToolTip>
          <Default>"user32.dll"</Default>
        </Literal>
        <Literal>
          <ID>apiName</ID>
          <Type/>
          <ToolTip>取代為 .dll 檔中方法的名稱。</ToolTip>
          <Default>"MessageBox"</Default>
        </Literal>
        <Literal>
          <ID>parameters</ID>
          <Type/>
          <ToolTip>取代為 .dll 檔中宣告的參數。</ToolTip>
          <Default>ByVal hWnd As Integer, ByVal txt As String, ByVal caption As String, ByVal type As Integer</Default>
        </Literal>
        <Literal>
          <ID>matchingCall</ID>
          <Type/>
          <ToolTip>取代為您要由專案中呼叫的名稱。</ToolTip>
          <Default>Win32MessageBox</Default>
        </Literal>
      </Declarations>
      <Code Language="VB" Kind="method decl"><![CDATA[Declare Function $matchingCall$ Lib $dllName$ Alias $apiName$ ($parameters$) As Integer]]></Code>
    </Snippet>
  </CodeSnippet>
</CodeSnippets>
