DLLCALL() error
DLLCALL() error
HI
I have a dll which can be used to get the hardware serialnumbers from the PC.
I am using the DllCall() to call the dll.
when i use : DllCall( nDll, DLL_STDCALL,"DllGetClassObject")
i am getting "Internal data structure corrupted"
when i use any params : DllCall( nDll, DLL_STDCALL,"DllGetClassObject","UniqueId","_UniqueId")
i am getting : "Access to the mothod not allowed in this context"
can you please help me with this?
thanks
I have a dll which can be used to get the hardware serialnumbers from the PC.
I am using the DllCall() to call the dll.
when i use : DllCall( nDll, DLL_STDCALL,"DllGetClassObject")
i am getting "Internal data structure corrupted"
when i use any params : DllCall( nDll, DLL_STDCALL,"DllGetClassObject","UniqueId","_UniqueId")
i am getting : "Access to the mothod not allowed in this context"
can you please help me with this?
thanks
Re: DLLCALL() error
Hi
these are list of the function in the dll, i want the value of the _UniqueId::Value!
Thanks
these are list of the function in the dll, i want the value of the _UniqueId::Value!
Thanks
- Attachments
-
- Capture.JPG (38.58 KiB) Viewed 21361 times
Re: DLLCALL() error
is this a DotNet DLL ? have you register DLL ?ampandya wrote:these are list of the function in the dll, i want the value of the _UniqueId::Value!
if you want any Info about Hardware i recommend to use WMI e.g. Win32_Processor.
greetings by OHR
Jimmy
Jimmy
Re: DLLCALL() error
HI
I used WMIC command to get Bios Serialnumbers but some of our till do not have serialnumbers updated.
it gives blank result.
this dll is c#. and there is a function to get the HDV code which is combination of the hardware serialnumbers of the pc.
Thanks
I used WMIC command to get Bios Serialnumbers but some of our till do not have serialnumbers updated.
it gives blank result.
this dll is c#. and there is a function to get the HDV code which is combination of the hardware serialnumbers of the pc.
Thanks
Re: DLLCALL() error
Hi
I have been reading the other forums and blogs but couldnt find the answer to this question?
there are others who have asked the question but not solved.
this .net DLL which has function with COM Method type.
even the DllInfo( nDllHandle, DLL_INFO_FUNCLIST ) - > {} gives blank array?
has anyone Idea or work around? most of the time the error message is the function is not declared!!
Thanks
I have been reading the other forums and blogs but couldnt find the answer to this question?
there are others who have asked the question but not solved.
this .net DLL which has function with COM Method type.
even the DllInfo( nDllHandle, DLL_INFO_FUNCLIST ) - > {} gives blank array?
has anyone Idea or work around? most of the time the error message is the function is not declared!!
Thanks
Re: DLLCALL() error
hi,ampandya wrote:has anyone Idea or work around? most of the time the error message is the function is not declared!!
as i say a DotNet DLL as COM must be registered by
Code: Select all
"regasm /codebase YourCOM.dll"
marry Xmasc:\Windows\Microsoft.NET\Framework\v4.xxxx\RegAsm.exe
greetings by OHR
Jimmy
Jimmy
Re: DLLCALL() error
Thanks Jimmy
I tried this and it kept saying is not .net Assembly.
I think the dll is not .net dll?
I know someone use this dll in c# and he can call UniqueId.Value from the dll.
when i try the function is not found, using the dllexport i can see the function name is _UniqueID::Value, is this the correct name for the function?
I tried this and it kept saying is not .net Assembly.
I think the dll is not .net dll?
I know someone use this dll in c# and he can call UniqueId.Value from the dll.
when i try the function is not found, using the dllexport i can see the function name is _UniqueID::Value, is this the correct name for the function?
Re: DLLCALL() error
Hi
You need to implement DllGetClassObject in (and export it from) DLLs that support COM
Notes to Callers
You should not call DllGetClassObject directly. When an object is defined in a DLL, CoGetClassObject calls the CoLoadLibrary function to load the DLL, which, in turn, calls DllGetClassObject
Best Regard
Hector
You need to implement DllGetClassObject in (and export it from) DLLs that support COM
Notes to Callers
You should not call DllGetClassObject directly. When an object is defined in a DLL, CoGetClassObject calls the CoLoadLibrary function to load the DLL, which, in turn, calls DllGetClassObject
Best Regard
Hector
Re: DLLCALL() error
Hello Hector
Do you have any sample code to call these types of class - functions from the dll?
Thanks
Do you have any sample code to call these types of class - functions from the dll?
Thanks
Re: DLLCALL() error
BIOS now is UEFI ...ampandya wrote:I used WMIC command to get Bios Serialnumbers but some of our till do not have serialnumbers updated.
it gives blank result.
as i say you can e.g. use CPUampandya wrote:this dll is c#. and there is a function to get the HDV code which is combination of the hardware serialnumbers of the pc.
http://bb.donnay-software.com/donnay/vi ... f=7&t=2066
see for more Hardware Info with S/N
greetings by OHR
Jimmy
Jimmy