¡@

Home 

c# Programming Glossary: nlength

Using C#, how does one figure out what process locked a file?

http://stackoverflow.com/questions/860656/using-c-how-does-one-figure-out-what-process-locked-a-file

Win32API.OBJECT_NAME_INFORMATION var strObjectName var nLength 0 IntPtr ipTemp ipHandle if Win32API.DuplicateHandle ipProcessHwnd.. ipBasic Marshal.SizeOf objBasic ref nLength objBasic Win32API.OBJECT_BASIC_INFORMATION Marshal.PtrToStructure.. ipObjectType Marshal.AllocHGlobal objBasic.TypeInformationLength nLength objBasic.TypeInformationLength this one never locks.....