/**
 * node-win32-api
 *
 * @author waiting
 * @license MIT
 * @link https://github.com/waitingsong/node-win32-api
 */

import {parse_windef} from './lib/helper';

import * as windef from './lib/windef';
parse_windef(windef);   // must at top
export {windef};

import * as Conf from './lib/conf';
export {Conf as conf};

import * as User32 from './lib/user32/index';
export {User32 as U};
export {User32};

import * as Kernel32 from './lib/kernel32/index';
export {Kernel32 as K};
export {Kernel32};

import * as Comctl32 from './lib/comctl32/index';
export {Comctl32 as C};
export {Comctl32};

import * as DStruct from './lib/struct';
export {DStruct as DS}; // Dict of Struct
export {DStruct};

import * as types from './lib/types';
export {types};

/**
 * node-win32-api
 *
 * @author waiting
 * @license MIT
 * @link https://github.com/waitingsong/node-win32-api
 */

import {parse_windef} from './lib/helper';

import * as User32 from './lib/user32/index';
export {User32 as U};
export {User32};

import * as Kernel32 from './lib/kernel32/index';
export {Kernel32 as K};
export {Kernel32};

import * as Comctl32 from './lib/comctl32/index';
export {Comctl32 as C};
export {Comctl32};

import * as DStruct from './lib/struct';
export {DStruct as DS}; // Dict of Struct
export {DStruct};

import * as types from './lib/types';
export {types};

import * as windef from './lib/windef';
parse_windef(windef);
const foo = windef.HWND;
export {windef};

import * as Conf from './lib/conf';
export {Conf as conf};
--- 
+++ 
@@ -7,6 +7,13 @@
  */
 
 import {parse_windef} from './lib/helper';
+
+import * as windef from './lib/windef';
+parse_windef(windef);   // must at top
+export {windef};
+
+import * as Conf from './lib/conf';
+export {Conf as conf};
 
 import * as User32 from './lib/user32/index';
 export {User32 as U};
@@ -26,11 +33,3 @@
 
 import * as types from './lib/types';
 export {types};
-
-import * as windef from './lib/windef';
-parse_windef(windef);
-const foo = windef.HWND;
-export {windef};
-
-import * as Conf from './lib/conf';
-export {Conf as conf};
Set parse_windef(windef) at top for gloabl effect
