コード例 #1
0
 public static extern BOOL DuplicateHandle(
     HANDLE hSourceProcessHandle,
     HANDLE hSourceHandle,
     HANDLE hTargetProcessHandle,
     HANDLE *lpTargetHandle,
     DWORD dwDesiredAccess,
     BOOL bInheritHandle,
     DWORD dwOptions
     );
コード例 #2
0
 static extern DWORD WlanOpenHandle(
     DWORD dwClientVersion,
     void *pReserved,
     int *pdwNegotiatedVersion,
     HANDLE *phClientHandle
     );
コード例 #3
0
 public static extern uint NotifyRouteChange([NativeTypeName("PHANDLE")] HANDLE *Handle, [NativeTypeName("LPOVERLAPPED")] OVERLAPPED *overlapped);
コード例 #4
0
 public static extern HRESULT DCompositionCreateSurfaceHandle([NativeTypeName("DWORD")] uint desiredAccess, SECURITY_ATTRIBUTES *securityAttributes, HANDLE *surfaceHandle);
コード例 #5
0
 public HRESULT CreateSharedHandle(ID3D12DeviceChild *pObject, [NativeTypeName("const SECURITY_ATTRIBUTES *")] SECURITY_ATTRIBUTES *pAttributes, [NativeTypeName("DWORD")] uint Access, [NativeTypeName("LPCWSTR")] ushort *Name, HANDLE *pHandle)
 {
     return(((delegate * unmanaged <ID3D12Device1 *, ID3D12DeviceChild *, SECURITY_ATTRIBUTES *, uint, ushort *, HANDLE *, int>)(lpVtbl[31]))((ID3D12Device1 *)Unsafe.AsPointer(ref this), pObject, pAttributes, Access, Name, pHandle));
 }
コード例 #6
0
 public static extern BOOL DuplicateHandle(HANDLE hSourceProcessHandle, HANDLE hSourceHandle, HANDLE hTargetProcessHandle, [NativeTypeName("LPHANDLE")] HANDLE *lpTargetHandle, [NativeTypeName("DWORD")] uint dwDesiredAccess, BOOL bInheritHandle, [NativeTypeName("DWORD")] uint dwOptions);
コード例 #7
0
 public static extern HRESULT CoWaitForMultipleObjects([NativeTypeName("DWORD")] uint dwFlags, [NativeTypeName("DWORD")] uint dwTimeout, [NativeTypeName("ULONG")] uint cHandles, [NativeTypeName("const HANDLE *")] HANDLE *pHandles, [NativeTypeName("LPDWORD")] uint *lpdwindex);
コード例 #8
0
 public void GetCryptoSessionHandle(HANDLE *pCryptoSessionHandle)
 {
     ((delegate * unmanaged <ID3D11CryptoSession *, HANDLE *, void>)(lpVtbl[11]))((ID3D11CryptoSession *)Unsafe.AsPointer(ref this), pCryptoSessionHandle);
 }
コード例 #9
0
 public HRESULT SetEventHandle(HANDLE *ph)
 {
     return(((delegate * unmanaged <ISynchronizeEvent *, HANDLE *, int>)(lpVtbl[4]))((ISynchronizeEvent *)Unsafe.AsPointer(ref this), ph));
 }
コード例 #10
0
 public HRESULT GetDriverHandle(HANDLE *pDriverHandle)
 {
     return(((delegate * unmanaged <ID3D11VideoDecoder *, HANDLE *, int>)(lpVtbl[8]))((ID3D11VideoDecoder *)Unsafe.AsPointer(ref this), pDriverHandle));
 }
コード例 #11
0
 public HRESULT Create(HANDLE_ACCESS_OPTIONS accessOptions, HANDLE_SHARING_OPTIONS sharingOptions, HANDLE_OPTIONS options, IOplockBreakingHandler *oplockBreakingHandler, HANDLE *interopHandle)
 {
     return(((delegate * unmanaged <IStorageItemHandleAccess *, HANDLE_ACCESS_OPTIONS, HANDLE_SHARING_OPTIONS, HANDLE_OPTIONS, IOplockBreakingHandler *, HANDLE *, int>)(lpVtbl[3]))((IStorageItemHandleAccess *)Unsafe.AsPointer(ref this), accessOptions, sharingOptions, options, oplockBreakingHandler, interopHandle));
 }
コード例 #12
0
 public static extern BOOL DuplicateTokenEx(HANDLE hExistingToken, [NativeTypeName("DWORD")] uint dwDesiredAccess, [NativeTypeName("LPSECURITY_ATTRIBUTES")] SECURITY_ATTRIBUTES *lpTokenAttributes, SECURITY_IMPERSONATION_LEVEL ImpersonationLevel, TOKEN_TYPE TokenType, [NativeTypeName("PHANDLE")] HANDLE *phNewToken);
コード例 #13
0
 public static extern BOOL DuplicateToken(HANDLE ExistingTokenHandle, SECURITY_IMPERSONATION_LEVEL ImpersonationLevel, [NativeTypeName("PHANDLE")] HANDLE *DuplicateTokenHandle);
コード例 #14
0
 public static extern BOOL CreateRestrictedToken(HANDLE ExistingTokenHandle, [NativeTypeName("DWORD")] uint Flags, [NativeTypeName("DWORD")] uint DisableSidCount, [NativeTypeName("PSID_AND_ATTRIBUTES")] SID_AND_ATTRIBUTES *SidsToDisable, [NativeTypeName("DWORD")] uint DeletePrivilegeCount, [NativeTypeName("PLUID_AND_ATTRIBUTES")] LUID_AND_ATTRIBUTES *PrivilegesToDelete, [NativeTypeName("DWORD")] uint RestrictedSidCount, [NativeTypeName("PSID_AND_ATTRIBUTES")] SID_AND_ATTRIBUTES *SidsToRestrict, [NativeTypeName("PHANDLE")] HANDLE *NewTokenHandle);
コード例 #15
0
 public void GetChannelHandle(HANDLE *pChannelHandle)
 {
     ((delegate * unmanaged <ID3D11AuthenticatedChannel *, HANDLE *, void>)(lpVtbl[9]))((ID3D11AuthenticatedChannel *)Unsafe.AsPointer(ref this), pChannelHandle);
 }
コード例 #16
0
 public HRESULT GetVideoSwapchainHandle(HANDLE *phSwapchain)
 {
     return(((delegate * unmanaged <IMFMediaEngineEx *, HANDLE *, int>)(lpVtbl[72]))((IMFMediaEngineEx *)Unsafe.AsPointer(ref this), phSwapchain));
 }
コード例 #17
0
ファイル: Windows.cs プロジェクト: nasa03/ComputeSharp
 public static extern BOOL RegisterWaitForSingleObject([NativeTypeName("PHANDLE")] HANDLE *phNewWaitObject, HANDLE hObject, [NativeTypeName("WAITORTIMERCALLBACK")] void *Callback, [NativeTypeName("PVOID")] void *Context, [NativeTypeName("ULONG")] uint dwMilliseconds, [NativeTypeName("ULONG")] uint dwFlags);
コード例 #18
0
 public HRESULT CreateSharedHandle(IInspectable *pObject, [NativeTypeName("const SECURITY_ATTRIBUTES *")] SECURITY_ATTRIBUTES *pSecurityAttributes, [NativeTypeName("DWORD")] uint Access, HSTRING Name, HANDLE *pHandle)
 {
     return(((delegate * unmanaged <IDisplayDeviceInterop *, IInspectable *, SECURITY_ATTRIBUTES *, uint, HSTRING, HANDLE *, int>)(lpVtbl[3]))((IDisplayDeviceInterop *)Unsafe.AsPointer(ref this), pObject, pSecurityAttributes, Access, Name, pHandle));
 }
コード例 #19
0
 public static extern uint GetProcessHeaps([NativeTypeName("DWORD")] uint NumberOfHeaps, [NativeTypeName("PHANDLE")] HANDLE *ProcessHeaps);
コード例 #20
0
 public static extern uint DavAddConnection(HANDLE *ConnectionHandle, [NativeTypeName("LPCWSTR")] ushort *RemoteName, [NativeTypeName("LPCWSTR")] ushort *UserName, [NativeTypeName("LPCWSTR")] ushort *Password, [NativeTypeName("PBYTE")] byte *ClientCert, [NativeTypeName("DWORD")] uint CertSize);
コード例 #21
0
 public static extern HRESULT WslLaunch([NativeTypeName("PCWSTR")] ushort *distributionName, [NativeTypeName("PCWSTR")] ushort *command, BOOL useCurrentWorkingDirectory, HANDLE stdIn, HANDLE stdOut, HANDLE stdErr, HANDLE *process);
コード例 #22
0
 public HRESULT Create([NativeTypeName("LPCWSTR")] ushort *fileName, HANDLE_CREATION_OPTIONS creationOptions, HANDLE_ACCESS_OPTIONS accessOptions, HANDLE_SHARING_OPTIONS sharingOptions, HANDLE_OPTIONS options, IOplockBreakingHandler *oplockBreakingHandler, HANDLE *interopHandle)
 {
     return(((delegate * unmanaged <IStorageFolderHandleAccess *, ushort *, HANDLE_CREATION_OPTIONS, HANDLE_ACCESS_OPTIONS, HANDLE_SHARING_OPTIONS, HANDLE_OPTIONS, IOplockBreakingHandler *, HANDLE *, int>)(lpVtbl[3]))((IStorageFolderHandleAccess *)Unsafe.AsPointer(ref this), fileName, creationOptions, accessOptions, sharingOptions, options, oplockBreakingHandler, interopHandle));
 }
コード例 #23
0
 public static extern BOOL AddSIDToBoundaryDescriptor(HANDLE *BoundaryDescriptor, [NativeTypeName("PSID")] void *RequiredSid);
コード例 #24
0
 public HRESULT CreateSharedHandle([NativeTypeName("const SECURITY_ATTRIBUTES *")] SECURITY_ATTRIBUTES *pAttributes, [NativeTypeName("DWORD")] uint dwAccess, [NativeTypeName("LPCWSTR")] ushort *lpName, HANDLE *pHandle)
 {
     return(((delegate * unmanaged <IDXGIResource1 *, SECURITY_ATTRIBUTES *, uint, ushort *, HANDLE *, int>)(lpVtbl[13]))((IDXGIResource1 *)Unsafe.AsPointer(ref this), pAttributes, dwAccess, lpName, pHandle));
 }
コード例 #25
0
 public HRESULT OpenSharedHandleByName([NativeTypeName("LPCWSTR")] ushort *Name, [NativeTypeName("DWORD")] uint Access, HANDLE *pNTHandle)
 {
     return(((delegate * unmanaged <ID3D12Device1 *, ushort *, uint, HANDLE *, int>)(lpVtbl[33]))((ID3D12Device1 *)Unsafe.AsPointer(ref this), Name, Access, pNTHandle));
 }
コード例 #26
0
 public HRESULT GetSharedHandle(HANDLE *pSharedHandle)
 {
     return(((delegate * unmanaged <IDXGIResource1 *, HANDLE *, int>)(lpVtbl[8]))((IDXGIResource1 *)Unsafe.AsPointer(ref this), pSharedHandle));
 }
コード例 #27
0
 public static extern uint DCompositionWaitForCompositorClock(uint count, [NativeTypeName("const HANDLE *")] HANDLE *handles, [NativeTypeName("DWORD")] uint timeoutInMs);
コード例 #28
0
 public static extern BOOL CreatePipe(
     HANDLE *hReadPipe,
     HANDLE *hWritePipe,
     ref SECURITY_ATTRIBUTES lpPipeAttributes,
     DWORD nSize
     );
コード例 #29
0
 public HRESULT Execute(HWND hwnd, [NativeTypeName("LPCWSTR")] ushort *pszVerb, HANDLE *phProcess)
 {
     return(((delegate * unmanaged <IAttachmentExecute *, HWND, ushort *, HANDLE *, int>)(lpVtbl[12]))((IAttachmentExecute *)Unsafe.AsPointer(ref this), hwnd, pszVerb, phProcess));
 }
コード例 #30
0
 public HRESULT GetCancelEvent(HANDLE *phEvent)
 {
     return(((delegate * unmanaged <IObjectWithCancelEvent *, HANDLE *, int>)(lpVtbl[3]))((IObjectWithCancelEvent *)Unsafe.AsPointer(ref this), phEvent));
 }