Re: [python-win32] how to access SHOpenFolderAndSelectItems() by ctypes

2013-12-13 Thread Tim Roberts
iMath wrote: > > I want to build a cross-platform application ,I used a windows API > called SHOpenFolderAndSelectItems() > . > Although I found example called it by pywin32,but pywin32 is not > available on Linux ,

Re: [python-win32] how to access SHOpenFolderAndSelectItems() by ctypes

2013-12-13 Thread Vernon D. Cole
Right. You can't call a Windows service unless you are on Windows. You will want to build a "shim" function which you call with a generic name. It looks at what operating system it is running on, and then calls the appropriate operating system specific code to perform the operation. The import

[python-win32] how to access SHOpenFolderAndSelectItems() by ctypes

2013-12-13 Thread iMath
I want to build a cross-platform application ,I used a windows API called SHOpenFolderAndSelectItems(). Although I found example called it by pywin32,but pywin32 is not available on Linux , I don't want to call a Windows API on linux,just don't want to make another code version for Linux,so I wo