Is there a way to imply the current working directory of a driver through an LPSTR or string?
ie.
L\\SystemRoot\\System
Problem:
ie.
L\\SystemRoot\\System
Problem:
Code: Select all
#include <stdio.h>
#include <windows.h> //<-- Required for the GetCurrentDirectory function, but it conflicts with "ntddk.h:": 102 compile errors (relating to ntdef.h and wdm.h) mostly "identifier;missing ) "
#include "ntddk.h"
char CurrentDirectory[255];
NTSTATUS DriverEntry(IN PDRIVER_OBJECT theDriverObject, IN PUNICODE_STRING theRegistryPath)
{
GetCurrentDirectory(sizeof CurrentDirectory, CurrentDirectory);
DbgPrint("%s",CurrentDirectory);
return STATUS_SUCCESS;//;
}
Last edited by StriderH2 on Fri Jun 24, 2011 7:20 am, edited 1 time in total.