¡@

Home 

c# Programming Glossary: setlasterror

How do you get total amount of RAM the computer has?

http://stackoverflow.com/questions/105031/how-do-you-get-total-amount-of-ram-the-computer-has

DllImport kernel32.dll CharSet CharSet.Auto SetLastError true static extern bool GlobalMemoryStatusEx In Out MEMORYSTATUSEX..

Win32 API function to programmatically enable/disable device

http://stackoverflow.com/questions/1438371/win32-api-function-to-programmatically-enable-disable-device

setupapi CallingConvention CallingConvention.Winapi SetLastError true return MarshalAs UnmanagedType.Bool public static extern.. setupapi CallingConvention CallingConvention.Winapi SetLastError true return MarshalAs UnmanagedType.Bool public static extern.. CallingConvention.Winapi CharSet CharSet.Unicode SetLastError true public static extern SafeDeviceInfoSetHandle SetupDiGetClassDevs..

Using global keyboard hook (WH_KEYBOARD_LL) in WPF / C#

http://stackoverflow.com/questions/1639331/using-global-keyboard-hook-wh-keyboard-ll-in-wpf-c-sharp

0 DllImport user32.dll CharSet CharSet.Auto SetLastError true public static extern IntPtr SetWindowsHookEx int idHook.. uint dwThreadId DllImport user32.dll CharSet CharSet.Auto SetLastError true return MarshalAs UnmanagedType.Bool public static extern.. IntPtr hhk DllImport user32.dll CharSet CharSet.Auto SetLastError true public static extern IntPtr CallNextHookEx IntPtr hhk int..

Accessing Password Protected Network Drives in Windows in C#?

http://stackoverflow.com/questions/2563724/accessing-password-protected-network-drives-in-windows-in-c

returns DllImport advapi32.dll CharSet CharSet.Unicode SetLastError true return MarshalAs UnmanagedType.Bool internal static extern.. returns DllImport advapi32.dll CharSet CharSet.Unicode SetLastError true return MarshalAs UnmanagedType.Bool internal static extern.. returns DllImport kernel32.dll CharSet CharSet.Unicode SetLastError true return MarshalAs UnmanagedType.Bool internal static extern..

Kill child process when parent process is killed

http://stackoverflow.com/questions/3342941/kill-child-process-when-parent-process-is-killed

uint cbJobObjectInfoLength DllImport kernel32.dll SetLastError true static extern bool AssignProcessToJobObject IntPtr job.. process with the job. For example DllImport user32.dll SetLastError true public static extern uint GetWindowThreadProcessId IntPtr..

How to detect Windows 64-bit platform with .NET?

http://stackoverflow.com/questions/336633/how-to-detect-windows-64-bit-platform-with-net

is64BitProcess InternalCheckIsWow64 DllImport kernel32.dll SetLastError true CallingConvention CallingConvention.Winapi return MarshalAs..

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

ref int returnLength DllImport kernel32.dll SetLastError true public static extern uint QueryDosDevice string lpDeviceName.. int CloseHandle IntPtr hObject DllImport kernel32.dll SetLastError true return MarshalAs UnmanagedType.Bool public static extern..