¡@

Home 

c# Programming Glossary: extern

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

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

How to simulate Mouse Click in C#?

http://stackoverflow.com/questions/2416748/how-to-simulate-mouse-click-in-c

CallingConvention CallingConvention.StdCall public static extern void mouse_event uint dwFlags uint dx uint dy uint cButtons..

Natural Sort Order in C#

http://stackoverflow.com/questions/248603/natural-sort-order-in-c-sharp

shlwapi.dll CharSet CharSet.Unicode private static extern int StrCmpLogicalW string psz1 string psz2 Michael Kaplan has.. shlwapi.dll CharSet CharSet.Unicode public static extern int StrCmpLogicalW string psz1 string psz2 public sealed class..

Accessing Password Protected Network Drives in Windows in C#?

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

true return MarshalAs UnmanagedType.Bool internal static extern bool LogonUser string userName string domain string password.. true return MarshalAs UnmanagedType.Bool internal static extern bool DuplicateToken IntPtr existingTokenHandle SecurityImpersonationLevel.. true return MarshalAs UnmanagedType.Bool internal static extern bool CloseHandle IntPtr handle followed by IntPtr token if NativeMethods.LogonUser..

Kill child process when parent process is killed

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

DllImport kernel32.dll CharSet CharSet.Unicode static extern IntPtr CreateJobObject object a string lpName DllImport kernel32.dll.. object a string lpName DllImport kernel32.dll static extern bool SetInformationJobObject IntPtr hJob JobObjectInfoType infoType.. DllImport kernel32.dll SetLastError true static extern bool AssignProcessToJobObject IntPtr job IntPtr process private..

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

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

return MarshalAs UnmanagedType.Bool private static extern bool IsWow64Process In IntPtr hProcess Out out bool wow64Process..

How do I suspend painting for a control and its children?

http://stackoverflow.com/questions/487661/how-do-i-suspend-painting-for-a-control-and-its-children

class DrawingControl DllImport user32.dll public static extern int SendMessage IntPtr hWnd Int32 wMsg bool wParam Int32 lParam..

Developing Internet Explorer Extensions?

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

that when clicked popped a menu up that contains links to external sites. I would also like to access the DOM and plant javascript.. Software MyIEExtension DllImport ieframe.dll public static extern int IEGetWriteableHKCU ref IntPtr phKey private static void..

Clipboard event C#

http://stackoverflow.com/questions/621577/clipboard-event-c-sharp

DllImport User32.dll CharSet CharSet.Auto public static extern IntPtr SetClipboardViewer IntPtr hWndNewViewer See this article..

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

class Win32API DllImport ntdll.dll public static extern int NtQueryObject IntPtr ObjectHandle int ObjectInformationClass.. DllImport kernel32.dll SetLastError true public static extern uint QueryDosDevice string lpDeviceName StringBuilder lpTargetPath.. int ucchMax DllImport ntdll.dll public static extern uint NtQuerySystemInformation int SystemInformationClass IntPtr..