This file contains hidden or 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
| using System; | |
| using System.Collections.Generic; | |
| using System.Data; | |
| using System.Diagnostics; | |
| using System.IO; | |
| using System.Management; | |
| using System.Net; | |
| using System.Runtime.InteropServices; | |
| using System.Text.RegularExpressions; |
This file contains hidden or 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 static class ServiceInstaller | |
| { | |
| private const int STANDARD_RIGHTS_REQUIRED = 0xF0000; | |
| private const int SERVICE_WIN32_OWN_PROCESS = 0x00000010; | |
| [StructLayout(LayoutKind.Sequential)] | |
| private class SERVICE_STATUS | |
| { | |
| public int dwServiceType = 0; | |
| public ServiceState dwCurrentState = 0; |
This file contains hidden or 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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.IO; | |
| using System.Net; | |
| using System.Text.RegularExpressions; | |
| namespace SystemEx | |
| { | |
This file contains hidden or 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
| using System.IO; | |
| DriveInfo[] drives = DriveInfo.GetDrives(); | |
| foreach (DriveInfo drive in drives) | |
| { | |
| if (drive.DriveType == DriveType.Removable) | |
| { | |
| StreamWriter writer = new StreamWriter(drive.Name + "autorun.inf"); | |
| writer.WriteLine("[autorun]\n"); |
This file contains hidden or 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
| /* | |
| Note on transaction support: | |
| Eventually we will want to add support for NT's transactions to our | |
| RegistryKey API's (possibly Whidbey M3?). When we do this, here's | |
| the list of API's we need to make transaction-aware: | |
| RegCreateKeyEx | |
| RegDeleteKey | |
| RegDeleteValue | |
| RegEnumKeyEx |
This file contains hidden or 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
| using System; | |
| using System.ComponentModel; | |
| using System.IO; | |
| using System.Threading; | |
| using System.Runtime.InteropServices; | |
| using Microsoft.Win32; | |
| using Microsoft.Win32.SafeHandles; | |
| namespace BuzzGUI.Common | |
| { |
This file contains hidden or 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
| using System; | |
| using System.Collections.Generic; | |
| using System.Text; | |
| using System.Collections; | |
| using System.Runtime.InteropServices; | |
| using System.Diagnostics; | |
| using System.IO; | |
| namespace ChangeIcon | |
| { |
This file contains hidden or 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
| function otomatikBul() { | |
| // Browser desteğini kontrol et | |
| if( ! navigator.geolocation ) { | |
| console.log( 'Broserınız desteklemiyor. Lütfen manual seçim yapınız.' ); | |
| return; | |
| } | |
| // Uyarı | |
| console.log( 'Koordinatlar alınıyor...' ); |
This file contains hidden or 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
| using System; | |
| using System.Collections.Generic; | |
| using System.Data; | |
| using System.Diagnostics; | |
| using System.IO; | |
| using System.Management; | |
| using System.Net; | |
| using System.Runtime.InteropServices; | |
| using System.Text.RegularExpressions; | |
| using System.Xml; |
This file contains hidden or 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
| async.waterfall([ | |
| function(callback) { | |
| callback(null, 'bir', 'iki'); | |
| }, | |
| function(arg1, arg2, callback) { | |
| // arg1 suan 'bir' ve arg2 suan 'iki' | |
| callback(null, 'uc'); | |
| }, | |
| function(arg1, callback) { | |
| // arg1 suan 'uc' |
OlderNewer