Hello,
Does ntdll.dll come standard with windows xp and windows vista? I know that I have it on my windows xp machine, but am not sure that is standard with every machine.
The reason I am curious is for the NTQuerySystemInformation function to get CPU usage of a windows xp and/or windows vista system.
Thanks,
Steve
...
I am making a DLL "Plugin" for a EXE. The EXE calls a function in the DLL with an Object as a parameter, and goes from there.
It all works fine and dandy until I split it to a new thread. This error happens
Attempted to read or write protected
memory. This is often an indication
that other memory is corrupt.
when executing thi...
I need to get the current logged on username? I need this to work properly when I call the code from ASP.NET which is working in Windows Authentication mode. i.e. I do not want to get the ASPNET user in that circumstance, but the impersonated user. This is related to my earlier question. Everything I try returns ASPNET.
...
We're trying implement a .NET Service Object that supports a COM interface to emulate a POSPrinter but still be compatible with the older technologies.
We have our interface and class object in the following class..
using [...]
namespace yRPOSPrinterDotNet
{
[Guid("2D570F11-4BD8-40e7-BF14-38772063AAF0")]
[InterfaceType(ComIn...
There's Another Company that ships the product that consumes IAnotherCompanyInterface. We want to ship a COM object that implements IAnotherCompanyInterface. That interface is not Automation-compatible, so the next easiest option to enable marshalling is using a proxy/stub. Another Company doesn't ship the proxy/stub and doesn't want to....
Hello all.
I meet one strange issue.
Public Class MyClass
{
Public MyClass()
{
// Some time the New Com Obj code will crush in Construcor
su.SUEvent += new _IaSystemMgrEvents_SuEventEventHandler(su_SuEvent);
su.SUEventSteps += new _IaSystemMgrEvents_SuEventIemsEventHandler(su_SuEventSteps);
...
Hi
I have legacy COM component, and my mission is to write web service that wrap the COM and enable concurrent non-blocking calls.
First of all, because the COM object itself is stateless, i decided to use the [ThreadStatic] attribute so each thread will have its own instance of the COM object to prevent the use of lock { } statement a...
I am writing a BHO, the code using IHTMLDocument2::get_scripts to get all script body in the
HTML file then use get_text() to get script source. But I found if script is embedded from a external file, the content is
an empty string.
Is there any way to get source code from an IHTMLScriptElement that is
created by ?
...
Using Visual Studio with Microsoft's C++ compiler, we have several source files which use the Microsoft-specific '#import' directive to import a type library. For instance:
#import my_type_lib.tlb
I'd like to remove the #import from the source code, and replace it with a command line step to be executed via GNU Make. The necessary i...
When allocating an empty BSTR, either by SysAllocString(L"") or by SysAllocStringLen(str, 0) you always get a new BSTR (at least by the test I made). BSTRs aren't typically shared (like Java/.NET interment) since they are mutable but an empty string is, for all intents and purposes, immutable.
My question (at long last) is why doesn't C...
According to this article if I register my COM object with either "Both" or "Free" threading model that object must be completely thread-safe. Specifically all accesses to global shared variables must be synchronized and all accesses to member variables must also be synchronized. That's a lot of effort.
Now I understand that being able ...
Question:
I want to ask a question in response to Mike Rosenblum's answer to this question. The question was about cleaning up Excel interop objects. Several solutions where suggested (e.g. wrappers, not using more than one dot, killing the excel process), but I liked Mike Rosenblum's solution to this problem the most (lengthy article a...
A while ago, I wrote some Word interop examples in Visual Studio beta 1, and set the reference to Microsoft.Office.Interop.Word to be embedded (set the "Embed Interop Types" = true in the reference properties). These worked fine, and I haven't run them for a while... until today.
Of course, now I'm running under beta 2 of both Visual St...
I know the basic difference as ReleaseComObject only decreases some counter by one and FinalReleaseComObject decreases it to zero.
So what I usually hear is, call FinalReleaseComObject because then you are sure that the COM object is really released.
But this makes me wonder, there is a point to this counter right? Aren't you breakin...
Hello,
I have a variant bstr that was pulled from MSXML DOM, so it is in UTF-16. I'm trying to figure out what default encoding occurs with this conversion:
VARIANT vtNodeValue;
pNode->get_nodeValue(&vtNodeValue);
string strValue = (char*)_bstr_t(vtNodeValue);
From testing, I believe that the default encoding is either Windows-1252...
It's a hard question.
We have an ASP.NET application, IIS7 server (running classic pipeline, if its relevant) and one fat ugly COM objects library.
The application uses this library this way: call a function, take result, show it.
The problem is: the COM library has no function to change language preference - it initializes it from the "...
Hello and thanks for taking the time to read my question!
I am currently trying to automate some basic functionality in internet explorer for a few cases where the currently employed method does not work. To do this i am (due to the knowledge of the people i work with) creating some VBScript that uses the IE automation object.
I set o...
It's been a while since I touched COM so be nice ;) This is under WindowsCE 5.0 with SQLServerCE 2.0.
After calling this to load SQLServerCE 2.0 : -
IDBInitialize *pIDBInitialize = NULL;
CoCreateInstance(CLSID_SQLSERVERCE_2_0, NULL, CLSCTX_INPROC_SERVER, IID_IDBInitialize, (void**)&pIDBInitialize);
Module load occurs for SSCE20.dll w...
I want to find a tool that can see all the interface, including the methods, properties, events, exposed by a COM(or ActiveX) component. Is such tool available?
...
I registered a COM dll (under administrator) using regsvr32, which I want to use in Visual Studio 2008 (under administrator) for my project in Windows 7. Now, when I try to use the interfaces and classes from the COM, then I can't see any of the methods. When I use the object browser to view the COM classes, then I can see that they are ...