- GetCommandLineW = WINFUNCTYPE(LPWSTR)(("GetCommandLineW", windll.kernel32))
- CommandLineToArgvW = WINFUNCTYPE(POINTER(LPWSTR), LPCWSTR, POINTER(c_int)) \
- (("CommandLineToArgvW", windll.shell32))
+
+ # <https://msdn.microsoft.com/en-us/library/windows/desktop/ms683156%28v=vs.85%29.aspx>
+ GetCommandLineW = WINFUNCTYPE(
+ LPWSTR,
+ use_last_error=True
+ )(("GetCommandLineW", windll.kernel32))
+
+ # <https://msdn.microsoft.com/en-us/library/windows/desktop/bb776391%28v=vs.85%29.aspx>
+ CommandLineToArgvW = WINFUNCTYPE(
+ POINTER(LPWSTR), LPCWSTR, POINTER(c_int),
+ use_last_error=True
+ )(("CommandLineToArgvW", windll.shell32))