24 references to NativeMethods
System.Workflow.Runtime (24)
DebugEngine\DebugController.cs (23)
103
if (!
NativeMethods
.RevertToSelf())
109
CommonAce adminsGroupAceForToken = new CommonAce(AceFlags.None, AceQualifier.AccessAllowed,
NativeMethods
.TOKEN_QUERY, new SecurityIdentifier(WellKnownSidType.BuiltinAdministratorsSid, null), false, null);
132
hProcess =
NativeMethods
.GetCurrentProcess();
134
if (!
NativeMethods
.OpenProcessToken(hProcess,
NativeMethods
.TOKEN_ALL_ACCESS, out hProcessToken))
141
NativeMethods
.GetKernelObjectSecurity(hProcessToken,
NativeMethods
.SECURITY_INFORMATION.DACL_SECURITY_INFORMATION, IntPtr.Zero, 0, out returnLength);
146
if (!
NativeMethods
.GetKernelObjectSecurity(hProcessToken,
NativeMethods
.SECURITY_INFORMATION.DACL_SECURITY_INFORMATION, securityDescriptorPtr, returnLength, out returnLength))
159
if (!
NativeMethods
.CloseHandle(hProcess))
163
if (!
NativeMethods
.CloseHandle(hProcessToken))
177
hProcess =
NativeMethods
.GetCurrentProcess();
179
if (!
NativeMethods
.OpenProcessToken(hProcess,
NativeMethods
.TOKEN_ALL_ACCESS, out hProcessToken))
185
NativeMethods
.GetKernelObjectSecurity(hProcessToken,
NativeMethods
.SECURITY_INFORMATION.DACL_SECURITY_INFORMATION, IntPtr.Zero, 0, out returnLength);
190
if (!
NativeMethods
.GetKernelObjectSecurity(hProcessToken,
NativeMethods
.SECURITY_INFORMATION.DACL_SECURITY_INFORMATION, securityDescriptorPtr, returnLength, out returnLength))
205
if (!
NativeMethods
.SetKernelObjectSecurity(hProcessToken,
NativeMethods
.SECURITY_INFORMATION.DACL_SECURITY_INFORMATION, securityDescriptorPtr))
211
if (!
NativeMethods
.CloseHandle(hProcess))
215
if (!
NativeMethods
.CloseHandle(hProcessToken))
836
this.controllerConduit.HandlerInvoked(this.programId, workflowCoreRuntime.InstanceID,
NativeMethods
.GetCurrentThreadId(), GetHierarchicalId(workflowCoreRuntime.CurrentActivity));
DebugEngine\DebugControllerThread.cs (1)
151
this.threadId =
NativeMethods
.GetCurrentThreadId();