ps2sdk
1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
ps2smb.h
Go to the documentation of this file.
1
/*
2
Copyright 2009-2010, jimmikaelkael
3
Licenced under Academic Free License version 3.0
4
*/
5
11
#ifndef __PS2SMB_H__
12
#define __PS2SMB_H__
13
14
#include <
tamtypes.h
>
15
16
#define NO_PASSWORD -1
17
#define PLAINTEXT_PASSWORD 0
18
#define HASHED_PASSWORD 1
19
20
// DEVCTL commands
21
#define SMB_DEVCTL_GETPASSWORDHASHES 0xC0DE0001
22
#define SMB_DEVCTL_LOGON 0xC0DE0002
23
#define SMB_DEVCTL_LOGOFF 0xC0DE0003
24
#define SMB_DEVCTL_GETSHARELIST 0xC0DE0004
25
#define SMB_DEVCTL_OPENSHARE 0xC0DE0005
26
#define SMB_DEVCTL_CLOSESHARE 0xC0DE0006
27
#define SMB_DEVCTL_ECHO 0xC0DE0007
28
#define SMB_DEVCTL_QUERYDISKINFO 0xC0DE0008
29
30
// helpers for DEVCTL commands
31
32
typedef
struct
{
33
char
password[256];
34
}
smbGetPasswordHashes_in_t
;
35
36
typedef
struct
{
// size = 32
37
u8
LMhash[16];
38
u8
NTLMhash[16];
39
}
smbGetPasswordHashes_out_t
;
40
41
typedef
struct
{
// size = 536
42
char
serverIP[16];
43
int
serverPort
;
44
char
User[256];
45
char
Password[256];
46
int
PasswordType
;
// PLAINTEXT_PASSWORD or HASHED_PASSWORD
47
}
smbLogOn_in_t
;
48
49
typedef
struct
{
// size = 8
50
void
*
EE_addr
;
51
int
maxent
;
52
}
smbGetShareList_in_t
;
53
54
typedef
struct
{
// size = 520
55
char
ShareName[256];
56
char
Password[256];
57
int
PasswordType
;
// PLAINTEXT_PASSWORD or HASHED_PASSWORD
58
}
smbOpenShare_in_t
;
59
60
typedef
struct
{
// size = 260
61
char
echo[256];
62
int
len
;
63
}
smbEcho_in_t
;
64
65
typedef
struct
{
// size = 16
66
int
TotalUnits
;
67
int
BlocksPerUnit
;
68
int
BlockSize
;
69
int
FreeUnits
;
70
}
smbQueryDiskInfo_out_t
;
71
72
typedef
struct
{
// size = 512
73
char
ShareName[256];
74
char
ShareComment[256];
75
}
ShareEntry_t
;
76
77
// Error codes for some DEVCTL operations.
78
#define SMB_DEVCTL_LOGON_ERR_CONN 0x1001
79
#define SMB_DEVCTL_LOGON_ERR_PROT 0x1002
80
#define SMB_DEVCTL_LOGON_ERR_LOGON 0x1003
81
82
#endif
/* __PS2SMB_H__ */
ShareEntry_t
Definition:
ps2smb.h:72
smbEcho_in_t
Definition:
ps2smb.h:60
smbEcho_in_t::len
int len
Definition:
ps2smb.h:62
smbGetPasswordHashes_in_t
Definition:
ps2smb.h:32
smbGetPasswordHashes_out_t
Definition:
ps2smb.h:36
smbGetShareList_in_t
Definition:
ps2smb.h:49
smbGetShareList_in_t::maxent
int maxent
Definition:
ps2smb.h:51
smbGetShareList_in_t::EE_addr
void * EE_addr
Definition:
ps2smb.h:50
smbLogOn_in_t
Definition:
ps2smb.h:41
smbLogOn_in_t::serverPort
int serverPort
Definition:
ps2smb.h:43
smbLogOn_in_t::PasswordType
int PasswordType
Definition:
ps2smb.h:46
smbOpenShare_in_t
Definition:
ps2smb.h:54
smbOpenShare_in_t::PasswordType
int PasswordType
Definition:
ps2smb.h:57
smbQueryDiskInfo_out_t
Definition:
ps2smb.h:65
smbQueryDiskInfo_out_t::TotalUnits
int TotalUnits
Definition:
ps2smb.h:66
smbQueryDiskInfo_out_t::FreeUnits
int FreeUnits
Definition:
ps2smb.h:69
smbQueryDiskInfo_out_t::BlockSize
int BlockSize
Definition:
ps2smb.h:68
smbQueryDiskInfo_out_t::BlocksPerUnit
int BlocksPerUnit
Definition:
ps2smb.h:67
tamtypes.h
u8
unsigned char u8
Definition:
tamtypes.h:23
common
include
ps2smb.h
Generated on Thu Feb 11 2021 11:42:21 for ps2sdk by
1.9.2