[python-win32] cde Outlook 2007 rules and python

2010-03-03 Thread nihil
I try to translate this vbs script to python. http://www.outlookcode.com/threads.aspx?forumid=2messageid=29505 The purpose of this script is to automatically create an rule in Outlook to sort incoming messages. It is possible to do this in Outlook 2007 and the vbs file works. The SPAM folder is

Re: [python-win32] Catch system level events in python

2010-03-03 Thread Jan Schneider
Am Montag, 1. März 2010 03:16:41 schrieb Tim Roberts: You wrote: i am developing a windows service using python-win32. Now I am searching for a possibility to get a notification when a user is trying to shutdown the system. In certain cases I need to cancel this shutdown, Does anyone knows

Re: [python-win32] Byte arrays and COM

2010-03-03 Thread Tim Roberts
Dave Cross wrote: DOH! Should have spotted that 84 was 'T' So how do I convince MakePy that I mean an array? I thought the [size_is] in the IDL should achieve that? There's no way to do this with the automatic translation. You will either have to dig in to the comtypes module, which works at

[python-win32] Detect when application is running in a VM environment?

2010-03-03 Thread python
Looking for ideas on how to detect when our Windows application is running in one of the following VM environments. Some starter ideas for detection are in parentheses. There may be (much) better detection techniques - the starter ideas I've come up with are based on my Google research. - VMWare

Re: [python-win32] Detect when application is running in a VM environment?

2010-03-03 Thread Mario Vilas
This is a small paper that summarizes a number of more extense papers describing different methods of VM detection. It may be of help: http://www.s21sec.com/descargas/vmware-eng.pdf On Wed, Mar 3, 2010 at 6:40 PM, pyt...@bdurham.com wrote: Looking for ideas on how to detect when our Windows

Re: [python-win32] Detect when application is running in a VM environment?

2010-03-03 Thread Tim Roberts
pyt...@bdurham.com wrote: Looking for ideas on how to detect when our Windows application is running in one of the following VM environments. Why? Is this for curiousity, or is it a lame-brained security scheme? -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc.

[python-win32] WMI script that shows general info about a computer

2010-03-03 Thread python
Apologies for the vague description. I'm looking for tips on a WMI query that would allow me to show general info about a computer. We're going to use this data as part of a workstation inventory project I'm working on. I'm sure I've seen this type of query before but my google-mojo is failing

Re: [python-win32] Detect when application is running in a VM environment?

2010-03-03 Thread python
Hi Tim, Looking for ideas on how to detect when our Windows application is running in one of the following VM environments. Why? Is this for curiousity, or is it a lame-brained security scheme? LOL! No, I'm working on a script that inventories all the environments we're running in our

Re: [python-win32] WMI script that shows general info about a computer (SOLVED)

2010-03-03 Thread python
OP here. When in doubt, read the (very well commented) wmi.py source code :) computerSystem = wmi.WMI().Win32_ComputerSystem()[0] Sorry for the interuption. Malcolm - Original message - From: pyt...@bdurham.com To: python-win32@python.org Date: Wed, 03 Mar 2010 21:01:19 -0500 Subject:

[python-win32] How to enumerate a WMI object to discover its properties?

2010-03-03 Thread python
Is there a way to enumerate a WMI object's properties to discover what they are vs. having to explictly reference properties by name? From reading the wmi.py source code I understand that enumerating Win32_ComputerSystem() is not a good idea. But, using that as an example anyway, how would I get