Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I can't seem to find a Windows API call that returns the driver name for a printer. Note that I'm not talking about the friendly name of the printer in the printer folder, I'm talking about the name of actual driver being used as shown on the "Advanced" tab when you look at the printer properties:
Printer properties dialog http://img811.imageshack.us/img811/3443/printer.png
I'm trying to detect when I'm printing to the "Generic / Text Only" driver regardless of what name the user chooses for the printer. It doesn't seem like this should be hard, but I can't find it in the DEVMODE structure or anyplace else I've thought to look for it.
Thanks for the help!
What you are looking for is in the pDriverName field of the PRINTER_INFO_2 structure.
You can get it with EnumPrinters, then you have to do a comparison of the PRINTER_INFO_2::pPrinterName and the friendly name of DEVMODE.
Just a suggestion: use procmon (from sysinternals) to spy on all API calls, and see what call returns this string.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I'm interested in adding to an open source project or creating my own interface into windows remote management service from Python.However, it is difficult to create such a service when there is no web service description file (WSDL) to explain to me what functions and objects are available in the SOAP web service provided by Windows.
What is the WSDL file for WinRM? Or am I supposed to connect use WinRM without it?
Link to the question on the MSDN forum.
https://social.msdn.microsoft.com/Forums/vstudio/en-US/772aa67f-fe95-488a-ab9a-6bde3a42658e/how-to-get-winrm-wsdl-file?forum=windowsserversolutionssdk
It's available in the open specifications document MS-WSMV which describes WSMan in large detail. The full document can be downloaded from the MSDN site:
https://msdn.microsoft.com/en-us/library/cc251526.aspx
It is detailed in appendix A (Full WSDL):
https://msdn.microsoft.com/en-us/library/dd366131.aspx
All that can be provided is links as the full WSDL far exceeds the character limit allowed in a post.
This document contain some minor errors which can be spotted, for example, by PyCharm.
XSDs:
http://schemas.xmlsoap.org/ws/2004/09/transfer/transfer.xsd
http://schemas.xmlsoap.org/ws/2004/08/eventing/eventing.xsd
http://schemas.xmlsoap.org/ws/2004/09/enumeration/enumeration.xsd
Correct attribute names:
minOccurs
maxOccurs
processContents
wsmanfault namespace is not used.
Some attributes are set explicitly to their defaults.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
The Skype desktop API was being closed, but they've reversed that decision. I'm now not able to register as a developer (http://developer.skype.com/) as they're 'not accepting new registrations'.
I need to start looking into this as I want to develop a call recording component for Mac (and Windows, but most importantly Mac).
So is there a mirror for the documentation somewhere so that I know how this works? And is there any example code for this?
A comment in this question seems to imply that they provide both tracks of audio readily so I believe that once I can get this info, it should be quite a simple task!
Turns out the Wayback Machine has my answer:
http://web.archive.org/web/20130607130426/http://dev.skype.com/desktop-api-reference
Who would have thought it? ;)
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
How does the Windows shortcut know about renaming the file to which it refers? How to intercept the message when the file was renamed? Is there a corresponding function Win32 API for this?
The shortcut causes the target file's NTFS attributes to be updated with an ObjectID, this is the value that the shortcut actually "points" to.
Resolving them on-demand is done by the distributed link tracking service.
http://msdn.microsoft.com/en-gb/library/windows/desktop/aa363997(v=vs.85).aspx
To detect file name changes and the like you can use FindFirstChangeNotification. I've not worked with shortcuts
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Can anybody recommend an IM client (Linux / Mac preferred) that either support natively, or via a plugin the ability to format & highlight blocks of code that are pasted in chat windows? I'm constantly pasting and receiving blocks of code in my client (Adium at the moment) where I copy them out into an editor to perform the formatting to make it readable.
I know I can't be the only one that shuttles snippets of code around to others like this, so I figure someone must have done this already, but my searches are coming up with nothing. Please someone help me before I throw my hands up and just start another time-sink project myself :)
You could also take a look at http://collabedit.com/
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I need to be able to identify a single window on the user's screen and take a screen capture of it. The screen data is to be stored in memory and not written to disk.
This is already supported through the commandline tool /usr/sbin/screencapture or through the Grab utility (though their functionality is not extensive enough to justify me launching them as a subprocess).
References / Hints
nm /usr/sbin/screencapture returns private Cocoa interfaces including _CGSGetSharedWindow that appear to do this.
Third party application Snapzpro does this (but does not provide source code)
Mac OS X 10.5 introduced the Quartz Window Services API to do just this.
The first thing that came to mind was GrabFS from MacFuse. The source is here.
Command+Shift+4 to activate the screenshot selection, then tap the space bar to select the whole window.