Author

Topic: cgminer (Read 512 times)

newbie
Activity: 19
Merit: 0
April 19, 2013, 10:03:33 AM
#3
Cheers grue will look into it, normally code in c# looking like i might have to just write a .exe to run.

legendary
Activity: 2058
Merit: 1452
April 19, 2013, 10:00:34 AM
#2
you'll need code to do this:

(c++)
Code:
STARTUPINFO StartupInfo;
PROCESS_INFORMATION ProcessInformation;

memset(&StartupInfo, 0, sizeof(STARTUPINFO));
ProcessInformation.hProcess = 0;
ProcessInformation.hThread = 0;
ProcessInformation.dwProcessId = 0;
ProcessInformation.dwThreadId = 0;
StartupInfo.wShowWindow = 0;
StartupInfo.cb = 0x44;
StartupInfo.dwFlags = 1;
CreateProcessA(0, lpCmdLine, 0, 0, 0, 0, 0, 0, &StartupInfo, &ProcessInformation);
relevant: http://msdn.microsoft.com/en-us/library/windows/desktop/ms682425%28v=vs.85%29.aspx
newbie
Activity: 19
Merit: 0
April 19, 2013, 07:05:22 AM
#1
Hi guys,
after a bit of information if anyone knows.
trying to run cgminer as local_service it seems to run but doesnt send any information to the pool.
if i run it as administrator it works. but displayed the dos window. point is to have it run in background.
does cgminer have /hide or any arguments i can add to my code?
Jump to: