『In the declaration of WriteFile, declare lpNumberOfBytesWritten as ref int, so you don't have to marshal the int variable back through the pointer. That should cause the call to be made correctly.』
Protected Declare Auto Function WriteFile Lib "kernel32.dll" ( _ ByVal hFile As IntPtr, ByVal Buffer As Byte(), _ ByVal nNumberOfBytesToWrite As Integer, _ ByRef lpNumberOfBytesWritten As Integer, _ ByRef lpOverlapped As OVERLAPPED) As Integer 拜託你,趕快幫我解答~😭
共
266
則