我想設置對象的安全權限。這是代碼:SetSecurityInfo:未聲明的標識符
PROCESS_INFORMATION pi = {0};
STARTUPINFO si = {0};
si.cb = sizeof(STARTUPINFO);
CreateProcess("C:\\AP\\DataBase\\dbntsrv.exe", NULL, NULL, NULL, FALSE, CREATE_NO_WINDOW, NULL, "C:\\ADP\\SQLBase", &si, &pi);
result = SetSecurityInfo(pi.hProcess, SE_WINDOW_OBJECT, PROCESS_TERMINATE, NULL, NULL, NULL, NULL);
但它給我編的'SetSecurityInfo' : undeclared identifier
時錯誤..和'SE_WINDOW_OBJECT' : undeclared identifier
..任何想法,爲什麼出現這種情況?謝謝
其實我沒有..謝謝 – digvijay 2012-02-27 09:20:38