<System.Runtime .InteropService s.DllImport("ad vapi32.dll", EntryPoint:="Re gEnumKeyA", _
SetLastError:=T rue, CharSet:=CharSe t.Unicode, ExactSpelling:= True, _
CallingConventi on:=CallingConv ention.StdCall) > _
Private Shared Function RegEnumKey(ByVa l hKey As Long, _
ByVal dwIndex As Long, ByVal lpName As String, _
ByVal cbName As Long) As Long
End Function
When I call the above function I get the following values:
RegEnumKey returns this Value: 111548533270432 9987
LastErrorCode function returns this: 126
Why is this happing?
Def:
126 The specified module could not be found. ERROR_MOD_NOT_F OUND
--------------------------------
From: Jonathan Randal
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>6kw000uCCkW HJXBYZUacyA==</Id>
SetLastError:=T rue, CharSet:=CharSe t.Unicode, ExactSpelling:= True, _
CallingConventi on:=CallingConv ention.StdCall) > _
Private Shared Function RegEnumKey(ByVa l hKey As Long, _
ByVal dwIndex As Long, ByVal lpName As String, _
ByVal cbName As Long) As Long
End Function
When I call the above function I get the following values:
RegEnumKey returns this Value: 111548533270432 9987
LastErrorCode function returns this: 126
Why is this happing?
Def:
126 The specified module could not be found. ERROR_MOD_NOT_F OUND
--------------------------------
From: Jonathan Randal
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>6kw000uCCkW HJXBYZUacyA==</Id>
Comment