Are there any bignum libraries that are good for Windows use? I looked at GMP, but unfortunately it does not look like it can be compiled on Windows...I'm going to be doing some custom RSA and hashing routines, and I need something that can handle extremely large integers.
Thanks.
...
Hi!
I've searched through the internet, but haven't found any solution in c#. Does anybody know how to give user right to log on as a Service in c#?
...
Can someone explain the difference between calling a perl script via file association versus calling the same script explicitly via perl.exe?
Apparently I/O redirection doesn't work very well when the script is called via file association, and I would really like to know why.
E.g. take a look at the Activestate FAQ for Perl on Window...
When open command prompt window. I found black fixed size windows that can scaling only vertical direction, but when i type wmic command it seem horizontal scaling also available. I just suspect what method that wmic force command prompt windows like that. Does one can explain?
...
I have a Windows service (under WinXP SP2), running under the LocalSystem account, that launches processes using CreateProcessWithLogonW. In order to clean up child processes, I'm trying to use a job object and TerminateJobObject.
MSDN states that the job handle must have JOB_OBJECT_ASSIGN_PROCESS access right, which it has since it's c...
I have a Windows service and need to supply credentials to the windows logon screen through this service when the computer is in locked state. Is it possible to provide credentials to this screen through windows service?
I read somewhere about the GINA provided by windows but do not want to use it as it accounts for overhead as well as i...
Hi,
I'm a bit confused about C# Classes and their deconstructor.
I have to consume a few event handlers in a class instance I'm getting in the contructor:
public Foo(IFooHandler handler)
{
handler.Load += Load;
handler.Close += Close;
}
Now my question is that I need unsubscribe to that event when the Foo class is destr...
Hi,
I'm trying to copy one or two specific files from a bunch of directories (hence why I don't want to/can't use *) from one directory to another using a batch script.
Basically I want to navigate into a "root directory" and from that list all the sub-directories using dir /AD-H /B then I want to cd into each of those directories and...
I have some native (as in /SUBSYSTEM:NATIVE) Windows programs that I'd like to generate minidumps for in case they crash. Normally, I'd use dbghelp.dll, but since native processes can only use functions exported from ntdll.dll, I can't.
So I've implemented the dumper myself. It's almost done, but unfortunately, I've been unable to locat...
I am trying to read some settings from php.ini using zend. The API that I am using is
long zend_ini_long(char *name, uint name_length, int orig)
But it always returns 0. I have double checked the name and also made sure that the value I am specifying in php.ini is greater then 0. Is there anything I am missing?
...
Hi everyone!
I posted a question earlier regarding obtaining GPU clock speeds, but I guess the thread appeared as already answered since someone had replied to it.
I'd been advised by one of your members to try extracting GPU clock speeds using SetupDiEnumDeviceInfo.
However, I looked around at some examples, like this one: http://ww...
I've got a MFC CTreeCtrl stuck in a dialog with the TVS_CHECKBOXES style turned on. I get checkboxes next to all my tree items fine. In OnInitDialog I set the checked state of some of the items using CTreeCtrl::SetCheck but none of the items in the tree are checked when the tree is displayed. SetCheck is returning TRUE. Checking items wi...
Hi,
I need to capture a signature in my application as an image (GIF/TIFF,..whatever). Does anyone knows a good API for doing this (COM/ActiveX is preffered). I've read about Wintab, but it looks obsolete...
Does reasent version of windows includes a standard API for doing this?
Thanks,
Matra
...
I would like to apply a folder's Security Settings to all descendants in C#. Essentially, I would like to do the same thing as 'Replace all existing inheritable permissions on all descendants with inheritable permissions from this object' within 'Advanced Security Settings for [Folder]'.
Are there any elegant ways to approach this?
...
I have a script set up to rotate some log files in windows, and as part of the process I'd like it to automatically compress the rotated file. To do this I use the command
compress source.file destination.file.zip
However, if I try to open the file, I get the message "The Compressed (zipped) Folder is invalid or corrupted"
I've tried ...
Is there a case where MessageBox can return 0 other than not enough memory? I have a case where I suspect the HWND I'm passing to MessageBox isn't valid or maybe it belongs to a window that is in the process of being destroyed.
In my case the MessageBox isn't displayed and returns 0, but I seem to have enough memory available.
...
I'm trying to run SnakeFood, to analyze a python project. I'm on a Windows machine and so far I've been able to figure out how to:
install Tortoise for Mercurial to download the SnakeFood code from the site
set the windows Path to accept python from the command prompt so I could do python setup.py install and got snakefood to go into m...
Possible Duplicate:
A good book to understand WinAPI programming?
Please close; duplicate of 329776.
I just recently got involved with an open source project that uses Windows.h WinAPI extensively, and libraries such as Advapi32. I'm a real newbie when it comes to low level C++ stuff, since I've been a C# developer most of ...
I've got an internal C# application that I want to start deploying externally. I've got features that I only want available to internal users, but I don't want to bother with multiple releases. I also don't want to change the way that internal users are currently using the program.
So, what I'm thinking is:
1) Check the domain of the...
I kept recieving error 12029 (ERROR INTERNET CANNOT CONNECT, The attempt to connect to the server failed.) when using the the MFC wininet classes on Windows Vista. The cause of the error was due to Windows Defender. Is there a better way to get around this than completely turning off Windows Defender? I tried turning off "real time pr...