CryptoByLeo/Src/Imports/Main.mqh

40 lines
1.6 KiB
MQL5
Raw Permalink Normal View History

2026-08-23 08:35:14 -05:00
//+------------------------------------------------------------------+
//| Main.mqh |
//| Copyright 2026, Niquel Mendoza |
//| https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2026, Niquel Mendoza"
#property link "https://www.mql5.com"
#property strict
#ifndef CRYPTOBYLEO_SRC_IMPORTS_MAIN_MQH
#define CRYPTOBYLEO_SRC_IMPORTS_MAIN_MQH
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
// Codigos generales para NSTATUS
// Nota que no es neceario esto puedes obetnerlo en:
// https://learn.microsoft.com/es-es/windows/win32/api/bcrypt/nf-bcrypt-bcryptgenrandom
// En mic aso como quiero manteer todo en orden ya tengo mi lib para cosas de DLL asi que la incluyo noma
#include <TSN\\ExtraCodes\\ZwNtCodes.mqh>
//+------------------------------------------------------------------+
//| BCrypt |
//+------------------------------------------------------------------+
//--- Defines
#define BCRYPT_RNG_USE_ENTROPY_IN_BUFFER (0x00000001)
#define BCRYPT_USE_SYSTEM_PREFERRED_RNG (0x00000002)
//--- Import
#import "bcrypt.dll"
int BCryptGenRandom(
long hAlgorithm,
ulong &pbBuffer[],
uint cbBuffer,
uint dwFlags
);
#import
#endif // CRYPTOBYLEO_SRC_IMPORTS_MAIN_MQH