WildGoblin
Ru-Board Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору #Region Global Variables and Constants Global $__g_venum, $__g_vext = 0 Global $__g_irgbmode = 1 Global Const $tagosversioninfo = "struct;dword OSVersionInfoSize;dword MajorVersion;dword MinorVersion;dword BuildNumber;dword PlatformId;wchar CSDVersion[128];endstruct" Global Const $image_bitmap = 0 Global Const $image_icon = 1 Global Const $image_cursor = 2 Global Const $image_enhmetafile = 3 Global Const $lr_defaultcolor = 0 Global Const $lr_monochrome = 1 Global Const $lr_color = 2 Global Const $lr_copyreturnorg = 4 Global Const $lr_copydeleteorg = 8 Global Const $lr_loadfromfile = 16 Global Const $lr_loadtransparent = 32 Global Const $lr_defaultsize = 64 Global Const $lr_vgacolor = 128 Global Const $lr_loadmap3dcolors = 4096 Global Const $lr_createdibsection = 8192 Global Const $lr_copyfromresource = 16384 Global Const $lr_shared = 32768 Global Const $__tagcursorinfo = "dword Size;dword Flags;handle hCursor;" & "struct;long X;long Y;endstruct" Global Const $__winver = __winver() #EndRegion Global Variables and Constants #Region Functions list #EndRegion Functions list #Region Public Functions Func _winapi_createfile($sfilename, $icreation, $iaccess = 4, $ishare = 0, $iattributes = 0, $tsecurity = 0) Local $ida = 0, $ism = 0, $icd = 0, $ifa = 0 If BitAND($iaccess, 1) <> 0 Then $ida = BitOR($ida, $generic_execute) If BitAND($iaccess, 2) <> 0 Then $ida = BitOR($ida, $generic_read) If BitAND($iaccess, 4) <> 0 Then $ida = BitOR($ida, $generic_write) If BitAND($ishare, 1) <> 0 Then $ism = BitOR($ism, $file_share_delete) If BitAND($ishare, 2) <> 0 Then $ism = BitOR($ism, $file_share_read) If BitAND($ishare, 4) <> 0 Then $ism = BitOR($ism, $file_share_write) Switch $icreation |