у меня проблема, или код примера не верен, или какие-то свойства проекта не позволяют так испоьзовать dll
Код:
<DllImport("kernel32.dll")> _
Function CreateProcess( _
ByVal lpApplicationName As String, _
ByVal lpCommandLine As String, _
ByVal lpProcessAttributes As IntPtr, _
ByVal lpThreadAttributes As IntPtr, _
ByVal bInheritHandles As Boolean, _
ByVal dwCreationFlags As UInteger, _
ByVal lpEnvironment As IntPtr, _
ByVal lpCurrentDirectory As String, _
ByRef lpStartupInfo As STARTUPINFO, _
ByRef lpProcessInformation As PROCESS_INFORMATION) As Boolean
End Function
Че-т никак не пойму... в чем беда
Код:
<DllImport("KERNEL32.DLL", EntryPoint:="MoveFileW", SetLastError:=True,
CharSet:=CharSet.Unicode, ExactSpelling:=True,
CallingConvention:=CallingConvention.StdCall)>
Public Function MoveFile(
ByVal src As String,
ByVal dst As String) As Boolean
End Function
... без проблем