Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kasra Jamshidi
slapos.package
Commits
73606b84
Commit
73606b84
authored
May 29, 2013
by
Jondy Zhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change the order of elements in the return value of netuse.userInfo()
parent
b1f1b6f0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
windows/netreport/src/netuse.c
windows/netreport/src/netuse.c
+2
-2
No files found.
windows/netreport/src/netuse.c
View file @
73606b84
...
@@ -124,7 +124,7 @@ netuse_user_info(PyObject *self, PyObject *args)
...
@@ -124,7 +124,7 @@ netuse_user_info(PyObject *self, PyObject *args)
//
//
if
(
pBuf
!=
NULL
)
{
if
(
pBuf
!=
NULL
)
{
NetApiBufferFree
(
pBuf
);
NetApiBufferFree
(
pBuf
);
return
Py_BuildValue
(
"sss"
,
logon
user
,
logondomain
,
logonserv
er
);
return
Py_BuildValue
(
"sss"
,
logon
server
,
logondomain
,
logonus
er
);
}
}
PyErr_SetString
(
PyExc_RuntimeError
,
"No logon user information"
);
PyErr_SetString
(
PyExc_RuntimeError
,
"No logon user information"
);
...
@@ -323,7 +323,7 @@ static PyMethodDef NetUseMethods[] = {
...
@@ -323,7 +323,7 @@ static PyMethodDef NetUseMethods[] = {
(
(
"userInfo()
\n\n
"
"userInfo()
\n\n
"
"Get the logon user information, return a tuple:
\n
"
"Get the logon user information, return a tuple:
\n
"
"(
user, domain, serv
er).
\n
"
"(
server, domain, us
er).
\n
"
)
)
},
},
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment