¡@

Home 

c# Programming Glossary: marshalas

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

Marshal.SizeOf typeof NativeMethods.MEMORYSTATUSEX return MarshalAs UnmanagedType.Bool DllImport kernel32.dll CharSet CharSet.Auto..

Win32 API function to programmatically enable/disable device

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

CallingConvention.Winapi SetLastError true return MarshalAs UnmanagedType.Bool public static extern bool SetupDiCallClassInstaller.. CallingConvention.Winapi SetLastError true return MarshalAs UnmanagedType.Bool public static extern bool SetupDiEnumDeviceInfo.. SetupDiGetClassDevs In ref Guid classGuid MarshalAs UnmanagedType.LPWStr string enumerator IntPtr hwndParent SetupDiGetClassDevsFlags..

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

user32.dll CharSet CharSet.Auto SetLastError true return MarshalAs UnmanagedType.Bool public static extern bool UnhookWindowsHookEx..

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.. CharSet CharSet.Unicode SetLastError true return MarshalAs UnmanagedType.Bool internal static extern bool DuplicateToken.. CharSet CharSet.Unicode SetLastError true return MarshalAs UnmanagedType.Bool internal static extern bool CloseHandle IntPtr..

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

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

true CallingConvention CallingConvention.Winapi return MarshalAs UnmanagedType.Bool private static extern bool IsWow64Process..

Developing Internet Explorer Extensions?

http://stackoverflow.com/questions/5643819/developing-internet-explorer-extensions

public interface IObjectWithSite PreserveSig int SetSite MarshalAs UnmanagedType.IUnknown object site PreserveSig int GetSite ref.. object site PreserveSig int GetSite ref Guid guid MarshalAs UnmanagedType.IUnknown out IntPtr ppvSite StructLayout LayoutKind.Sequential.. uint cmdtextf public uint cwActual public uint cwBuf MarshalAs UnmanagedType.ByValTStr SizeConst 100 public char rgwz StructLayout..

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

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