宣言部に Public Structure SECURITY_ATTRIBUTES Public nLength As Integer Public lpSecurityDescriptor As Integer Public bInheritHandle As Integer End Structure
Declare Auto Function CreateNamedPipe Lib "kernel32.dll" Alias "CreateNamedPipeA" ( _ ByVal lpName As String, _ ByVal dwOpenMode As Integer, _ ByVal dwPipeMode As Integer, _ ByVal nMaxInstances As Integer, _ ByVal nOutBufferSize As Integer, _ ByVal nInBufferSize As Integer, _ ByVal nDefaultTimeOut As Integer, _ ByRef lpSecurityAttributes As SECURITY_ATTRIBUTES _ ) As Integer