Code Viewer

./Classes/___api.js File Size: 38.34 KB

  1. /*
  2. * -----
  3. * Screenshot Sender - ___api.js
  4. * -----
  5. * Win32 API class
  6. * -----
  7. */
  8.  
  9. var __win32 = function () {
  10.         this._const = new __win32const();
  11.        
  12.         this._USER32 =   'user32.dll';
  13.         this._KERNEL32 =        'kernel32.dll';
  14.         this._COMDLG32 =        'comdlg32.dll';
  15.         this._OLE32 =     'ole32.dll';
  16.         this._SHELL32 =         'shell32.dll';
  17.         this._GDIP32 =   'gdip32.dll';
  18.         this._GDI32 =     'gdi32.dll';
  19.         this._WININET =         'wininet.dll';
  20. };
  21.  
  22. __win32.prototype = {
  23.         'ChooseColorW' : function (CHOOSECOLOR) {
  24.                 _debug.sgetfuncname('ChooseColorW', arguments);
  25.                 return Interop.Call(this._COMDLG32, 'ChooseColorW', CHOOSECOLOR);
  26.         },
  27.  
  28.         'CloseClipboard' : function () {
  29.                 _debug.sgetfuncname('CloseClipboard', arguments);
  30.                 return Interop.Call(this._USER32, 'CloseClipboard');
  31.         },
  32.  
  33.         'CloseHandle' : function (hHandle) {
  34.                 _debug.sgetfuncname('CloseHandle', arguments);
  35.                 return Interop.Call(this._KERNEL32, 'CloseHandle', hHandle);
  36.         },
  37.  
  38.         'CreateFileW' : function (lpFileName, dwDesiredAccess, dwShareMode, lpSecurityAttributes, dwCreationDisposition, dwFlagsAndAttributes, hTemplateFile) {
  39.                 _debug.sgetfuncname('CreateFileW', arguments);
  40.                 return Interop.Call(this._KERNEL32, 'CreateFileW', lpFileName,
  41.                                                                                                                            dwDesiredAccess,
  42.                                                                                                                            dwShareMode,
  43.                                                                                                                            lpSecurityAttributes,
  44.                                                                                                                            dwCreationDisposition,
  45.                                                                                                                            dwFlagsAndAttributes,
  46.                                                                                                                            hTemplateFile);
  47.         },
  48.  
  49.         'CreateWindowExW' : function (dwExStyle, lpClassName, lpWindowName, dwStyle, x, y, nWidth, nHeight, hWndParent, hMenu, hInstance, lParam) {
  50.                 _debug.sgetfuncname('CreateWindowExW', arguments);
  51.                 return Interop.Call(this._USER32, 'CreateWindowExW', dwExStyle,
  52.                                                                                                                                  lpClassName,
  53.                                                                                                                                  lpWindowName,
  54.                                                                                                                                  dwStyle,
  55.                                                                                                                                  x,
  56.                                                                                                                                  y,
  57.                                                                                                                                  nWidth,
  58.                                                                                                                                  nHeight,
  59.                                                                                                                                  hWndParent,
  60.                                                                                                                                  hMenu,
  61.                                                                                                                                  hInstance,
  62.                                                                                                                                  lParam);
  63.         },
  64.  
  65.         'DeleteFileW' : function (lpszFile) {
  66.                 _debug.sgetfuncname('DeleteFileW', arguments);
  67.                 return Interop.Call(this._KERNEL32, 'DeleteFileW', '\\\\?\\'+lpszFile);
  68.         },
  69.  
  70.         'DeleteObject' : function (hObject) {
  71.                 _debug.sgetfuncname('DeleteObject', arguments);
  72.                 return Interop.Call(this._GDI32, 'DeleteObject', hObject);
  73.         },
  74.  
  75.         'DeleteUrlCacheEntryW' : function (lpszUrl) {
  76.                 _debug.sgetfuncname('DeleteUrlCacheEntryW', arguments);
  77.                 return Interop.Call(this._WININET, 'DeleteUrlCacheEntryW', lpszUrl);
  78.         },
  79.  
  80.         'DestroyIcon' : function (hIcon) {
  81.                 _debug.sgetfuncname('DestroyIcon', arguments);
  82.                 return Interop.Call(this._USER32, 'DestroyIcon', hIcon);
  83.         },
  84.  
  85.         'DragQueryFileW' : function (hDrop, iFile, lpszFile, cch) {
  86.                 _debug.sgetfuncname('DragQueryFileW', arguments);
  87.                 return Interop.Call(this._SHELL32, 'DragQueryFileW', hDrop, iFile, lpszFile, cch);
  88.         },
  89.  
  90.         'DrawFocusRect' : function (hDC, lprc) {
  91.                 _debug.sgetfuncname('DrawFocusRect', arguments);
  92.                 return Interop.Call(this._USER32, 'DrawFocusRect', hDC, lprc);
  93.         },
  94.  
  95.         'DrawTextW' : function (hDC, lpsz, iLength, lpRect, dwFlags) {
  96.                 _debug.sgetfuncname('DrawTextW', arguments);
  97.                 return Interop.Call(this._USER32, 'DrawTextW', hDC, lpsz, iLength, lpRect, dwFlags);
  98.         },
  99.  
  100.         'EmptyClipboard' : function () {
  101.                 _debug.sgetfuncname('EmptyClipboard', arguments);
  102.                 return Interop.Call(this._USER32, 'EmptyClipboard');
  103.         },
  104.  
  105.         'EnableMenuItem' :      function (hMenu, uIDEnableItem, uEnable) {
  106.                 _debug.sgetfuncname('EnableMenuItem', arguments);
  107.                 return Interop.Call(this._USER32, 'EnableMenuItem', hMenu, this._SC_CLOSE, uEnable);
  108.         },
  109.  
  110.         'EnableWindow' : function (hWnd, bEnable) {
  111.                 _debug.sgetfuncname('EnableWindow', arguments);
  112.                 return Interop.Call(this._USER32, 'EnableWindow', hWnd, bEnable);
  113.         },
  114.  
  115.         'EnumDisplayMonitors' : function (hDc, lpRect, lpEnumFunc, lParam) {
  116.                 _debug.sgetfuncname('EnumDisplayMonitors', arguments);
  117.                 return Interop.Call(this._USER32, 'EnumDisplayMonitors', hDc, lpRect, lpEnumFunc, lParam);
  118.         },
  119.  
  120.         'EnumWindows' : function (lpEnumFunc, lParam) {
  121.                 _debug.sgetfuncname('EnumWindows', arguments);
  122.                 return Interop.Call(this._USER32, 'EnumWindows', lpEnumFunc, lParam);
  123.         },
  124.  
  125.         'FindClose' : function (hFindFile) {
  126.                 _debug.sgetfuncname('FindClose', arguments);
  127.                 return Interop.Call(this._KERNEL32, 'FindClose', hFindFile);
  128.         },
  129.  
  130.         'FindFirstFileW' : function (lpszPath, WIN32_FIND_DATA) {
  131.                 _debug.sgetfuncname('FindFirstFileW', arguments);
  132.                 return Interop.Call(this._KERNEL32, 'FindFirstFileW', lpszPath, WIN32_FIND_DATA);
  133.         },
  134.  
  135.         'FindNextFileW' : function (hFindFile, WIN32_FIND_DATA) {
  136.                 _debug.sgetfuncname('FindNextFileW', arguments);
  137.                 return Interop.Call(this._KERNEL32, 'FindNextFileW', hFindFile, WIN32_FIND_DATA);
  138.         },
  139.  
  140.         'FindWindowExW' : function (hWndParent, hWndChildAfter, lpszClass, lpszWindow) {
  141.                 _debug.sgetfuncname('FindWindowExW', arguments);
  142.                 return Interop.Call(this._USER32, 'FindWindowExW', hWndParent, hWndChildAfter, lpszClass, lpszWindow);
  143.         },
  144.  
  145.         'FindWindowW' : function (lpszClass, lpszWindow) {
  146.                 _debug.sgetfuncname('FindWindowW', arguments);
  147.                 return Interop.Call(this._USER32, 'FindWindowW', lpszClass, lpszWindow);
  148.         },
  149.  
  150.         'GetAncestor' : function (hWnd, gaFlags) {
  151.                 _debug.sgetfuncname('GetAncestor', arguments);
  152.                 return Interop.Call(this._USER32, 'GetAncestor', hWnd, gaFlags);
  153.         },
  154.  
  155.         'GetClassFile' : function (szFileName, pclsid) {
  156.                 _debug.sgetfuncname('GetClassFile', arguments);
  157.                 return Interop.Call(this._OLE32, 'GetClassFile', szFileName, pclsid);
  158.         },
  159.  
  160.         'GetClassNameW' : function (hWnd, lpClassName, nMaxCount) {
  161.                 _debug.sgetfuncname('GetClassNameW', arguments);
  162.                 return Interop.Call(this._USER32, 'GetClassNameW', hWnd, lpClassName, nMaxCount);
  163.         },
  164.  
  165.         'GetClientRect' : function (hWnd, lpRect) {
  166.                 _debug.sgetfuncname('GetClientRect', arguments);
  167.                 return Interop.Call(this._USER32, 'GetClientRect', hWnd, lpRect);
  168.         },
  169.  
  170.         'GetClipboardData' : function (iType) {
  171.                 _debug.sgetfuncname('GetClipboardData', arguments);
  172.                 return Interop.Call(this._USER32, 'GetClipboardData', iType);
  173.         },
  174.  
  175.         'GetCurrentProcess' : function () {
  176.                 _debug.sgetfuncname('GetCurrentProcess', arguments);
  177.                 return Interop.Call(this._KERNEL32, 'GetCurrentProcess');
  178.         },
  179.  
  180.         'GetCursorPos' : function (lpPoint) {
  181.                 _debug.sgetfuncname('GetCursorPos', arguments);
  182.                 return Interop.Call(this._USER32, 'GetCursorPos', lpPoint);
  183.         },
  184.  
  185.         'GetDC' : function (hWnd) {
  186.                 _debug.sgetfuncname('GetDC', arguments);
  187.                 return Interop.Call(this._USER32, 'GetDC', hWnd);
  188.         },
  189.  
  190.         'GetDesktopWindow' : function () {
  191.                 _debug.sgetfuncname('GetDesktopWindow', arguments);
  192.                 return Interop.Call(this._USER32, 'GetDesktopWindow');
  193.         },
  194.  
  195.         'GetFileInformationByHandle' : function (hFile, lpFileInformation) {
  196.                 _debug.sgetfuncname('GetFileInformationByHandle', arguments);
  197.                 return Interop.Call(this._KERNEL32, 'GetFileInformationByHandle', hFile, lpFileInformation);
  198.         },
  199.  
  200.         'GetForegroundWindow' : function () {
  201.                 _debug.sgetfuncname('GetForegroundWindow', arguments);
  202.                 return Interop.Call(this._USER32, 'GetForegroundWindow');
  203.         },
  204.  
  205.         'GetKeyNameTextW' : function (lParam, lpString, nSize) {
  206.                 _debug.sgetfuncname('GetKeyNameTextW', arguments);
  207.                 return Interop.Call(this._USER32, 'GetKeyNameTextW', lParam, lpString, nSize);
  208.         },
  209.  
  210.         'GetMonitorInfoW' : function (hMonitor, MONITORINFO) {
  211.                 _debug.sgetfuncname('GetMonitorInfoW', arguments);
  212.                 return Interop.Call(this._USER32, 'GetMonitorInfoW', hMonitor, MONITORINFO);
  213.         },
  214.  
  215.         'GetParent' : function (hWnd) {
  216.                 _debug.sgetfuncname('GetParent', arguments);
  217.                 return Interop.Call(this._USER32, 'GetParent', hWnd);
  218.         },
  219.  
  220.         'GetSaveFileNameW' : function (OPENFILENAME) {
  221.                 _debug.sgetfuncname('GetSaveFileNameW', arguments);
  222.                 return Interop.Call(this._COMDLG32, 'GetSaveFileNameW', OPENFILENAME);
  223.         },
  224.  
  225.         'GetSystemMenu' : function (hWnd, bRevert) {
  226.                 _debug.sgetfuncname('GetSystemMenu', arguments);
  227.                 return Interop.Call(this._USER32, 'GetSystemMenu', hWnd, bRevert);
  228.         },
  229.  
  230.         'GetSystemMetrics' : function (nIndex) {
  231.                 _debug.sgetfuncname('GetSystemMetrics', arguments);
  232.                 return Interop.Call(this._USER32, 'GetSystemMetrics', nIndex);
  233.         },
  234.  
  235.         'GetVersion' :  function () {
  236.                 _debug.sgetfuncname('GetVersion', arguments);
  237.                 return Interop.Call(this._KERNEL32, 'GetVersion');
  238.         },
  239.  
  240.         'GetWindowDC' : function (hWnd) {
  241.                 _debug.sgetfuncname('GetWindowDC', arguments);
  242.                 return Interop.Call(this._USER32, 'GetWindowDC', hWnd);
  243.         },
  244.  
  245.         'GetWindowLongW' : function (hWnd, nIndex) {
  246.                 _debug.sgetfuncname('GetWindowLongW', arguments);
  247.                 return Interop.Call(this._USER32, 'GetWindowLongW', hWnd, nIndex);
  248.         },
  249.  
  250.         'GetWindowPlacement' : function (hWnd, WINDOWPLACEMENT) {
  251.                 _debug.sgetfuncname('GetWindowPlacement', arguments);
  252.                 return Interop.Call(this._USER32, 'GetWindowPlacement', hWnd, WINDOWPLACEMENT);
  253.         },
  254.  
  255.         'GetWindowRect' : function (hWnd, lpRect) {
  256.                 _debug.sgetfuncname('GetWindowRect', arguments);
  257.                 return Interop.Call(this._USER32, 'GetWindowRect', hWnd, lpRect);
  258.         },
  259.  
  260.         'GetWindowTextLengthW' : function (hWnd) {
  261.                 _debug.sgetfuncname('GetWindowTextLengthW', arguments);
  262.                 return Interop.Call(this._USER32, 'GetWindowTextLengthW', hWnd);
  263.         },
  264.  
  265.         'GetWindowTextW' : function (hWnd, lpszTitle, iLength) {
  266.                 _debug.sgetfuncname('GetWindowTextW', arguments);
  267.                 return Interop.Call(this._USER32, 'GetWindowTextW', hWnd, lpszTitle, iLength);
  268.         },
  269.  
  270.         'GlobalAddAtomW' : function (lpString) {
  271.                 _debug.sgetfuncname('GlobalAddAtomW', arguments);
  272.                 return Interop.Call(this._KERNEL32, 'GlobalAddAtomW', lpString);
  273.         },
  274.  
  275.         'GlobalFindAtomW' : function (lpString) {
  276.                 _debug.sgetfuncname('GlobalFindAtomW', arguments);
  277.                 return Interop.Call(this._KERNEL32, 'GlobalFindAtomW', lpString);
  278.         },
  279.  
  280.         'GlobalGetAtomNameW' : function (nAtom, lpBuffer, nSize) {
  281.                 _debug.sgetfuncname('GlobalGetAtomNameW', arguments);
  282.                 return Interop.Call(this._KERNEL32, 'GlobalGetAtomNameW', nAtam, lpBuffer, nSize);
  283.         },
  284.  
  285.         'GlobalDeleteAtom' : function (nAtom) {
  286.                 _debug.sgetfuncname('GlobalDeleteAtom', arguments);
  287.                 return Interop.Call(this._KERNEL32, 'GlobalDeleteAtom', nAtom);
  288.         },
  289.  
  290.         'IsClipboardFormatAvailable' : function (hFormat) {
  291.                 _debug.sgetfuncname('IsClipboardFormatAvailable', arguments);
  292.                 return Interop.Call(this._USER32, 'IsClipboardFormatAvailable', hFormat);
  293.         },
  294.  
  295.         'IsWindow' : function (hWnd) {
  296.                 _debug.sgetfuncname('IsWindow', arguments);
  297.                 return Interop.Call(this._USER32, 'IsWindow', hWnd);
  298.         },
  299.  
  300.         'IsWindowVisible' : function (hWnd) {
  301.                 _debug.sgetfuncname('IsWindowVisible', arguments);
  302.                 return Interop.Call(this._USER32, 'IsWindowVisible', hWnd);
  303.         },
  304.  
  305.         'LoadImageW' : function (hinst, lpszName, uType, cxDesired, cyDesired, fuLoad) {
  306.                 _debug.sgetfuncname('LoadImageW', arguments);
  307.                 return Interop.Call(this._USER32, 'LoadImageW', hinst, lpszName, uType, cxDesired, cyDesired, fuLoad);
  308.         },
  309.  
  310.         'MapVirtualKeyW' : function (uCode, uMapType) {
  311.                 _debug.sgetfuncname('MapVirtualKeyW', arguments);
  312.                 return Interop.Call(this._USER32, 'MapVirtualKeyW', uCode, uMapType);
  313.         },
  314.  
  315.         'MessageBoxW' : function (hWnd, lpText, lpCaption, uType) {
  316.                 _debug.sgetfuncname('MessageBoxW', arguments);
  317.                 return Interop.Call(this._USER32, 'MessageBoxW', hWnd, lpText, lpCaption, uType);
  318.         },
  319.  
  320.         'MoveWindowW' : function (hWnd, x, y, nWidth, nHeight, bRepaint) {
  321.                 _debug.sgetfuncname('MoveWindowW', arguments);
  322.                 return Interop.Call(this._USER32, 'MoveWindowW', hWnd, x, y, nWidth, nHeight, bRepaint);
  323.         },
  324.  
  325.         'OpenClipboard' : function (hWnd) {
  326.                 _debug.sgetfuncname('OpenClipboard', arguments);
  327.                 return Interop.Call(this._USER32, 'OpenClipboard', hWnd);
  328.         },
  329.  
  330.         'PostMessageW' : function (hWnd, lMessage, wParam, lParam) {
  331.                 _debug.sgetfuncname('PostMessageW', arguments);
  332.                 return Interop.Call(this._USER32, 'PostMessageW', hWnd, lMessage, wParam, lParam);
  333.         },
  334.  
  335.         'RegisterHotKey' : function (hWnd, id, fsModifiers, vk) {
  336.                 _debug.sgetfuncname('RegisterHotKey', arguments);
  337.                         return Interop.Call(this._USER32, 'RegisterHotKey', hWnd, id, fsModifiers, vk);
  338.        
  339.         },
  340.  
  341.         'ReleaseDC' : function (hWnd, hDC) {
  342.                 _debug.sgetfuncname('ReleaseDC', arguments);
  343.                 return Interop.Call(this._USER32, 'ReleaseDC', hWnd, hDC);
  344.         },
  345.  
  346.         'RtlMoveMemory' : function (pDest, pSource, hSize) {
  347.                 _debug.sgetfuncname('RtlMoveMemory', arguments);
  348.                 return Interop.Call(this._KERNEL32, 'RtlMoveMemory', pDest, pSource, hSize);
  349.         },
  350.  
  351.         'SendMessageW' : function (hWnd, lMessage, wParam, lParam) {
  352.                 _debug.sgetfuncname('SendMessageW', arguments);
  353.                 return Interop.Call(this._USER32, 'SendMessageW', hWnd, lMessage, wParam, lParam);
  354.         },
  355.  
  356.         'SetBkMode' : function (hDC, iBkMode) {
  357.                 _debug.sgetfuncname('SetBkMode', arguments);
  358.                 return Interop.Call(this._GDI32, 'SetBkMode', hDC, iBkMode);
  359.         },
  360.  
  361.         'SetClipboardData' : function (uFormat, hMem) {
  362.                 _debug.sgetfuncname('SetClipboardData', arguments);
  363.                 return Interop.Call(this._USER32, 'SetClipboardData', uFormat, hMem);
  364.         },
  365.  
  366.         'SetFocus' : function (hWnd) {
  367.                 _debug.sgetfuncname('SetFocus', arguments);
  368.                 return Interop.Call(this._USER32, 'SetFocus', hWnd);
  369.         },
  370.  
  371.         'SetForegroundWindow' : function (hWnd) {
  372.                 _debug.sgetfuncname('SetForegroundWindow', arguments);
  373.                 return Interop.Call(this._USER32, 'SetForegroundWindow', hWnd);
  374.         },
  375.  
  376.         'SetLayeredWindowAttributes' : function (hWnd, crKey, bAlpha, dwFlags) {
  377.                 _debug.sgetfuncname('SetLayeredWindowAttributes', arguments);
  378.                 return Interop.Call(this._USER32, 'SetLayeredWindowAttributes', hWnd, crKey, bAlpha, dwFlags);
  379.         },
  380.  
  381.         'SetWindowLongW' : function (hWnd, nIndex, nMsg) {
  382.                 _debug.sgetfuncname('SetWindowLongW', arguments);
  383.                 return Interop.Call(this._USER32, 'SetWindowLongW', hWnd, nIndex, nMsg);
  384.         },
  385.  
  386.         'SetWindowPlacement' : function (hWnd, lpwndpl) {
  387.                 _debug.sgetfuncname('SetWindowPlacement', arguments);
  388.                 return Interop.Call(this._USER32, 'SetWindowPlacement', hWnd, lpwndpl);
  389.         },
  390.        
  391.         'SetWindowPos' : function (hWnd, hWndInsertAfter, x, y, cx, cy, dwFlags) {
  392.                 _debug.sgetfuncname('SetWindowPos', arguments);
  393.                 return Interop.Call(this._USER32, 'SetWindowPos', hWnd, hWndInsertAfter, x, y, cx, cy, dwFlags);
  394.         },
  395.  
  396.         'SetWindowTextW' : function (hWnd, lpsz) {
  397.                 _debug.sgetfuncname('SetWindowTextW', arguments);
  398.                 return Interop.Call(this._USER32, 'SetWindowText', hWnd, lpsz);
  399.         },
  400.  
  401.         'SHBrowseForFolderW' : function (BROWSEINFO) {
  402.                 _debug.sgetfuncname('SHBrowseForFolderW', arguments);
  403.                 return Interop.Call(this._SHELL32, 'SHBrowseForFolderW', BROWSEINFO);
  404.         },
  405.  
  406.         'SHCreateDirectoryExW' : function (hWnd, lpszPath, SECURITY_ATTRIBUTES) {
  407.                 _debug.sgetfuncname('SHCreateDirectoryExW', arguments);
  408.                 return Interop.Call(this._SHELL32, 'SHCreateDirectoryExW', hWnd, lpszPath, SECURITY_ATTRIBUTES);
  409.         },
  410.  
  411.         'ShellExecuteW' : function (hWnd, lpOperateion, lpFile, lpParameters, lpDirectory, nShowCmd) {
  412.                 _debug.sgetfuncname('ShellExecuteW', arguments);
  413.                 return Interop.Call(this._SHELL32, 'ShellExecuteW', hWnd, lpOperateion, lpFile, lpParameters, lpDirectory, nShowCmd);
  414.         },
  415.  
  416.         'SHGetPathFromIDListW' : function (pidl, lpsz) {
  417.                 _debug.sgetfuncname('SHGetPathFromIDListW', arguments);
  418.                 return Interop.Call(this._SHELL32, 'SHGetPathFromIDListW', pidl, lpsz);
  419.         },
  420.  
  421.         'SHGetSpecialFolderPathW' : function (hWnd, lpszPath, csidl, fCreate) {
  422.                 _debug.sgetfuncname('SHGetSpecialFolderPathW', arguments);
  423.                 return Interop.Call(this._SHELL32, 'SHGetSpecialFolderPathW', hWnd, lpszPath, csidl, fCreate);
  424.         },
  425.  
  426.         'ShowWindow' : function (hWnd, nShowCmd) {
  427.                 _debug.sgetfuncname('ShowWindow', arguments);
  428.                 return Interop.Call(this._USER32, 'ShowWindow', hWnd, nShowCmd);
  429.         },
  430.  
  431.         'StringFromGUID2' : function (rguid, lpsz, cchMax) {
  432.                 _debug.sgetfuncname('StringFromGUID2', arguments);
  433.                 return Interop.Call(this._OLE32, 'StringFromGUID2', rguid, lpsz, cchMax);
  434.         },
  435.  
  436.         'UnregisterHotKey' : function (hWnd, id) {
  437.                 _debug.sgetfuncname('UnregisterHotKey', arguments);
  438.                 return Interop.Call(this._USER32, 'UnregisterHotKey', hWnd, id);
  439.         },
  440.        
  441.         'WaitForSingleObject' : function (hHandle, dwMilliseconds) {
  442.                 _debug.sgetfuncname('WaitForSingleObject', arguments);
  443.                 return Interop.Call(this._KERNEL32, 'WaitForSingleObject', hHandle, dwMilliseconds);
  444.         },
  445.        
  446.         'WindowFromPoint' : function (x, y) {
  447.                 _debug.sgetfuncname('WindowFromPoint', arguments);
  448.                 return Interop.Call(this._USER32, 'WindowFromPoint', x, y);
  449.         }
  450. };
  451.  
  452. var __win32const = function () {
  453.         this._LVM_FIRST = 0x1000;
  454.         this._NM_FIRST = 0x0;
  455.         this._WM_USER = 0x400;
  456.        
  457.         this._BIF_DONTGOBELOWDOMAIN = 0x2;
  458.         this._BIF_RETURNONLYFSDIRS = 0x1;
  459.         this._BIF_USENEWUI = 0x50;
  460.         this._CF_BITMAP = 0x2;
  461.         this._CF_HDROP = 0xf;
  462.         this._CB_RESETCONTENT = 0x014b;
  463.         this._CC_FULLOPEN = 0x2;
  464.         this._CC_RGBINIT = 0x2;
  465.         this._CLSID_PERSONAL = 0x5;
  466.         this._DT_CALCRECT = 0x400;
  467.         this._EM_SETBKGNDCOLOR = (this._WM_USER + 0x43);
  468.         this._FILE_ATTRIBUTE_DIRECTORY = 0x10;
  469.         this._FILE_SHARE_READ = 0x1;
  470.         this._GENERIC_READ = 0x80000000;
  471.         this._GA_ROOTOWNER = 0x3;
  472.         this._GWL_EXSTYLE = -20;
  473.         this._GWL_STYLE = -16;
  474.         this._HK_GETKEY = (this._WM_USER + 0x2);
  475.         this._HK_SETKEY = (this._WM_USER + 0x1);
  476.         this._HWND_BROADCAST = 0xffff;
  477.         this._HWND_TOPMOST = -1;
  478.         this._INFINITE = 0xffff;
  479.         this._LVM_DELETEALLITEMS = (this._LVM_FIRST + 0x9);
  480.         this._LWA_ALPHA = 0x2;
  481.         this._MB_OK = 0x0,
  482.         this._MB_ICONHAND = 0x10;
  483.         this._MB_ICONQUESTION = 0x20;
  484.         this._MB_ICONEXCLAMATION = 0x30;
  485.         this._MB_ICONASTERISK = 0x40;
  486.         this._MB_OK = 0;
  487.         this._MB_OKCANCEL = 0x1;
  488.         this._MB_ABORTRETRYIGNORE = 0x2;
  489.         this._MB_YESNOCANCEL = 0x3;
  490.         this._MB_YESNO = 0x4;
  491.         this._MB_RETRYCANCEL = 0x5;
  492.         this._MF_BYCOMMAND = 0x0;
  493.         this._MF_ENABLED = 0x0;
  494.         this._MF_DISABLED = 0x2;
  495.         this._MOD_ALT = 0x1;
  496.         this._MOD_CONTROL = 0x2;
  497.         this._MOD_SHIFT = 0x4;
  498.         this._MOD_WIN = 0x8;
  499.         this._NM_RELEASEDCAPTURE = (this._NM_FIRST - 0x10);
  500.         this._OPEN_EXISTING = 0x3;
  501.         this._OFN_ENABLESIZING = 0x800000;
  502.         this._OFN_EXPLORER = 0x80000;
  503.         this._OFN_HIDEREADONLY = 0x4;
  504.         this._OFN_LONGNAMES = 0x200000;
  505.         this._OFN_PATHMUSTEXIST = 0x800;
  506.         this._OFN_FILEMUSTEXIST = 0x1000;
  507.         this._OFN_OVERWRITEPROMPT = 0x2;
  508.         this._OFN_COMMON_FLAGS = (this._OFN_ENABLESIZING |
  509.                                                            this._OFN_EXPLORER |
  510.                                                            this._OFN_HIDEREADONLY |
  511.                                                            this._OFN_LONGNAMES |
  512.                                                            this._OFN_PATHMUSTEXIST |
  513.                                                            this._OFN_FILEMUSTEXIST |
  514.                                                            this._OFN_OVERWRITEPROMPT);
  515.         this._SM_CXVIRTUALSCREEN = 0x4e;
  516.         this._SM_CYVIRTUALSCREEN = 0x4f;
  517.         this._SM_XVIRTUALSCREEN = 0x4c;
  518.         this._SM_YVIRTUALSCREEN = 0x4d;
  519.         this._SC_CLOSE = 0xf060;
  520.         this._SIZE_MAXIMIZED = 0x2;
  521.         this._SW_HIDE = 0x0;
  522.         this._SW_RESTORE = 0x9;
  523.         this._SW_SHOW = 0x5;
  524.         this._SW_SHOWMINIMIZED = 0x2;
  525.         this._SW_SHOWNORMAL = 0x1;
  526.         this._SWP_NOMOVE = 0x2;
  527.         this._SWP_NOSIZE = 0x1;
  528.         this._SWP_NOZORDER = 0x4;
  529.         this._TBM_GETPOS = 0x400;
  530.         this._TBM_SETPOS = 0x405;
  531.         this._WA_INACTIVE = 0x0;
  532.         this._WM_ACTIVATE = 0x6;
  533.         this._WM_HOTKEY = 0x312;
  534.         this._WM_LBUTTONDOWN = 0x201;
  535.         this._WM_LBUTTONUP = 0x202;
  536.         this._WM_LBUTTONDBLCLK = 0x203;
  537.         this._WM_MOUSEMOVE = 0x200;
  538.         this._WM_NOTIFY = 0x4e;
  539.         this._WM_PARENTNOTIFY = 0x210;
  540.         this._WM_SIZE = 0x5;
  541.         this._WPF_ASYNCWINDOWPLACEMENT = 0x4;
  542.         this._WS_BOARDER = 0x800000;
  543.         this._WS_CAPTION = 0xC00000;
  544.         this._WS_EX_LAYERED = 0x80000;
  545.         this._WS_EX_TRANSPARENT = 0x20;
  546. };
  547.  __win32const.prototype = {};

Version

  • 5.0.0070_20100325_publicbeta1

Developers

Project Details

  • Folders8
  • Files122
  • Total Lines11,867
  • Repository Version70

User Count

  • 162