Hello all,
Im getting a very strange error on this line 14
Code:
wow.OpenProcessAndThread(SProcess.GetProcessFromWindowTitle("World of Warcraft")); //This Opens "World of Warcraft" window
Here is what it says:
Code:
System.ComponentModel.Win32Exception was unhandled
Message="Not all privileges or groups referenced are assigned to the caller."
Source="System"
ErrorCode=-2147467259
NativeErrorCode=1300
StackTrace:
in System.Diagnostics.Process.SetPrivilege(String privilegeName, Int32 attrib)
in System.Diagnostics.Process.EnterDebugMode()
in Magic.BlackMagic.Open(Int32 ProcessId) em D:\My Documents\Visual Studio 2008\Projects\BlackMagic\BlackMagic\BMMain.cs:line 144
in Magic.BlackMagic.OpenProcessAndThread(Int32 dwProcessId) em D:\My Documents\Visual Studio 2008\Projects\BlackMagic\BlackMagic\BMMain.cs:line 220
in wowbot.Program.Main(String[] args) em C:\Users\Marisa\Documents\Visual Studio 2008\Projects\wowbot\wowbot\Program.cs:line 14
in System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
in System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
in Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
in System.Threading.ThreadHelper.ThreadStart_Context(Object state)
in System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
in System.Threading.ThreadHelper.ThreadStart()
InnerException:
Well basicly i just copy / past all the code, but im getting that strange 1300 native error code.
Anyone able to point in the right direction please?
P.S- im using a x64, but applyed the preferences for debug/build in x86 couse of BlackMagic.
P.P.S - Well if i start c# with administrator rights it passes that error, but now it breaks on the other line after that one, something like it dont recognise
Code:
{"ReadUInt failed."}