forked from nique_372/CryptoByLeo
40 lines
1.6 KiB
MQL4
40 lines
1.6 KiB
MQL4
//+------------------------------------------------------------------+
|
|
//| 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
|