¡@

Home 

c# Programming Glossary: unmanagedtype.bool

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

typeof NativeMethods.MEMORYSTATUSEX return MarshalAs UnmanagedType.Bool DllImport kernel32.dll CharSet CharSet.Auto SetLastError true..

Detect if running as Administrator with or without elevated privileges?

http://stackoverflow.com/questions/1220213/detect-if-running-as-administrator-with-or-without-elevated-privileges

DllImport advapi32.dll SetLastError true return MarshalAs UnmanagedType.Bool static extern bool OpenProcessToken IntPtr ProcessHandle UInt32..

Reducing memory usage of .NET applications?

http://stackoverflow.com/questions/1343374/reducing-memory-usage-of-net-applications

UIntPtr 0xFFFFFFFF DllImport kernel32.dll return MarshalAs UnmanagedType.Bool private static extern bool SetProcessWorkingSetSize IntPtr process..

How to resolve a .lnk in c#

http://stackoverflow.com/questions/139010/how-to-resolve-a-lnk-in-c-sharp

UnmanagedType.LPWStr string pszFileName In MarshalAs UnmanagedType.Bool bool fRemember PreserveSig void SaveCompleted In MarshalAs UnmanagedType.LPWStr..

Win32 API function to programmatically enable/disable device

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

SetLastError true return MarshalAs UnmanagedType.Bool public static extern bool SetupDiCallClassInstaller DiFunction.. SetLastError true return MarshalAs UnmanagedType.Bool public static extern bool SetupDiEnumDeviceInfo SafeDeviceInfoSetHandle.. CharSet CharSet.Unicode SetLastError true return MarshalAs UnmanagedType.Bool public static extern bool SetupDiGetDeviceInstanceId SafeDeviceInfoSetHandle..

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

CharSet CharSet.Auto SetLastError true return MarshalAs UnmanagedType.Bool public static extern bool UnhookWindowsHookEx IntPtr hhk DllImport..

How to know a process is 32-bit or 64-bit programmatically

http://stackoverflow.com/questions/1953377/how-to-know-a-process-is-32-bit-or-64-bit-programmatically

CallingConvention.Winapi return MarshalAs UnmanagedType.Bool internal static extern bool IsWow64Process In IntPtr process..

Accessing Password Protected Network Drives in Windows in C#?

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

CharSet CharSet.Unicode SetLastError true return MarshalAs UnmanagedType.Bool internal static extern bool LogonUser string userName string.. CharSet CharSet.Unicode SetLastError true return MarshalAs UnmanagedType.Bool internal static extern bool DuplicateToken IntPtr existingTokenHandle.. CharSet CharSet.Unicode SetLastError true return MarshalAs UnmanagedType.Bool internal static extern bool CloseHandle IntPtr handle followed..

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

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

CallingConvention.Winapi return MarshalAs UnmanagedType.Bool private static extern bool IsWow64Process In IntPtr hProcess..

Get URL from browser to C# application

http://stackoverflow.com/questions/3579649/get-url-from-browser-to-c-sharp-application

public string szText DllImport user32.dll return MarshalAs UnmanagedType.Bool public static extern bool SetForegroundWindow IntPtr hWnd DllImport.. int nMaxCount DllImport user32.dll return MarshalAs UnmanagedType.Bool static extern bool EnumChildWindows IntPtr hwndParent EnumWindowsProc.. hwnd IntPtr lParam DllImport user32.Dll return MarshalAs UnmanagedType.Bool public static extern bool EnumChildWindows IntPtr parentHandle..

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

OpenProcess ProcessAccessFlags dwDesiredAccess MarshalAs UnmanagedType.Bool bool bInheritHandle int dwProcessId DllImport kernel32.dll.. DllImport kernel32.dll SetLastError true return MarshalAs UnmanagedType.Bool public static extern bool DuplicateHandle IntPtr hSourceProcessHandle.. out IntPtr lpTargetHandle uint dwDesiredAccess MarshalAs UnmanagedType.Bool bool bInheritHandle uint dwOptions DllImport kernel32.dll ..