Einzelnen Beitrag anzeigen

Dezipaitor

Registriert seit: 14. Apr 2003
Ort: Stuttgart
1.701 Beiträge
 
Delphi 7 Professional
 
#3

AW: Zugriffsverletzung bei Benutzung von Pipes

  Alt 3. Feb 2011, 09:54
Schau mal hier:
CreateProcess(nil,PChar(od.FileName),nil,nil,true,CREATE_NEW_CONSOLE,nil,nil,si,pi); Du verwendest sicher Delphi >= 2009? Dann ist CreateProcess = CreateProcessW.

Zitat von http://msdn.microsoft.com/en-us/library/ms682425%28VS.85%29.aspx:
The Unicode version of this function, CreateProcessW, can modify the contents of this string. Therefore, this parameter cannot be a pointer to read-only memory (such as a const variable or a literal string). If this parameter is a constant string, the function may cause an access violation.
Du brauchst also ne extra Stringvariable dafür.
Christian
Windows, Tokens, Access Control List, Dateisicherheit, Desktop, Vista Elevation?
Goto: JEDI API LIB & Windows Security Code Library (JWSCL)
  Mit Zitat antworten Zitat