¡@

Home 

c# Programming Glossary: iphandle

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

var strObjectName var nLength 0 IntPtr ipTemp ipHandle if Win32API.DuplicateHandle ipProcessHwnd systemHandleInformation.Handle.. Win32API.GetCurrentProcess out ipHandle 0 false Win32API.DUPLICATE_SAME_ACCESS return null IntPtr ipBasic.. Marshal.SizeOf objBasic Win32API.NtQueryObject ipHandle int Win32API.ObjectInformationClass.ObjectBasicInformation ipBasic..