This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DECLARE @tbl TABLE ( | |
[name] NVARCHAR(100) | |
,depart NVARCHAR(100) | |
,email NVARCHAR(100)); | |
INSERT INTO @tbl | |
([name], depart, email) VALUES | |
('John', 'Depart1', 'john@mail.ru') | |
, ('Ann', 'Depart1', 'ann@mail.ru') | |
, ('Mike', 'Depart2', 'mike@mail.ru') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public partial class Form1 : Form | |
{ | |
[DllImport("KERNEL32.DLL", EntryPoint = "SetProcessWorkingSetSize", SetLastError = true, CallingConvention = CallingConvention.StdCall)] | |
internal static extern bool SetProcessWorkingSetSize(IntPtr pProcess, int dwMinimumWorkingSetSize, int dwMaximumWorkingSetSize); | |
[DllImport("KERNEL32.DLL", EntryPoint = "GetCurrentProcess", SetLastError = true, CallingConvention = CallingConvention.StdCall)] | |
internal static extern IntPtr GetCurrentProcess(); | |
private void ReNewBrowser() | |
{ |