2025-08-19 18:36:26 +01:00
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
|
//| handleapi.mqh |
|
2026-01-31 12:29:07 +00:00
|
|
|
//| Copyright 2000-2026, MetaQuotes Ltd. |
|
|
|
|
|
//| www.mql5.com |
|
2025-08-19 18:36:26 +01:00
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
|
#include <WinAPI\windef.mqh>
|
|
|
|
|
|
|
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
|
//| |
|
|
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
|
#import "kernel32.dll"
|
|
|
|
|
int CloseHandle(HANDLE object);
|
|
|
|
|
int DuplicateHandle(HANDLE source_process_handle,HANDLE source_handle,HANDLE target_process_handle,HANDLE &target_handle,uint desired_access,int inherit_handle,uint options);
|
|
|
|
|
int GetHandleInformation(HANDLE object,uint& flags);
|
|
|
|
|
int SetHandleInformation(HANDLE object,uint mask,uint flags);
|
|
|
|
|
#import
|
|
|
|
|
|
|
|
|
|
#import "kernelbase.dll"
|
|
|
|
|
int CompareObjectHandles(HANDLE first_object_handle, HANDLE second_object_handle);
|
|
|
|
|
#import
|
|
|
|
|
//+------------------------------------------------------------------+
|