Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (27 sloc) 1.07 KB

RtlInitAnsiString

Parameters: OUT PANSI_STRING OutputString, IN LPCSTR String Returns: OutputString as an ANSI equivalent of String Prototype: void RtlInitAnsiString( PANSI_STRING, LPCSTR ); Example:

ANSI_STRING DeviceName;
RtlInitAnsiString(&DeviceName, "\\Device\\Harddisk0\\Partition1");

ObCreateSymbolicLink

Parameters: IN PANSI_STRING SymbolicLinkName, IN PANSI_STRING DeviceName Returns: 0 if success Prototype: int ObCreateSymbolicLink( PANSI_STRING, PANSI_STRING ); Example:

int result = ObCreateSymbolicLink( "\\??\\hdd:", "\\Device\\Harddisk0\\Partition1" );
(wont actually work)

Both strings have to be ANSI, use RtlInitAnsiString to make them

ObDeleteSymbolicLink

Parameters: IN PANSI_STRING SymbolicLinkName Returns: 0 if success Prototype: int ObDeleteSymbolicLink( PANSI_STRING ); Example:

int result = ObDeleteSymbolicLink( "\\??\\hdd:" );
(wont actually work)

As above, use RtlInitAnsiString to make the string

Category:Xbox360 System Software