Skip to content

Commit 01de453

Browse files
committed
Fixed typo.
1 parent 5246361 commit 01de453

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

NtApiDotNet/Win32/Win32NativeMethods.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public enum CreateFileFlagsAndAttributes : uint
106106
SQoSPresent = 0x00100000,
107107
OpenReparsePoint = 0x00200000,
108108
PosixSemantics = 0x01000000,
109-
BackupDemantics = 0x02000000,
109+
BackupSemantics = 0x02000000,
110110
DeleteOnClose = 0x04000000,
111111
SequentialScan = 0x08000000,
112112
RandomAccess = 0x10000000,
@@ -1018,6 +1018,13 @@ internal static extern bool EnumServicesStatusEx(
10181018
string pszGroupName
10191019
);
10201020

1021+
[DllImport("Advapi32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
1022+
internal static extern bool StartService(
1023+
SafeServiceHandle hService,
1024+
int dwNumServiceArgs,
1025+
[MarshalAs(UnmanagedType.LPArray)] string[] lpServiceArgVectors
1026+
);
1027+
10211028
[DllImport("kernel32.dll", SetLastError = true)]
10221029
internal static extern bool InitializeProcThreadAttributeList(
10231030
IntPtr lpAttributeList,

0 commit comments

Comments
 (0)